Changeset 269 for trunk/libIGCM/AA_job


Ignore:
Timestamp:
05/06/10 16:28:09 (14 years ago)
Author:
mmaipsl
Message:

BIG IMPROVMENT :
Add new function IGCM_comp_PeriodStart to the main loop.
This function is called after IGCM_config_PeriodStart, then all Period and date
variables will be set correctly. And it is used before libIGCM read INIT and BC component's lists.
It will read new (and optionnal) component function ${compname}_PeriodStart function
in each ${compname}.driver files. Those new functions will give you the possibility
to set some variables used inside BC or INIT list.
For example :
in my orchidee.card, I want to change a file in BC list during the run and that depends on the year
[BoundaryFiles?]
List= (${BC_SRF_PFTmap} PFTmap.nc)
ListNonDel?= ()
(! remark that I must have suppressed the comma in the List !)

I set this variable in my orchidee.driver like that :
function SRF_PeriodStart
{

IGCM_debug_PushStack "SRF_PeriodStart"
if [ ${year} -gt 1994 ] ; then

PFTmap="${R_BC}/SRF/${config_UserChoices_TagName}/ORCHIDEE_PFTmap_2006to2100_AR5_RCP8.5_MESSAGE.nc"
if [ ${year} -eq 1995 ] ; then

IGCM_sys_Rm -f PFTmap.nc
BC_SRF_PFTmap=${PFTmap}

fi

else

PFTmap="${R_BC}/SRF/${config_UserChoices_TagName}/ORCHIDEE_PFTmap_1850to2005_AR5_LUHa.rc2.nc"

fi
IGCM_debug_PopStack "SRF_PeriodStart"

}

Then I can change the LAND USE file without stopping my job.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_job

    r265 r269  
    292292    #D- 
    293293    # ------------------------------------------------------------------ 
     294    #D- Optionnal function in driver  
     295    #D- to set special variables used in forward lists (Param, Init or Bc). 
     296    # ------------------------------------------------------------------ 
     297    IGCM_comp_PeriodStart 
     298     
     299    #D- 
     300    # ------------------------------------------------------------------ 
    294301    #D- Get parameters text files updated by job (.def, namelist ...) 
    295302    #D- READ AND USE BY GCM AT EACH EXECUTION. 
Note: See TracChangeset for help on using the changeset viewer.