reconstructPar: Reconstruct the mesh

The reconstructPar utility now reconstructs the mesh if and when it is
necessary to do so. The reconstructParMesh utility is therefore no
longer necessary and has been removed.

It was necessary/advantagous to consolidate these utilities into one
because in the case of mesh changes it becomes increasingly less clear
which of the separate utilities is responsible for reconstructing data
that is neither clearly physical field nor mesh topology; e.g., moving
points, sets, refinement data, and so on.
This commit is contained in:
Will Bainbridge
2022-06-07 08:36:12 +01:00
parent b48abc78f5
commit c3ab704513
19 changed files with 1222 additions and 1346 deletions

49
bin/reconstructParMesh Executable file
View File

@ -0,0 +1,49 @@
#!/bin/sh
#------------------------------------------------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | Website: https://openfoam.org
# \\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
#
# Script
# reconstructParMesh
#
# Description
# Script to inform the user that reconstructParMesh has been superseded
# and replaced by the more general reconstructPar utility.
#
#------------------------------------------------------------------------------
cat <<EOF
The reconstructParMesh utility has been superseded and replaced by by the
more general reconstructPar.
The reconstructPar utility now reconstructs the mesh if and when it is
necessary; i.e., when it has changed in the processor* directories as a result
of utility usage or dynamic mesh changes.
Most parallel workflows previously included a call to reconstructParMesh first
to reconstruct the mesh, and then called reconstructPar for the fields. This
sort of workflow can be updated by removing the call to reconstructParMesh.
EOF
#------------------------------------------------------------------------------