| 90 | |
| 91 | == use libIGCM to update yearly the fluxes in run.def in case of IMPOSE_NMAP=n == |
| 92 | Add this to orchidee_ol.driver |
| 93 | COMP/orchidee_ol.driver: |
| 94 | {{{ |
| 95 | ########################################################################## |
| 96 | # NP DEPOSITION FROM FILE - SITE SIMULATION |
| 97 | ############################################################################################## |
| 98 | if [ -f NPdeposition.txt ] ; then |
| 99 | # If this file exist, then read N and P deposition |
| 100 | NOY=`grep Annee_${year} NPdeposition.txt | awk -F= '{print $2}'` |
| 101 | NHX=`grep Annee_${year} NPdeposition.txt | awk -F= '{print $3}'` |
| 102 | Pdep=`grep Annee_${year} NPdeposition.txt | awk -F= '{print $4}'` |
| 103 | |
| 104 | if [ X"${NOY}" = X ] ; then |
| 105 | # The grep returned empty variable: stop execution |
| 106 | IGCM_debug_Exit "The file NPdeposition.txt.txt do not contain the current year." |
| 107 | IGCM_debug_Verif_Exit |
| 108 | fi |
| 109 | IGCM_comp_modifyDefFile nonblocker run.def Ndep_NHX ${NHX} |
| 110 | IGCM_comp_modifyDefFile nonblocker run.def Ndep_NOY ${NOY} |
| 111 | IGCM_comp_modifyDefFile nonblocker run.def Pdep_p ${Pdep} |
| 112 | fi |
| 113 | |
| 114 | ############################################################################################## |
| 115 | }}} |
| 116 | add to COMP/stomate.card the link to your deposition file |
| 117 | {{{ |
| 118 | [ParametersFiles] |
| 119 | List= (${SUBMIT_DIR}/PARAM/run.def, .),\ |
| 120 | (/ccc/work/cont003/dsm/p529goll/AmaFACE_forcing/v01/CO2_1850_2100_AmaFACE.txt, CO2.txt),\ |
| 121 | (/ccc/work/cont003/dsm/p529goll/AmaFACE_forcing/AmaFACE18502100_NPdeposition.txt, NPdeposition.txt) |
| 122 | }}} |
| 123 | the deposition file should store yearly fluxes in g/m2/yr; sequence is Annee_YEAR,NOY,NHX,Pdep: |
| 124 | {{{ |
| 125 | Annee_1850,0.0715,0.0715,0.0144 |
| 126 | Annee_1851,0.0715,0.0715,0.0144 |
| 127 | Annee_1852,0.0715,0.0715,0.0144 |
| 128 | Annee_1853,0.0715,0.0715,0.0144 |
| 129 | Annee_1854,0.0715,0.0715,0.0144 |
| 130 | Annee_1855,0.0715,0.0715,0.0144 |
| 131 | Annee_1856,0.0715,0.0715,0.0144 |
| 132 | Annee_1857,0.072,0.072,0.0144 |
| 133 | Annee_1858,0.072,0.072,0.0144 |
| 134 | }}} |
| 135 | |
| 136 | |