| 37 | '''11 layer hydrology (CWRR)''' |
| 38 | |
| 39 | In modeles/LMDZ/libf/phylmd/surf_land_orchidee_mod.F90: |
| 40 | |
| 41 | Original |
| 42 | |
| 43 | {{{ |
| 44 | zlev(1:knon) = (100.*plev(1:knon))/((ps(1:knon)/RD*temp_air(1:knon))*RG) |
| 45 | }}} |
| 46 | |
| 47 | Modified |
| 48 | {{{ |
| 49 | zlev(1:knon) = plev(1:knon)*RD*temp_air(1:knon)/((ps(1:knon)*100.0)*RG) |
| 50 | }}} |
| 51 | |
| 52 | In modeles/LMDZ/libf/phylmd/coefcdrag.F90: |
| 53 | |
| 54 | Original |
| 55 | {{{ |
| 56 | ztsolv(i) = ts(i) |
| 57 | ztvd(i) = t(i) * (psol(i)/pref(i))**RKAPPA |
| 58 | trm0(i) = 1. + RETV * max(qsurf(i),0.0) |
| 59 | trm1(i) = 1. + RETV * max(q(i),0.0) |
| 60 | ztsolv(i) = ztsolv(i) * trm0(i) |
| 61 | ztvd(i) = ztvd(i) * trm1(i) |
| 62 | zri1(i) = zdphi(i)*(ztvd(i)-ztsolv(i))/(zdu2(i)*ztvd(i)) |
| 63 | |
| 64 | }}} |
| 65 | |
| 66 | Modified |
| 67 | {{{ |
| 68 | ztsolv(i) = ts(i) |
| 69 | ! ztvd(i) = t(i) * (psol(i)/pref(i))**RKAPPA |
| 70 | trm0(i) = 1. + RETV * max(qsurf(i),0.0) |
| 71 | trm1(i) = 1. + RETV * max(q(i),0.0) |
| 72 | ztsolv(i) = ztsolv(i) * trm0(i) |
| 73 | ! ztvd(i) = ztvd(i) * trm1(i) |
| 74 | ztvd(i) = (t(i)+zdphi(i)/RCPD/(1.+RVTMP2*q(i))) & |
| 75 | *(1.+RETV*q(i)) |
| 76 | zri1(i) = zdphi(i)*(ztvd(i)-ztsolv(i))/(zdu2(i)*ztvd(i)) |
| 77 | }}} |
| 78 | |
| 79 | Once you have done this, you can create the makefile and compile as normal (found elsewhere on the Wiki). |
| 80 | |
| 81 | == Configuration Files == |
| 82 | |
| 83 | These changes are done in the directory where you will be submitting the job (config/LMDZOR_v5.2/JOBNAME, for example). |
| 84 | |
| 85 | ''' 11 layer hydrology (CWRR)''' |
| 86 | |
| 87 | Confirm the following lines are present. If a line exists but with something different after the = sign, then change it. |
| 88 | |
| 89 | In PARAM/orchidee.def_CWRR: |
| 90 | {{{ |
| 91 | RIVER_ROUTING = n |
| 92 | }}} |
| 93 | |
| 94 | In COMP/orchidee.card: |
| 95 | {{{ |
| 96 | DefSuffix=CWRR |
| 97 | }}} |
| 98 | |
| 99 | ''' New physics''' |
| 100 | |
| 101 | Confirm the following lines are present. |
| 102 | |
| 103 | In PARAM/orchidee.def_CWRR: |
| 104 | {{{ |
| 105 | evapot_corr=y |
| 106 | }}} |
| 107 | |
| 108 | In COMP/lmdz.card: |
| 109 | {{{ |
| 110 | LMDZ_Physics=NPv3.1 |
| 111 | }}} |
| 112 | |
| 113 | In PARAM/physiq.def_L39_NPv3.1 (assuming you are using 39 levels, i.e. you compile with gmake LMD????-L39): |
| 114 | {{{ |
| 115 | iflag_thermals=17 |
| 116 | iflag_pbl=11 |
| 117 | }}} |
| 118 | |
| 119 | ''' STOMATE ''' |
| 120 | |
| 121 | In PARAM/orchidee.def_CWRR: |
| 122 | {{{ |
| 123 | STOMATE_OK_STOMATE = y |
| 124 | }}} |
| 125 | |
| 126 | In config.card: |
| 127 | {{{ |
| 128 | SBG= (stomate, ORCHIDEE_1_9_5) |
| 129 | }}} |
| 130 | |
| 131 | In stomate.card (useful mostly for debugging): |
| 132 | {{{ |
| 133 | [OutputText] |
| 134 | List= (out_orchidee, run.def) |
| 135 | }}} |
| 136 | |
| 137 | ''' No STOMATE ''' |
| 138 | |
| 139 | In PARAM/orchidee.def_CWRR: |
| 140 | {{{ |
| 141 | LAI_MAP = y |
| 142 | STOMATE_OK_STOMATE = n |
| 143 | }}} |
| 144 | |
| 145 | In COMP/orchidee.card: |
| 146 | {{{ |
| 147 | ListNonDel= (${R_BC}/SRF/${config_UserChoices_TagName}/lai2D.nc, .) |
| 148 | }}} |
| 149 | |
| 150 | In config.card, remove the following line: |
| 151 | {{{ |
| 152 | SBG= (stomate, ORCHIDEE_1_9_5) |
| 153 | }}} |