The UFZ services GitLab and Mattermost will be unavailable on Monday, October 25 from 06:00 AM to 08:00 AM due to maintenance work.

Commit 23ef14de authored by Johannes Leins's avatar Johannes Leins
Browse files

argument to switch output of final density files

parent df404ff3
Pipeline #32245 passed with stage
in 54 seconds
......@@ -120,6 +120,7 @@ unordered_set<Point> surrCoords;
// current simulation run parameters
bool prognosis = false;
bool createFinalDensFiles = false;
bool yearly = false;
bool dailyPrint = false;
bool meanStatsOutput = false;
......@@ -778,7 +779,7 @@ void outputRun(unsigned int nTimesteps, Population* population) {
}
void outputFinalDens(unsigned int finalTimestep) {
if(prognosis) {
if(!createFinalDensFiles) {
return;
}
unsigned int finalYear = Constants::BASE_YEAR;
......@@ -1278,6 +1279,9 @@ bool handleArgs(int argc, char** argv) {
else if (arg == "--yearly") { // output yearly stats
yearly = true;
}
else if (arg == "--finalDens") { // create final density output files
createFinalDensFiles = true;
}
else if (arg == "--dailyPrint") { // print daily simulation info
dailyPrint = true;
}
......
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