mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Will look for param: 'nosim' and override deck.
This commit is contained in:
parent
d2300e79e4
commit
09f22f370a
@ -401,7 +401,7 @@ namespace Opm
|
||||
// eclipse_state_
|
||||
// May throw if errors are encountered, here configured to be somewhat tolerant.
|
||||
void readDeckInput()
|
||||
{
|
||||
{
|
||||
std::string deck_filename = param_.get<std::string>("deck_filename");
|
||||
|
||||
// Create Parser
|
||||
@ -428,6 +428,13 @@ namespace Opm
|
||||
IOConfigPtr ioConfig = eclipse_state_->getIOConfig();
|
||||
ioConfig->overrideRestartWriteInterval(static_cast<size_t>(output_interval));
|
||||
}
|
||||
|
||||
// Possible to force initialization only behavior (NOSIM).
|
||||
if (param_.has("nosim")) {
|
||||
const bool nosim = param_.get<bool>("nosim");
|
||||
IOConfigPtr ioConfig = eclipse_state_->getIOConfig();
|
||||
ioConfig->overrideNOSIM( true );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -703,13 +710,14 @@ namespace Opm
|
||||
{
|
||||
Opm::ScheduleConstPtr schedule = eclipse_state_->getSchedule();
|
||||
Opm::TimeMapConstPtr timeMap(schedule->getTimeMap());
|
||||
std::shared_ptr<IOConfig> ioConfig = eclipse_state_->getIOConfig();
|
||||
SimulatorTimer simtimer;
|
||||
|
||||
// initialize variables
|
||||
const auto initConfig = eclipse_state_->getInitConfig();
|
||||
simtimer.init(timeMap, (size_t)initConfig->getRestartStep());
|
||||
|
||||
if (!schedule->initOnly()) {
|
||||
if (!ioConfig->initOnly()) {
|
||||
if (output_cout_) {
|
||||
std::string msg;
|
||||
msg = "\n\n================ Starting main simulation loop ===============\n";
|
||||
|
Loading…
Reference in New Issue
Block a user