Added new restart info
This commit is contained in:
+7
-1
@@ -33,7 +33,8 @@ void Restart::restart(
|
||||
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>& species,
|
||||
PoissonSolver* poisson_solver,
|
||||
RandomNumbers* random_numbers,
|
||||
std::vector<particle::SerializedParticle>& storage_queue) {
|
||||
std::vector<particle::SerializedParticle>& storage_queue,
|
||||
int& injectionGroupOffset) {
|
||||
|
||||
if(!do_restart_) {
|
||||
return;
|
||||
@@ -60,6 +61,11 @@ void Restart::restart(
|
||||
// pair.second->positionDistributionFromDensity()->setMaximumDensity();
|
||||
}
|
||||
|
||||
{
|
||||
std::string path = "/RestartInfo/" + restart_identifier_ + "/InjectionGroupOffset";
|
||||
injectionGroupOffset = reader_.readInt(path);
|
||||
}
|
||||
|
||||
#if defined(debug_level1) || defined(debug_level2) || defined(debug_level3)
|
||||
DEBUG_LEVEL_1("Reloading particles.");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user