Ignore:
Timestamp:
Sep 6, 2015, 10:23:11 PM (10 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

tempcommit: Small changes to interface_particles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/units/particle/interface_particles.cpp

    rb4e1be r5c22be  
    7171  Grid& particle_grid = comm.GetParticleGrid();
    7272
     73//  grid.Clear();
    7374  particle_grid.Clear();
    7475
     
    184185          // Subtract self-induced potential
    185186          (*p1)->Pot() -= (*p1)->Charge() * spl.GetAntiDerivativeAtZero();
     187//      spl.SubtractSelfInducedForces(particle_grid, **p1);
    186188
    187189#ifdef OUTPUT_DEBUG
     
    233235  const vmg_int& num_particles_local = factory.GetObjectStorageVal<vmg_int>("PARTICLE_NUM_LOCAL");
    234236  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  }
    236244
    237245  e_long = comm.GlobalSumRoot(e_long);
Note: See TracChangeset for help on using the changeset viewer.