New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
launch_sasf.sh in NEMO/branches/2019/dev_r11943_MERGE_2019/tests/STATION_ASF/EXPREF – NEMO

source: NEMO/branches/2019/dev_r11943_MERGE_2019/tests/STATION_ASF/EXPREF/launch_sasf.sh @ 12182

Last change on this file since 12182 was 11996, checked in by laurent, 4 years ago

Only 1 call to each algo in "sbcblk.F90"; + added "no-skin" cases in STATION_ASF

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1#!/bin/bash
2
3# NEMO directory where to fetch compiled STATION_ASF nemo.exe + setup:
4NEMO_DIR="${HOME}/NEMO/NEMOvdev_r11085_ASINTER-05_Brodeau_Advanced_Bulk"
5
6# Directory where to run the simulation:
7WORK_DIR="${HOME}/tmp/STATION_ASF"
8
9
10# FORC_DIR => Directory containing sea-surface + atmospheric forcings
11#             (get it there https://drive.google.com/file/d/1MxNvjhRHmMrL54y6RX7WIaM9-LGl--ZP/):
12if [ `hostname` = "merlat"        ]; then
13    FORC_DIR="/MEDIA/data/STATION_ASF/input_data_STATION_ASF_2016-2018"
14elif [ `hostname` = "luitel"        ]; then
15    FORC_DIR="/data/gcm_setup/STATION_ASF/input_data_STATION_ASF_2016-2018"
16elif [ `hostname` = "ige-meom-cal1" ]; then
17    FORC_DIR="/mnt/meom/workdir/brodeau/STATION_ASF/input_data_STATION_ASF_2016-2018"
18elif [ `hostname` = "salvelinus" ]; then
19    FORC_DIR="/opt/data/STATION_ASF/input_data_STATION_ASF_2016-2018"
20else
21    echo "Boo!"; exit
22fi
23#======================
24mkdir -p ${WORK_DIR}
25
26NEMO_EXE="${NEMO_DIR}/tests/STATION_ASF/BLD/bin/nemo.exe"
27if [ ! -f ${NEMO_EXE} ]; then echo " Mhhh, no compiled nemo.exe found into ${NEMO_DIR}/tests/STATION_ASF/BLD/bin !"; exit; fi
28
29NEMO_EXPREF="${NEMO_DIR}/tests/STATION_ASF/EXPREF"
30if [ ! -d ${NEMO_EXPREF} ]; then echo " Mhhh, no EXPREF directory ${NEMO_EXPREF} !"; exit; fi
31
32rsync -avP ${NEMO_EXE}          ${WORK_DIR}/
33
34for 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
35    if [ ! -f ${NEMO_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${NEMO_EXPREF} !"; exit; fi
36    rsync -avPL ${NEMO_EXPREF}/${ff} ${WORK_DIR}/
37done
38
39# Copy forcing to work directory:
40rsync -avP ${FORC_DIR}/Station_PAPA_50N-145W*.nc ${WORK_DIR}/
41
42for CASE in "ECMWF-noskin" "COARE3p6-noskin" "ECMWF" "COARE3p6" "NCAR"; do
43
44    echo ; echo
45    echo "============================="
46    echo " Going for ${CASE} experiment"
47    echo "============================="
48    echo
49
50    scase=`echo "${CASE}" | tr '[:upper:]' '[:lower:]'`
51
52    rm -f ${WORK_DIR}/namelist_cfg
53    rsync -avPL ${NEMO_EXPREF}/namelist_${scase}_cfg ${WORK_DIR}/namelist_cfg
54
55    cd ${WORK_DIR}/
56    echo
57    echo "Launching NEMO !"
58    ./nemo.exe 1> out_nemo.out 2>err_nemo.err
59    echo "Done!"
60    echo
61
62    # Moving output files:
63    mkdir -p output
64    mv -f STATION_ASF-${CASE}_*_grid*.nc output/
65   
66    # Saving logs:
67    mkdir -p ${CASE}_log
68    mv -f *.out *.err ocean.output output.namelist.dyn ${CASE}_log/
69
70done
Note: See TracBrowser for help on using the repository browser.