Changeset 01be70 for src


Ignore:
Timestamp:
Feb 1, 2012, 11:08:03 AM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
894a5f
Parents:
64ba929
Message:

Merge remote branch 'heber/Bugfixes_Tremolo_implementation'

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1309 5161e1c8-67bf-11de-9fd5-51895aff932f

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/base/factory.hpp

    r64ba929 r01be70  
    2020{
    2121
     22class MG;
     23
    2224class Factory
    2325{
    2426public:
    25   Factory();
    2627  virtual ~Factory();
    2728
     
    3940
    4041private:
     42  friend class MG;
     43
     44  Factory();
    4145  std::map<std::string, Object*> object_map;
    4246};
  • src/base/object.cpp

    r64ba929 r01be70  
    2222    name = name_;
    2323    MG::GetFactory().Register(this);
     24    registered = true;
    2425  }else
    2526    assert(0 == "This object has already been registered.");
  • src/comm/comm_mpi.cpp

    r64ba929 r01be70  
    684684  std::vector<vmg_int> buffer_ind;
    685685
    686   std::memcpy(&global_extent[6*rank], grid.Global().BeginLocal().vec(), 3*sizeof(vmg_float));
    687   std::memcpy(&global_extent[6*rank+3], grid.Global().EndLocal().vec(), 3*sizeof(vmg_float));
     686  std::memcpy(&global_extent[6*rank], grid.Global().BeginLocal().vec(), 3*sizeof(int));
     687  std::memcpy(&global_extent[6*rank+3], grid.Global().EndLocal().vec(), 3*sizeof(int));
    688688
    689689  MPI_Allgather(MPI_IN_PLACE, 6, MPI_INT, global_extent, 6, MPI_INT, MPI_COMM_WORLD);
  • src/interface/interface_particles.cpp

    r64ba929 r01be70  
    143143  const int& near_field_cells = factory.GetObjectStorageVal<int>("PARTICLE_NEAR_FIELD_CELLS");
    144144  vmg_float* p = factory.GetObjectStorageArray<vmg_float>("PARTICLE_POTENTIAL_ARRAY");
     145  vmg_float* f = factory.GetObjectStorageArray<vmg_float>("PARTICLE_FORCE_ARRAY");
    145146
    146147  const vmg_float r_cut = (near_field_cells+0.5) * grid.Extent().MeshWidth().Max();
    147148
    148149  /*
    149    * Initialze potential
    150    */
    151   for (vmg_int i=0; i<num_particles_local; ++i)
     150   * Initialize potential
     151   */
     152  for (vmg_int i=0; i<num_particles_local; ++i) {
    152153    p[i] = 0.0;
     154    for (vmg_int j=0;j<3;++j)
     155      f[3*i+j] = 0.;
     156  }
    153157
    154158  /*
Note: See TracChangeset for help on using the changeset viewer.