Line | |
---|
1 | #!/bin/ksh |
---|
2 | |
---|
3 | #----------------------------------- |
---|
4 | CPL_Initialize () |
---|
5 | { |
---|
6 | |
---|
7 | echo INITIALIZE CPL !!! |
---|
8 | |
---|
9 | } |
---|
10 | |
---|
11 | #----------------------------------- |
---|
12 | CPL_Update () |
---|
13 | { |
---|
14 | |
---|
15 | ############ Update Time and Counters ############## |
---|
16 | ##-- Calcul de la duree du job (en secondes) |
---|
17 | (( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays )) |
---|
18 | |
---|
19 | ############ Update Other Parameters ############## |
---|
20 | |
---|
21 | ############ Update Parameter Files ############## |
---|
22 | sed -e "s/010101/${PeriodDateBegin}/" \ |
---|
23 | -e "s/432000/${D_JOB_SEC}/" \ |
---|
24 | -e "s/nproc_atm/${NUM_PROC_ATM}/g \ |
---|
25 | namcouple > namcouple.tmp |
---|
26 | |
---|
27 | IGCM_sys_Mv namcouple.tmp namcouple |
---|
28 | # Unused files we want to remove |
---|
29 | eval FileToBeDeleted[${#FileToBeDeleted[@]}]=trace |
---|
30 | eval FileToBeDeleted[${#FileToBeDeleted[@]}]=gweights |
---|
31 | eval FileToBeDeleted[${#FileToBeDeleted[@]}]=mweights |
---|
32 | eval FileToBeDeleted[${#FileToBeDeleted[@]}]=anaisout |
---|
33 | |
---|
34 | } |
---|
35 | |
---|
36 | #----------------------------------- |
---|
37 | CPL_Finalize () |
---|
38 | { |
---|
39 | echo FINALIZE CPL !!! |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.