Commit cd3d687a authored by Sonja Happ's avatar Sonja Happ

do not flush postgreSQL DB every 100th time step but only once at beginning

parent 73d7199a
......@@ -1458,9 +1458,9 @@ void Model::step() {
++( *progress_p );
/* flush database every 100 steps */
if((int) std::round(runner.currentTick()) % 100 == 0){
IO->flush_db();
}
//if((int) std::round(runner.currentTick()) % 100 == 0){
// IO->flush_db();
//}
IO->stop_time_measurement(IO->tm_tick);
......
......@@ -458,6 +458,7 @@ void ModelIO::log_results_for_tick() {
std::to_string(tm_init_MR->get_duration()));
this->addMetaEntry(rank, "simulationmeta", "time_measurement_comm_partners_init in us",
std::to_string(tm_comm_partners_init->get_duration()));
this->flush_db();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment