Changeset 5c22be for src/units/particle/interface_particles.cpp
- Timestamp:
- Sep 6, 2015, 10:23:11 PM (10 years ago)
- Children:
- ebc866
- Parents:
- b4e1be
- git-author:
- Frederik Heber <heber@…> (03/09/15 16:50:34)
- git-committer:
- Frederik Heber <heber@…> (09/06/15 22:23:11)
- File:
-
- 1 edited
-
src/units/particle/interface_particles.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/units/particle/interface_particles.cpp
rb4e1be r5c22be 71 71 Grid& particle_grid = comm.GetParticleGrid(); 72 72 73 // grid.Clear(); 73 74 particle_grid.Clear(); 74 75 … … 184 185 // Subtract self-induced potential 185 186 (*p1)->Pot() -= (*p1)->Charge() * spl.GetAntiDerivativeAtZero(); 187 // spl.SubtractSelfInducedForces(particle_grid, **p1); 186 188 187 189 #ifdef OUTPUT_DEBUG … … 233 235 const vmg_int& num_particles_local = factory.GetObjectStorageVal<vmg_int>("PARTICLE_NUM_LOCAL"); 234 236 const vmg_float* p = factory.GetObjectStorageArray<vmg_float>("PARTICLE_POTENTIAL_ARRAY"); 235 237 const vmg_float* f = factory.GetObjectStorageArray<vmg_float>("PARTICLE_FIELD_ARRAY"); 238 239 // extract forces 240 if (num_particles_local != 0) { 241 size_t index = 0; 242 comm.PrintOnce(Debug, "%d force vector: %e %e %e", (index/3)+1, f[index++], f[index++], f[index++]); 243 } 236 244 237 245 e_long = comm.GlobalSumRoot(e_long);
Note:
See TracChangeset
for help on using the changeset viewer.
