src/parallel/decompose: Corrected handling of sentinel files

This commit is contained in:
Will Bainbridge
2024-05-24 16:13:33 +01:00
parent 81dd264963
commit 8b11d6a27d
8 changed files with 17 additions and 38 deletions

View File

@ -44,9 +44,9 @@ wmakeMpiLib()
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI"
whichtarget="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$version"
[ -e "$whichmpi" -a -e "$whichtarget" ] || wclean -noLnInclude $libName
echo "wmake $targetType $libName"
wmake $targetType $libName
[ -e "$whichmpi" -a -e "$whichtarget" ] || wclean -noLnInclude
echo "wmake $targetType"
wmake $targetType
touch "$whichmpi" "$whichtarget"
)
}
@ -56,13 +56,8 @@ wmakeMpiLib()
wcleanMpiLib()
{
(
version="$1"
libName="$2"
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
whichmpi="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$FOAM_MPI"
whichtarget="$WM_PROJECT_DIR/platforms/$WM_OPTIONS/src/parallel/decompose/$libName/using:$version"
wclean $libName
wclean
)
}