mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 15:10:09 -05:00
fixed: avoid segfault in cleanup if simulator has not been set up
This commit is contained in:
1 parent
f806e7668b
commit
19f446a7a5
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user