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
commit 0960494aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}