Merge pull request #4794 from akva2/avoid_segfault_in_cleanup

fixed: avoid segfault in cleanup if simulator has not been set up
This commit is contained in:
Bård Skaflestad
2023-08-15 11:57:26 +02:00
committed by GitHub

View File

@@ -416,7 +416,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;
}