Ignore:
Timestamp:
2020-07-02T16:24:31+02:00 (4 months ago)
Author:
orioltp
Message:

Merging dev_r12512_HPC-04_mcastril_Mixed_Precision_implementation into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/tests/STATION_ASF/EXPREF/launch_sasf.sh

    r13214 r13226  
    1515WORK_DIR="${HOME}/tmp/STATION_ASF" 
    1616 
    17  
    18 # FORC_DIR => Directory containing sea-surface + atmospheric forcings 
     17# DATA_IN_DIR => Directory containing sea-surface + atmospheric forcings 
    1918#             (get it there https://drive.google.com/file/d/1MxNvjhRHmMrL54y6RX7WIaM9-LGl--ZP/): 
    2019if [ `hostname` = "merlat"        ]; then 
    21     FORC_DIR="/MEDIA/data/STATION_ASF/input_data_STATION_ASF_2016-2018" 
     20    DATA_IN_DIR="/MEDIA/data/STATION_ASF/input_data_STATION_ASF_2016-2018" 
    2221elif [ `hostname` = "luitel"        ]; then 
    23     FORC_DIR="/data/gcm_setup/STATION_ASF/input_data_STATION_ASF_2016-2018" 
     22    DATA_IN_DIR="/data/gcm_setup/STATION_ASF/input_data_STATION_ASF_2016-2018" 
    2423elif [ `hostname` = "ige-meom-cal1" ]; then 
    25     FORC_DIR="/mnt/meom/workdir/brodeau/STATION_ASF/input_data_STATION_ASF_2016-2018" 
     24    DATA_IN_DIR="/mnt/meom/workdir/brodeau/STATION_ASF/input_data_STATION_ASF_2016-2018" 
    2625elif [ `hostname` = "salvelinus" ]; then 
    27     FORC_DIR="/opt/data/STATION_ASF/input_data_STATION_ASF_2016-2018" 
     26    DATA_IN_DIR="/opt/data/STATION_ASF/input_data_STATION_ASF_2016-2018" 
    2827else 
    29     echo "Boo!"; exit 
     28    echo "Oops! We don't know `hostname` yet! Define 'DATA_IN_DIR' in the script!"; exit  
    3029fi 
    31 #====================== 
    32 mkdir -p ${WORK_DIR} 
    3330 
    3431 
    3532if [ ! -f ${NEMO_EXE} ]; then echo " Mhhh, no compiled nemo.exe found into ${NEMO_DIR}/tests/STATION_ASF/BLD/bin !"; exit; fi 
    3633 
    37 NEMO_EXPREF="${NEMO_DIR}/tests/STATION_ASF/EXPREF" 
     34# NEMOGCM root directory where to fetch compiled STATION_ASF nemo.exe + setup: 
     35NEMO_WRK_DIR=`pwd | sed -e "s|/tests/STATION_ASF/${expdir}||g"` 
     36 
     37# Directory where to run the simulation: 
     38PROD_DIR="${HOME}/tmp/STATION_ASF" 
     39 
     40 
     41####### End of normal user configurable section ####### 
     42 
     43#================================================================================ 
     44 
     45# NEMO executable to use is: 
     46NEMO_EXE="${NEMO_WRK_DIR}/tests/${TC_DIR}/BLD/bin/nemo.exe" 
     47 
     48 
     49echo "###########################################################" 
     50echo "#        S T A T I O N   A i r  -  S e a   F l u x        #" 
     51echo "###########################################################" 
     52echo 
     53echo " We shall work in here: ${STATION_ASF_DIR}/" 
     54echo " NEMOGCM   work    depository is: ${NEMO_WRK_DIR}/" 
     55echo "   ==> NEMO EXE to use: ${NEMO_EXE}" 
     56echo " Input forcing data into: ${DATA_IN_DIR}/" 
     57echo " Production will be done into: ${PROD_DIR}/" 
     58echo 
     59 
     60mkdir -p ${PROD_DIR} 
     61 
     62if [ ! -f ${NEMO_EXE} ]; then echo " Mhhh, no compiled 'nemo.exe' found into `dirname ${NEMO_EXE}` !"; exit; fi 
     63 
     64echo 
     65echo " *** Using the following NEMO executable:" 
     66echo "  ${NEMO_EXE} " 
     67echo 
     68 
     69NEMO_EXPREF="${NEMO_WRK_DIR}/tests/STATION_ASF/EXPREF" 
    3870if [ ! -d ${NEMO_EXPREF} ]; then echo " Mhhh, no EXPREF directory ${NEMO_EXPREF} !"; exit; fi 
    3971 
    40 rsync -avP ${NEMO_EXE}          ${WORK_DIR}/ 
     72rsync -avP ${NEMO_EXE}          ${PROD_DIR}/ 
    4173 
    4274for ff in "context_nemo.xml" "domain_def_nemo.xml" "field_def_nemo-oce.xml" "file_def_nemo-oce.xml" "grid_def_nemo.xml" "iodef.xml" "namelist_ref"; do 
    4375    if [ ! -f ${NEMO_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${NEMO_EXPREF} !"; exit; fi 
    44     rsync -avPL ${NEMO_EXPREF}/${ff} ${WORK_DIR}/ 
     76    rsync -avPL ${NEMO_EXPREF}/${ff} ${PROD_DIR}/ 
    4577done 
    4678 
    4779# Copy forcing to work directory: 
    48 rsync -avP ${FORC_DIR}/Station_PAPA_50N-145W*.nc ${WORK_DIR}/ 
     80rsync -avP ${DATA_IN_DIR}/Station_PAPA_50N-145W*.nc ${PROD_DIR}/ 
    4981 
    5082for CASE in "ECMWF" "COARE3p6" "NCAR" "ECMWF-noskin" "COARE3p6-noskin"; do 
     
    5890    scase=`echo "${CASE}" | tr '[:upper:]' '[:lower:]'` 
    5991 
    60     rm -f ${WORK_DIR}/namelist_cfg 
    61     rsync -avPL ${NEMO_EXPREF}/namelist_${scase}_cfg ${WORK_DIR}/namelist_cfg 
     92    rm -f ${PROD_DIR}/namelist_cfg 
     93    rsync -avPL ${NEMO_EXPREF}/namelist_${scase}_cfg ${PROD_DIR}/namelist_cfg 
    6294 
    63     cd ${WORK_DIR}/ 
     95    cd ${PROD_DIR}/ 
    6496    echo 
    6597    echo "Launching NEMO !" 
Note: See TracChangeset for help on using the changeset viewer.