Fix to write vtks on report steps

This commit is contained in:
David Landa Marban committed 2023-10-09 11:03:23 +02:00
1 parent 3f436501d2
commit b0b9b1205c
1 file changed
+3 -1
+3 -1
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();