Clearly mark Allrun scripts etc that use bash
When I try to run the Allrun
script in the new $FOAM_TUTORIALS/verificationAndValidation/atmosphericModels/atmForestStability
tutorial case in v2006 I get:
./Allrun: 13: ./Allrun: declare: not found
./Allrun: 14: ./Allrun: declare: not found
./Allrun: 15: ./Allrun: declare: not found
./Allrun: 17: ./Allrun: stabilityStates[0]=veryStable: not found
./Allrun: 18: ./Allrun: stabilityStates[1]=stable: not found
./Allrun: 19: ./Allrun: stabilityStates[2]=slightlyStable: not found
./Allrun: 20: ./Allrun: stabilityStates[3]=neutral: not found
./Allrun: 21: ./Allrun: stabilityStates[4]=slightlyUnstable: not found
./Allrun: 22: ./Allrun: stabilityStates[5]=unstable: not found
./Allrun: 24: ./Allrun: Lmaxs[0]=5.0: not found
./Allrun: 25: ./Allrun: Lmaxs[1]=13.0: not found
./Allrun: 26: ./Allrun: Lmaxs[2]=25.5: not found
./Allrun: 27: ./Allrun: Lmaxs[3]=41.0: not found
./Allrun: 28: ./Allrun: Lmaxs[4]=80.75: not found
./Allrun: 29: ./Allrun: Lmaxs[5]=200.0: not found
./Allrun: 31: ./Allrun: qPlants[0]=-20.0: not found
./Allrun: 32: ./Allrun: qPlants[1]=-9.0: not found
./Allrun: 33: ./Allrun: qPlants[2]=-5.0: not found
./Allrun: 34: ./Allrun: qPlants[3]=0.0: not found
./Allrun: 35: ./Allrun: qPlants[4]=15.0: not found
./Allrun: 36: ./Allrun: qPlants[5]=60.0: not found
./Allrun: 39: ./Allrun: Bad substitution
It seems that something's wrong with the declare
command. Do you think it is related to my OpenFOAM installation or is an inherent bug?
Edited by Mark OLESEN