mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 09:28:23 +01:00
fixed a bug that returned the wrong grid to the test method
This commit is contained in:
parent
78cf41f57e
commit
85c5e55601
@ -103,11 +103,11 @@ class Simulation {
|
||||
void printConcentrationsCSV(string filename);
|
||||
|
||||
/**
|
||||
* @brief Start the simulation with all of the previously set parameters.
|
||||
* @brief
|
||||
*
|
||||
* @return auto
|
||||
* @return Grid
|
||||
*/
|
||||
void run();
|
||||
Grid run();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@ -146,7 +146,7 @@ void Simulation::printConcentrationsCSV(string filename) {
|
||||
file.close();
|
||||
}
|
||||
|
||||
void Simulation::run() {
|
||||
Grid Simulation::run() {
|
||||
string filename;
|
||||
if (this->console_output > CONSOLE_OUTPUT_OFF) {
|
||||
printConcentrationsConsole();
|
||||
@ -191,4 +191,6 @@ void Simulation::run() {
|
||||
if (this->csv_output > CSV_OUTPUT_OFF) {
|
||||
printConcentrationsCSV(filename);
|
||||
}
|
||||
|
||||
return grid;
|
||||
}
|
||||
|
||||
@ -50,9 +50,7 @@ static Grid setupSimulation() {
|
||||
|
||||
|
||||
// RUN
|
||||
sim.run();
|
||||
|
||||
return grid;
|
||||
return sim.run();
|
||||
}
|
||||
|
||||
TEST_CASE("equality to reference matrix") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user