mapFields: Corrected handling of userTime

Resolves bug-report https://bugs.openfoam.org/view.php?id=3786
This commit is contained in:
Henry Weller
2022-01-18 10:52:06 +00:00
parent c104aac1da
commit ded017b762
10 changed files with 35 additions and 29 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -924,8 +924,8 @@ int main(int argc, char *argv[])
runTime++;
}
Info<< "Writing mesh without blockedCells to time " << runTime.value()
<< endl;
Info<< "Writing mesh without blockedCells to time "
<< runTime.userTimeName() << endl;
// Subsetting adds 'subset' prefix. Rename field to be like original.
forAll(scalarFlds, i)
@ -1147,8 +1147,8 @@ int main(int argc, char *argv[])
subsetter.subMesh().movePoints(map().preMotionPoints());
}
Info<< "Writing mesh with split blockedFaces to time " << runTime.value()
<< endl;
Info<< "Writing mesh with split blockedFaces to time "
<< runTime.userTimeName() << endl;
subsetter.subMesh().write();