From 8215a1238da91f490f4f8b835d5ad2ed78e2fe01 Mon Sep 17 00:00:00 2001 From: philippun Date: Wed, 2 Aug 2023 10:46:58 +0200 Subject: [PATCH] bug fixes --- include/tug/Simulation.hpp | 2 +- src/Simulation.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/tug/Simulation.hpp b/include/tug/Simulation.hpp index f7cbfd3..d9658b0 100644 --- a/include/tug/Simulation.hpp +++ b/include/tug/Simulation.hpp @@ -17,7 +17,7 @@ enum CSV_OUTPUT { enum CONSOLE_OUTPUT { CONSOLE_OUTPUT_OFF, // do not print any output to console - CONSOLE_OUTPUT_ON, // print before concentrations to console + CONSOLE_OUTPUT_ON, // print before and after concentrations to console CONSOLE_OUTPUT_VERBOSE // print all concentration matrices to console }; diff --git a/src/Simulation.cpp b/src/Simulation.cpp index 898eef2..ed8cd14 100644 --- a/src/Simulation.cpp +++ b/src/Simulation.cpp @@ -136,7 +136,6 @@ void Simulation::run() { } if (this->csv_output > CSV_OUTPUT_OFF) { filename = createCSVfile(); - printConcentrationsCSV(filename); } if (approach == FTCS_APPROACH) { @@ -145,7 +144,7 @@ void Simulation::run() { if (console_output == CONSOLE_OUTPUT_VERBOSE && i > 0) { printConcentrationsConsole(); } - if (csv_output == CSV_OUTPUT_VERBOSE && i > 0) { + if (csv_output == CSV_OUTPUT_VERBOSE) { printConcentrationsCSV(filename); }