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.
input_GYRE_indev.cfg in utils/CI/sette_ticket2417 – NEMO

source: utils/CI/sette_ticket2417/input_GYRE_indev.cfg @ 12874

Last change on this file since 12874 was 12874, checked in by mathiot, 4 years ago

ticket #2417: add exemple of what could be the new sette core script (sette_test-cases_indev.sh) and an exemple of the input file (input_GYRE.cfg)

File size: 2.6 KB
Line 
1#!/bin/bash
2
3# for compilation
4CFG_TYPE='cfgs'
5
6# data
7DATA_NAME=''
8
9# restart list
10RST_LST='icb ice trc'
11     
12# Agrif
13USE_AGRIF=0
14NZOOM_AGRIF=0
15
16# length simulation
17ITEND=992   ; STOCK=$((ITEND/2))
18ITEND1=1984 ; STOCK1=$((ITEND1/2))
19
20# processor set up
21JPNI_REF=4 ; JPNJ_REF=8 ; NPROC_REF=$((JPNI_REF*JPNJ_REF))
22JPNI_MPP=8 ; JPNJ_MPP=4 ; NPROC_MPP=$((JPNI_MPP*JPNJ_MPP))
23
24# namelist setup
25# define set_namelist_common function (could the REF setting)
26define_namelist_common() {
27      set_namelist namelist_cfg nn_it000 1
28      set_namelist namelist_cfg nn_itend $ITEND
29      set_namelist namelist_cfg nn_stock $STOCK
30      set_namelist namelist_cfg jpni $JPNI_REF
31      set_namelist namelist_cfg jpnj $JPNJ_REF
32      set_namelist namelist_cfg ln_ctl .false.
33      set_namelist namelist_cfg sn_cfctl%l_config .true.
34      set_namelist namelist_cfg sn_cfctl%l_runstat .true.
35      set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
36      set_namelist namelist_cfg ln_linssh .true.
37      }
38
39# SHOULD this be in all_function with CONFIG as argument (need to see how it will work for AGRIF)?
40# define set_namelist_REF function (that overwrite the default value set in common)
41define_namelist_ref() {
42      set_namelist namelist_cfg cn_exp \"${CONFIG}_ST_REF\"
43      }
44
45# SHOULD this be in all_function with CONFIG and STOCK as argument (need to see how it will work for AGRIF)?
46# define set_namelist_RST function (that overwrite the default value set in common)
47define_namelist_rst() {
48      set_namelist namelist_cfg cn_exp \"${CONFIG}_ST_RST\"
49      set_namelist namelist_cfg nn_it000 $((STOCK+1))
50      set_namelist namelist_top_cfg ln_rsttr .true.
51      set_namelist namelist_top_cfg nn_rsttr 2
52      }
53
54# SHOULD this be in all_function with CONFIG and JPNI_MPP JPNJ_MPP as argument (need to see how it will work for AGRIF)?
55# define set_namelist_MPP function (that overwrite the default value set in common)
56define_namelist_MPP() {
57      set_namelist namelist_cfg cn_exp \"${CONFIG}_ST_MPP\"
58      set_namelist namelist_cfg jpni $JPNI_MPP
59      set_namelist namelist_cfg jpnj $JPNJ_MPP
60      }
61
62# SHOULD this be in all_function with CONFIG and L_NPROC, STOCK RST_LST as argument (need to see how it will work for AGRIF)?
63link_restart() {
64      for (( i=1; i<=$NPROC; i++)) ; do
65         L_NPROC=$(( $i - 1 ))
66         L_NPROC=`printf "%04d\n" ${L_NPROC}`
67         NSTOCK8d=`printf '%08d\n' ${$STOCK}`
68         ln -sf ../REF/${CONFIG}_ST_REF_${NSTOCK8d}_restart_${L_NPROC}.nc restart_${L_NPROC}.nc
69         for rst in $RST_LST; do
70            ln -sf ../REF/${CONFIG}_ST_REF_${NSTOCK8d}_restart_${rst}_${L_NPROC}.nc restart_${rst}_${L_NPROC}.nc
71         done
72      done
73      }
Note: See TracBrowser for help on using the repository browser.