Skip to content

Commit

Permalink
fix: skip decomposing if decomposePar is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamScience committed May 29, 2024
1 parent f87c5f0 commit 41ab193
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Alltest
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,15 @@ parallelTests(){
;;
esac
done
decomposePar -force -case "${3}" > "${3}/log.decomposePar"
nProcs=$(grep -oP "numberOfSubdomains\s+\K\d+" "${3}"/system/decomposeParDict)
if ! command -v my_command &> /dev/null; then
echo "decomposePar not found, assuming case already decoposed..."
for i in $(seq 0 $(($nProcs - 1))); do mkdir -p "{3}/processor$i"; done
else
decomposePar -force -case "${3}" > "${3}/log.decomposePar"
fi
err=$((err + $?))
# run the case in parallel mode
nProcs=$(grep -oP "numberOfSubdomains\s+\K\d+" "${3}"/system/decomposeParDict)
report=""
case $doReport in
(true) report="-s -r json -d yes";;
Expand Down

0 comments on commit 41ab193

Please sign in to comment.