-
Notifications
You must be signed in to change notification settings - Fork 0
/
.testAPI.sh
executable file
·13 lines (11 loc) · 1.05 KB
/
.testAPI.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
if [ -z "$WM_PROJECT" ]; then
echo "OpenFOAM environment not found, forgot to source the OpenFOAM bashrc?"
exit 1
fi
echo "Running.."
#find */runScript* -type f -exec sed -i '/"primalMinResTol"/c\ "primalMinResTol": 0.9,' {} \;
cd DARhoSimpleCFoam && ./preProcessing.sh && python runScript.py --mode=reverse --task=runAdjoint && python runScript.py --mode=forward --task=runForwardAD --dvName="shape" --seedIndex=0 && cd - || exit 1
cd DARhoSimpleFoam && ./preProcessing.sh && python runScript.py --mode=reverse --task=runAdjoint && python runScript.py --mode=forward --task=runForwardAD --dvName="shape" --seedIndex=0 && cd - || exit 1
cd DASimpleFoam && ./preProcessing.sh && python runScript.py --mode=reverse --task=runAdjoint && python runScript.py --mode=forward --task=runForwardAD --dvName="shape" --seedIndex=0 && cd - || exit 1
cd DASimpleFoamField && ./preProcessing.sh && python runScript.py --mode=reverse --task=runAdjoint && python runScript.py --mode=forward --task=runForwardAD --dvName="beta" --seedIndex=0 && cd - || exit 1