Merge pull request #4916 from daavid00/fixVtkOnReportStep

Fix to write vtks on report steps
This commit is contained in:
Markus Blatt 2023-10-11 11:59:18 +02:00 committed by GitHub
commit 62dd660b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -737,7 +737,9 @@ public:
OPM_TIMEBLOCK(problemWriteOutput);
// use the generic code to prepare the output fields and to
// write the desired VTK files.
ParentType::writeOutput(verbose);
if (EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions) || this->simulator().episodeWillBeOver()){
ParentType::writeOutput(verbose);
}
bool isSubStep = !EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions) && !this->simulator().episodeWillBeOver();