Changeset 5106


Ignore:
Timestamp:
05/20/20 14:53:58 (7 weeks ago)
Author:
aclsce
Message:
  • Added Addnoise functionality in IPSLCM5A2 configuration.
Location:
CONFIG/UNIFORM/v6/IPSLCM5A2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM5A2/EXPERIMENTS/IPSLCM/piControl/COMP/oasis.card

    r3262 r5106  
    66FreqCoupling=86400 
    77Lucia=n 
     8 
     9# ByPass_addnoise_sst=y : use addnoise on sst in CPL restart for following CumulPeriod only 
     10ByPass_addnoise_sst= n 
     11ByPass_PerturbExe=AddNoise 
     12ByPass_FileOut=sstoc 
     13ByPass_PerturbVar=O_SSTSST 
     14ByPass_PerturbAmp=0.01 
    815 
    916[InitialStateFiles] 
  • CONFIG/UNIFORM/v6/IPSLCM5A2/GENERAL/DRIVER/oasis.driver

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