Changeset 3890


Ignore:
Timestamp:
06/04/18 13:55:33 (3 years ago)
Author:
mafoipsl
Message:

DRIVER/oasis.driver : an other way to test the first passage to use AddNoise because Period is not available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/oasis.driver

    r3121 r3890  
    9999    IGCM_comp_modifyXmlFile force iodef.xml using_oasis NONE true 
    100100 
     101    Test_AddNoise_First_Only=y 
     102    if [ X"${Test_AddNoise_First_Only}" = X"y" ]; then 
     103 
     104    Test_AddNoise_First_Only=n 
     105 
     106    # AddNoise if required but only for one Period 
     107 
     108    # Read ByPass_addnoise_sst option in oasis.card --> apply addnoise for sst in CPL restart file if [ $ByPass_addnoise_sst = y ] 
     109    ByPass_addnoise_sst=${oasis_UserChoices_ByPass_addnoise_sst} 
     110    if [ X"${ByPass_addnoise_sst}" = X"y" ] ; then 
     111       
     112      ByPass_PerturbExe=${oasis_UserChoices_ByPass_PerturbExe} 
     113      ByPass_FileOut=${oasis_UserChoices_ByPass_FileOut} 
     114      ByPass_PerturbVar=${oasis_UserChoices_ByPass_PerturbVar} 
     115      ByPass_PerturbAmp=${oasis_UserChoices_ByPass_PerturbAmp} 
     116 
     117      IGCM_sys_Chmod 644 ${RUN_DIR}/${ByPass_FileOut}.nc 
     118      IGCM_debug_Print 1 "${ByPass_PerturbExe} ${RUN_DIR}/${ByPass_FileOut}.nc ${ByPass_PerturbVar} ${ByPass_PerturbAmp}" 
     119 
     120      ${ByPass_PerturbExe} ${RUN_DIR}/${ByPass_FileOut}.nc ${ByPass_PerturbVar} ${ByPass_PerturbAmp}  
     121      if [ $? -ne 0 ] ; then 
     122        IGCM_debug_Exit "Error with $( basename ${ByPass_PerturbExe} )" 
     123        IGCM_debug_Verif_Exit 
     124      fi 
     125 
     126      echo 
     127      IGCM_debug_Print 1 "ByPass_addnoise_sst : applied addnoise for sst in CPL restart file" 
     128      echo 
     129      ByPass_addnoise_sst=n 
     130      # necessary to reset ByPass in next Period during the same Job (PeriodNb<>1) 
     131      export oasis_UserChoicesByPass_addnoise_sst=n 
     132      IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/oasis.card UserChoices ByPass_addnoise_sst "${ByPass_addnoise_sst}" 
     133    fi 
     134 
     135    fi 
     136 
    101137    IGCM_debug_PopStack "CPL_Update" 
    102138} 
Note: See TracChangeset for help on using the changeset viewer.