#!/bin/ksh

#-----------------------------------
CPL_Initialize ()
{

echo INITIALIZE CPL !!!

}

#-----------------------------------
CPL_Update ()
{

############ Update Time and Counters ##############
##-- Calcul de la duree du job (en secondes)
(( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays ))

############ Update Other Parameters  ##############

############ Update Parameter Files   ##############
sed -e "s/010101/${PeriodDateBegin}/" \
    -e "s/432000/${D_JOB_SEC}/" \
	namcouple > namcouple.tmp

    IGCM_sys_Mv namcouple.tmp namcouple
    # Unused files we want to remove
    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=trace
    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=gweights
    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=mweights
    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=anaisout

}

#-----------------------------------
CPL_Finalize ()
{
echo FINALIZE CPL !!!
}
