source: branches/UKMO/r6232_tracer_advection/NEMOGCM/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/lim2.driver @ 9295

Last change on this file since 9295 was 9295, checked in by jcastill, 3 years ago

Remove svn keywords

File size: 1.5 KB
Line 
1#!/bin/ksh
2
3#-----------------------------------
4function ICE_Initialize
5{ 
6    IGCM_debug_PushStack "ICE_Initialize"
7
8    echo INITIALIZE ICE !!!
9
10    IGCM_debug_PopStack "ICE_Initialize"
11}
12
13#-----------------------------------
14function ICE_Update
15{
16    IGCM_debug_PushStack "ICE_Update"
17
18    NbFreq=$( echo ${config_ICE_WriteFrequency} | wc -w )
19
20    ##--Write Frequency Purpose ....
21    typeset -Z1 i=1
22    while [ $i -le ${NbFreq} ]; do
23        frequency=$( echo ${config_ICE_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' )
24        factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" )
25        case ${frequency} in
26            *Y|*y)
27                eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}y_${DatesPeriod} ;
28                eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_Y} ;
29                eval WFI${i}=${factor}Y ;;
30            *M|*m)
31                eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}m_${DatesPeriod} ;
32                eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_M} ;
33                eval WFI${i}=${factor}M ;;
34            *D|*d)
35                eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}d_${DatesPeriod} ;
36                eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_D} ;
37                eval WFI${i}=${factor}D ;;
38            *)
39        esac
40        let i=$i+1
41
42    done
43    echo UPDATE ICE !!!
44
45    IGCM_debug_PopStack "ICE_Update"
46}
47
48#-----------------------------------
49function ICE_Finalize
50{
51    IGCM_debug_PushStack "ICE_Finalize"
52
53    echo FINALIZE ICE !!!
54
55    IGCM_debug_PopStack "ICE_Finalize"
56}
Note: See TracBrowser for help on using the repository browser.