Avoid unused variable warning

This commit is contained in:
Vegard Kippe 2024-09-24 12:57:44 +02:00
parent 6ba9dc086c
commit 5745f92b08
4 changed files with 6 additions and 6 deletions

View File

@ -398,7 +398,7 @@ public:
} }
} }
void writeOutput(data::Solution&& localCellData, const SimulatorTimer& timer, bool isSubStep) void writeOutput(data::Solution&& localCellData, bool isSubStep)
{ {
OPM_TIMEBLOCK(writeOutput); OPM_TIMEBLOCK(writeOutput);

View File

@ -477,7 +477,7 @@ public:
* \brief Write the requested quantities of the current solution into the output * \brief Write the requested quantities of the current solution into the output
* files. * files.
*/ */
void writeOutput(const SimulatorTimer& timer, bool verbose = true) void writeOutput(bool verbose = true)
{ {
FlowProblemType::writeOutput(verbose); FlowProblemType::writeOutput(verbose);
@ -492,7 +492,7 @@ public:
} }
#endif #endif
if (enableEclOutput_){ if (enableEclOutput_){
eclWriter_->writeOutput(std::move(localCellData), timer, isSubStep); eclWriter_->writeOutput(std::move(localCellData), isSubStep);
} }
} }

View File

@ -283,7 +283,7 @@ public:
simulator_.setEpisodeLength(0.0); simulator_.setEpisodeLength(0.0);
simulator_.setTimeStepSize(0.0); simulator_.setTimeStepSize(0.0);
wellModel_().beginReportStep(timer.currentStepNum()); wellModel_().beginReportStep(timer.currentStepNum());
simulator_.problem().writeOutput(timer); simulator_.problem().writeOutput();
report_.success.output_write_time += perfTimer.stop(); report_.success.output_write_time += perfTimer.stop();
} }
@ -370,7 +370,7 @@ public:
perfTimer.start(); perfTimer.start();
const double nextstep = adaptiveTimeStepping_ ? adaptiveTimeStepping_->suggestedNextStep() : -1.0; const double nextstep = adaptiveTimeStepping_ ? adaptiveTimeStepping_->suggestedNextStep() : -1.0;
simulator_.problem().setNextTimeStepSize(nextstep); simulator_.problem().setNextTimeStepSize(nextstep);
simulator_.problem().writeOutput(timer); simulator_.problem().writeOutput();
report_.success.output_write_time += perfTimer.stop(); report_.success.output_write_time += perfTimer.stop();
solver_->model().endReportStep(); solver_->model().endReportStep();

View File

@ -349,7 +349,7 @@ void registerAdaptiveParameters();
time::StopWatch perfTimer; time::StopWatch perfTimer;
perfTimer.start(); perfTimer.start();
problem.writeOutput(simulatorTimer); problem.writeOutput();
report.success.output_write_time += perfTimer.secsSinceStart(); report.success.output_write_time += perfTimer.secsSinceStart();
} }