12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- # This Launcher is only a wrapper to preserve compatibility between ELPiN and
- # auto-nemo and auto-ecearth prpjects.
- set -xuve
- # Script to correctly configure the tool
- WORKING_DIR=$(readlink -f "`dirname \"$0\"`")
- cd $WORKING_DIR
- [ ! -f bin/mpp_domain_decomposition.exe ] && { ./Configure && exit 0 || exit 1 ;}
- # Initializing Variables
- ECE=FALSE
- # Parse arguments
- for arg in $@ ;do
- case $arg in
- "-s" )
- SIMPLIFIED=TRUE
- ;;
- "-e" )
- ECE=TRUE
- ;;
- "ORCA2" )
- RESOLUTION=ORCA2
- ;;
- "ORCA1" )
- RESOLUTION=ORCA1
- ;;
- "ORCA025" )
- RESOLUTION=ORCA025
- ;;
- "ORCA12" )
- RESOLUTION=ORCA12
- ;;
- [0-9]* )
- MAX_NUMPROC=$arg
- ;;
-
- *)
- echo "unknown parameter $arg" 1>&2
- exit 1
- ;;
- esac
- done
- [ -z $RESOLUTION ] && echo "Error: Resolution not specified!" 1>&2 && exit 1
- [[ $ECE == TRUE ]] && { [[ $RESOLUTION = ORCA2 ]] || [[ $RESOLUTION == ORCA12 ]] ;} && echo "Resolution $RESOLUTION not available in EC-Earth" 1>&2 && exit 1
- [[ $ECE == "TRUE" ]] && bathy=bathymetries/ece_bathy_meter_${RESOLUTION}.nc || bathy=bathymetries/nemo_bathy_meter_${RESOLUTION}.nc
- ./ELPiNv2.cmd $bathy $MAX_NUMPROC
- set +xuve
|