Added "Population Calculation" Mode, where Particles are not logged and different communication rate between CPUs can be set to calculate equilibrium population densities in the beginning.

This commit is contained in:
Christian
2019-07-23 13:08:04 +02:00
parent 7efbbefcc8
commit 7e0880697a
9 changed files with 77 additions and 18 deletions
+4
View File
@@ -59,6 +59,10 @@ inline void MultiZ_Particle_Logger::create(H5_File *h5_file, species this_specie
}
inline void MultiZ_Particle_Logger::log(const Particle &logPart, const vec3 &oldLoc_m) {
if (!logging) {
return;
}
double zold = oldLoc_m[2];
double znew = logPart.get_x_m()[2];
double zmin = std::min(zold,znew);