Changeset 4323


Ignore:
Timestamp:
03/18/19 13:07:02 (5 years ago)
Author:
jgipsl
Message:
  • Correction: set dayref and anneeref also when running with DYNAMICO
  • RESOL_NBP is mandatory in dynamico.card when running with DYNAMICO. It is now also read by lmdz.driver
Location:
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/dynamico.driver

    r4318 r4323  
    99        RESOL_NBP=${dynamico_UserChoices_RESOL_NBP} 
    1010    else 
    11         # Set default resolution 
    12         RESOL_NBP=20 
     11        # Exit 
     12        IGCM_debug_Exit "RESOL_NBP must be set in dynamico.card UserSection" 
     13    IGCM_debug_Verif_Exit 
    1314    fi 
    1415 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/lmdz.driver

    r4281 r4323  
    1818    else 
    1919        RESOL_ATM_Z=${dynamico_UserChoices_RESOL_ATM_Z} 
     20        RESOL_NBP=${dynamico_UserChoices_RESOL_NBP} 
    2021    fi 
    2122 
     
    362363 
    363364 
    364     ## -- Modify more calendar related variables. These variables are only read by LMDZ dynamics part.  
    365     #     Set them to dummy if component ICO (DYNAMICO) is set in config.card. 
    366     if [ X${config_ListOfComponents_ICO} = X ] ; then 
    367         # Following variables are read by LMDZ dynamics  
    368         IGCM_comp_modifyDefFile blocker run.def dayref    ${InitDay} 
    369         IGCM_comp_modifyDefFile blocker run.def nday      ${PeriodLengthInDays} 
    370  
    371         # Set anneeref different for gcm and ce0l 
    372         # Test if executable create_etat0_limit is present and lmdz.x is not present 
    373         if [ -f create_etat0_limit* ] || [ -f ce0l* ] && [ ! -f lmdz.x ] ; then 
    374             # for case ce0l : always take current year 
    375             IGCM_comp_modifyDefFile blocker run.def anneeref ${year} 
    376              
    377             # Temporary, set use_filtre_fft=n because we now use dyn3d for ce0l version where fft is not implemented.  
    378             # In more recent versions of LMDZ, this will not be needed.  
    379             IGCM_comp_modifyDefFile force   run.def use_filtre_fft n 
    380         else 
    381             # for case gcm : take first year of simulation 
    382             IGCM_comp_modifyDefFile blocker run.def anneeref ${InitYear} 
    383         fi 
    384          
    385     else 
    386         # ICO is found in config.card which means that DYNMAICO is activated.  
    387         # Set these variables to DUMMY. They will not be read. 
    388         IGCM_comp_modifyDefFile blocker run.def dayref           DUMMY 
    389         IGCM_comp_modifyDefFile blocker run.def nday             DUMMY 
    390         IGCM_comp_modifyDefFile blocker run.def anneeref         DUMMY 
    391         IGCM_comp_modifyDefFile force   run.def use_filtre_fft   DUMMY 
    392     fi 
     365    ## -- Modify more calendar related variables. 
     366    IGCM_comp_modifyDefFile blocker run.def dayref    ${InitDay} 
     367    # Following variables are read by LMDZ dynamics  
     368    IGCM_comp_modifyDefFile blocker run.def nday      ${PeriodLengthInDays} 
     369 
     370    # Set anneeref different for gcm and ce0l 
     371    # Test if executable create_etat0_limit is present and lmdz.x is not present 
     372    if [ -f create_etat0_limit* ] || [ -f ce0l* ] && [ ! -f lmdz.x ] ; then 
     373        # for case ce0l : always take current year 
     374        IGCM_comp_modifyDefFile blocker run.def anneeref ${year} 
     375         
     376        # Temporary, set use_filtre_fft=n because we now use dyn3d for ce0l version where fft is not implemented.  
     377        # In more recent versions of LMDZ, this will not be needed.  
     378        IGCM_comp_modifyDefFile force   run.def use_filtre_fft n 
     379    else 
     380        # for case gcm : take first year of simulation 
     381        IGCM_comp_modifyDefFile blocker run.def anneeref ${InitYear} 
     382    fi 
     383     
    393384 
    394385    ## Determine from the variable ListOfComponents in config.card coupling to external models  
Note: See TracChangeset for help on using the changeset viewer.