Skip to content

Commit

Permalink
fix: skip running parallel tests if case is not parallelized
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamScience committed May 29, 2024
1 parent 41ab193 commit b71d8c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Alltest
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@ parallelTests(){
;;
esac
done
if [ -e "${3}/system/decomposeParDict" ]; then
rm -rf "${3}/processor*"
echo "decomposeParDict not found, not running parallel tests on this case..." >&2
fi
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..."
echo "decomposePar not found, assuming case already decoposed..." >&2
for i in $(seq 0 $(($nProcs - 1))); do mkdir -p "{3}/processor$i"; done
else
decomposePar -force -case "${3}" > "${3}/log.decomposePar"
Expand Down

0 comments on commit b71d8c9

Please sign in to comment.