mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: parallel: overhaul of parallel mapping
- redistributePar to have almost (complete) functionality of decomposePar+reconstructPar - low-level distributed Field mapping - support for mapping surfaceFields (including flipping faces) - support for decomposing/reconstructing refinement data
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
# \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
@ -52,7 +52,10 @@ cleanTimeDirectories()
|
||||
rm -rf ./${timeDir} ./-${timeDir} > /dev/null 2>&1
|
||||
zeros="0$zeros"
|
||||
done
|
||||
rm -rf ./[1-9]* ./-[1-9]* ./log ./log.* ./log-* ./logSummary.* ./.fxLock ./*.xml ./ParaView* ./paraFoam* ./*.OpenFOAM ./*.blockMesh ./.setSet > /dev/null 2>&1
|
||||
rm -rf \
|
||||
./[1-9]* ./-[1-9]* ./log ./log.* ./log-* ./logSummary.* \
|
||||
./.fxLock ./*.xml ./ParaView* ./paraFoam* ./*.OpenFOAM ./*.blockMesh \
|
||||
./.setSet > /dev/null 2>&1
|
||||
}
|
||||
|
||||
|
||||
@ -68,6 +71,33 @@ cleanDynamicCode()
|
||||
}
|
||||
|
||||
|
||||
cleanSnappyFiles()
|
||||
{
|
||||
rm -f \
|
||||
constant/polyMesh/cellLevel \
|
||||
constant/polyMesh/pointLevel \
|
||||
constant/polyMesh/refinementHistory \
|
||||
constant/polyMesh/level0Edge \
|
||||
constant/polyMesh/surfaceIndex > /dev/null 2>&1
|
||||
rm -f \
|
||||
processor*/constant/polyMesh/cellLevel \
|
||||
processor*/constant/polyMesh/pointLevel \
|
||||
processor*/constant/polyMesh/refinementHistory \
|
||||
processor*/constant/polyMesh/level0Edge \
|
||||
processor*/constant/polyMesh/surfaceIndex > /dev/null 2>&1
|
||||
rm -f \
|
||||
constant/cellLevel \
|
||||
constant/pointLevel \
|
||||
0/cellLevel \
|
||||
0/pointLevel > /dev/null 2>&1
|
||||
rm -f \
|
||||
processor*/constant/cellLevel \
|
||||
processor*/constant/pointLevel \
|
||||
processor*/0/cellLevel \
|
||||
processor*/0/pointLevel > /dev/null 2>&1
|
||||
}
|
||||
|
||||
|
||||
cleanCase()
|
||||
{
|
||||
cleanTimeDirectories
|
||||
@ -83,26 +113,25 @@ cleanCase()
|
||||
rm -rf cuttingPlane > /dev/null 2>&1
|
||||
rm -rf system/machines > /dev/null 2>&1
|
||||
|
||||
# From mpirunDebug
|
||||
rm -f gdbCommands mpirun.schema
|
||||
|
||||
cleanSnappyFiles
|
||||
if [ -d constant/polyMesh ]
|
||||
then
|
||||
(cd constant/polyMesh && \
|
||||
rm -rf \
|
||||
allOwner* cell* face* meshModifiers* \
|
||||
owner* neighbour* point* edge* \
|
||||
cellLevel* pointLevel* refinementHistory* level0Edge* surfaceIndex* sets \
|
||||
owner* neighbour* point* edge* sets \
|
||||
> /dev/null 2>&1 \
|
||||
)
|
||||
fi
|
||||
(cd constant && \
|
||||
rm -rf \
|
||||
cellToRegion cellLevel* pointLevel* \
|
||||
> /dev/null 2>&1 \
|
||||
)
|
||||
(cd constant && rm -rf cellToRegion > /dev/null 2>&1)
|
||||
|
||||
rm -rf constant/tetDualMesh > /dev/null 2>&1
|
||||
|
||||
rm -rf VTK > /dev/null 2>&1
|
||||
rm -f 0/cellLevel 0/pointLevel 0/cellDist constant/cellDecomposition
|
||||
rm -f 0/cellDist constant/cellDecomposition
|
||||
|
||||
if [ -e constant/polyMesh/blockMeshDict.m4 ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user