Fixed errors s.t. code runs (on 1 proc)

This commit is contained in:
2024-01-25 11:34:46 +01:00
parent 9d0c7646b3
commit ffc65f8ef9
3 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -144,9 +144,9 @@ void SimulationOutput::writeSimulationData(PoissonSolver* poisson_solver,
std::string poisson_path,
int cpu_sync,
bool overwrite_last) {
std::string sync_path = "SyncPeriod_" + std::to_string(cpu_sync);
std::string sync_path = "/SyncPeriod_" + std::to_string(cpu_sync);
if (overwrite_last) {
sync_path = "LastSyncPeriod";
sync_path = "/LastSyncPeriod";
}
std::string path = poisson_path + sync_path;
DEBUG_LEVEL_3("Write potential.");