mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 14:47:44 -05:00
TransMult, Init, and SimConfig are references, applyModifierDeck takes reference, and EclipseState constructor too
This commit is contained in:
1 parent
ac11db635c
commit
bd58792714
21 files changed
+51
-50
No files matched your search
@@ -340,8 +340,8 @@ namespace Opm
|
||||
// ECL output
|
||||
if ( eclWriter_ )
|
||||
{
|
||||
const auto initConfig = eclipseState_->getInitConfig();
|
||||
if (initConfig->restartRequested() && ((initConfig->getRestartStep()) == (timer.currentStepNum()))) {
|
||||
const auto& initConfig = eclipseState_->getInitConfig();
|
||||
if (initConfig.restartRequested() && ((initConfig.getRestartStep()) == (timer.currentStepNum()))) {
|
||||
std::cout << "Skipping restart write in start of step " << timer.currentStepNum() << std::endl;
|
||||
} else {
|
||||
eclWriter_->writeTimeStep(timer.currentStepNum(),
|
||||
@@ -453,7 +453,7 @@ namespace Opm
|
||||
|
||||
|
||||
bool BlackoilOutputWriter::isRestart() const {
|
||||
const auto initconfig = eclipseState_->getInitConfig();
|
||||
return initconfig->restartRequested();
|
||||
const auto& initconfig = eclipseState_->getInitConfig();
|
||||
return initconfig.restartRequested();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user