minor corrections, added example json file
This commit is contained in:
@@ -82,7 +82,7 @@ PoissonSolver::PoissonSolver(GlobalBoundary bottom_boundary,
|
||||
|
||||
void PoissonSolver::solvePotential(
|
||||
const blitz::Array<double, 3> charge_density, const bool solve) {
|
||||
if (!(do_solver_) && !(solve)) {
|
||||
if (!(do_solver_) || !(solve)) {
|
||||
return;
|
||||
}
|
||||
DEBUG_LEVEL_3("Interpolating chargedensity.");
|
||||
|
||||
@@ -173,11 +173,16 @@ void Simulation::start() {
|
||||
pair.second->dynamicDensityField()->resetDynamicDensityField();
|
||||
pair.second->lastSyncDensityField()->resetDynamicDensityField();
|
||||
|
||||
// questionable if they need to be reset:
|
||||
// + time res in current
|
||||
// - ions very slow -> very unlikely that an ion crosses a boundary
|
||||
pair.second->currentCollector()->resetCurrentCollector();
|
||||
pair.second->lastSyncCurrentCollector()->resetCurrentCollector();
|
||||
|
||||
pair.second->deletionLogger()->resetDeletionLogger();
|
||||
pair.second->lastSyncDeletionLogger()->resetDeletionLogger();
|
||||
// do not need to be reset, since the time resolution considers the same
|
||||
// set of particles
|
||||
// pair.second->deletionLogger()->resetDeletionLogger();
|
||||
// pair.second->lastSyncDeletionLogger()->resetDeletionLogger();
|
||||
}
|
||||
leftover_events_time_resolution = time_resolution_this_cpu;
|
||||
switch_active(active_queue_, non_active_queue_);
|
||||
|
||||
Reference in New Issue
Block a user