fixed: avoid segfault in cleanup if simulator has not been set up

This commit is contained in:
Arne Morten Kvarving
2023-08-15 09:51:06 +02:00
parent f806e7668b
commit 19f446a7a5

View File

@@ -415,7 +415,7 @@ void handleExtraConvergenceOutput(SimulatorReport& report,
// force closing of all log files. // force closing of all log files.
OpmLog::removeAllBackends(); OpmLog::removeAllBackends();
if (mpi_rank_ != 0 || mpi_size_ < 2 || !this->output_files_) { if (mpi_rank_ != 0 || mpi_size_ < 2 || !this->output_files_ || !ebosSimulator_) {
return; return;
} }