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

This commit is contained in:
Arne Morten Kvarving committed 2023-08-15 09:51:41 +02:00
1 parent f806e7668b
commit 19f446a7a5
1 file changed
+1 -1
+1 -1
View File
@@ -415,7 +415,7 @@ void handleExtraConvergenceOutput(SimulatorReport& report,
// force closing of all log files.
OpmLog::removeAllBackends();
if (mpi_rank_ != 0 || mpi_size_ < 2 || !this->output_files_) {
if (mpi_rank_ != 0 || mpi_size_ < 2 || !this->output_files_ || !ebosSimulator_) {
return;
}