From f9d575060ee62af6691ee17adb4f2b5cd50b1a2a Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sat, 4 Jun 2022 11:15:03 +0100 Subject: [PATCH] reconstructPar: Reinstate support for reconstructing pointLevel and cellLevel files to be run with the -constant option after reconstructParMesh when reconstructing a mesh generated by snappyHexMesh in parallel. --- .../reconstructPar/reconstructPar.C | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C index 945e65fbc7..215a8c8766 100644 --- a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C +++ b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C @@ -233,6 +233,19 @@ int main(int argc, char *argv[]) meshes.readAddressing(); meshes.readUpdate(); + // Write the complete mesh if at the constant instant. Otherwise + // mesh-associated things (sets, hexRef8, ...) will not be written by + // domainDecomposition because there is no change of mesh to trigger + // them to write. + if + ( + runTimes.completeTime().timeName() + == runTimes.completeTime().constant() + ) + { + meshes.writeComplete(!noReconstructSets); + } + // Loop over all times forAll(times, timei) {