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.
lim3.driver in branches/2013/dev_MERGE_2013/NEMOGCM/CONFIG/ORCA2_LIM3/IGCM00/COMP – NEMO

source: branches/2013/dev_MERGE_2013/NEMOGCM/CONFIG/ORCA2_LIM3/IGCM00/COMP/lim3.driver @ 4526

Last change on this file since 4526 was 4526, checked in by flavoni, 9 years ago

add cards in IGCM00 directory for LIM3

  • Property svn:executable set to *
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.