Changes between Version 1 and Version 2 of Documentation/11layer


Ignore:
Timestamp:
2013-11-29T08:46:03+01:00 (11 years ago)
Author:
mmcgrath
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/11layer

    v1 v2  
    1 You can find instructions on how to install the coupled LMDZOR model here.  This page assumes you already have the model checked out, and simply want to active the 11 hydrology, stomate, and/or the new physics.  This all comes from tests done by Fuxing Wang. 
     1You can find instructions on how to install the coupled LMDZOR model here.  This page assumes you already have the model checked out, and simply want to active the 11 hydrology, stomate, and/or the new physics.  This all comes from tests done by Fuxing Wang without stomate.  If you are not using stomate, you need to use an LAI map. 
    22 
    33Most of the changes are done in the configuration files after the model is compiled, with the exception of the following. 
    44 
     5== Source code changes == 
    56 
    67'''New Physics''' 
     
    3435}}} 
    3536 
     37'''11 layer hydrology (CWRR)''' 
     38 
     39In modeles/LMDZ/libf/phylmd/surf_land_orchidee_mod.F90: 
     40 
     41Original 
     42 
     43{{{ 
     44    zlev(1:knon) = (100.*plev(1:knon))/((ps(1:knon)/RD*temp_air(1:knon))*RG) 
     45}}} 
     46 
     47Modified 
     48{{{ 
     49    zlev(1:knon) = plev(1:knon)*RD*temp_air(1:knon)/((ps(1:knon)*100.0)*RG) 
     50}}} 
     51 
     52In modeles/LMDZ/libf/phylmd/coefcdrag.F90: 
     53 
     54Original 
     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 
     66Modified 
     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 
     79Once you have done this, you can create the makefile and compile as normal (found elsewhere on the Wiki). 
     80 
     81== Configuration Files == 
     82 
     83These 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 
     87Confirm the following lines are present.  If a line exists but with something different after the = sign, then change it. 
     88 
     89In PARAM/orchidee.def_CWRR: 
     90{{{ 
     91   RIVER_ROUTING = n 
     92}}} 
     93 
     94In COMP/orchidee.card: 
     95{{{ 
     96   DefSuffix=CWRR 
     97}}} 
     98 
     99''' New physics''' 
     100 
     101Confirm the following lines are present. 
     102 
     103In PARAM/orchidee.def_CWRR: 
     104{{{ 
     105   evapot_corr=y 
     106}}} 
     107 
     108In COMP/lmdz.card: 
     109{{{ 
     110   LMDZ_Physics=NPv3.1 
     111}}} 
     112 
     113In 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 
     121In PARAM/orchidee.def_CWRR: 
     122{{{ 
     123STOMATE_OK_STOMATE = y 
     124}}} 
     125 
     126In config.card: 
     127{{{ 
     128SBG= (stomate, ORCHIDEE_1_9_5) 
     129}}} 
     130 
     131In stomate.card (useful mostly for debugging): 
     132{{{ 
     133[OutputText] 
     134List=   (out_orchidee, run.def) 
     135}}} 
     136 
     137''' No STOMATE ''' 
     138 
     139In PARAM/orchidee.def_CWRR: 
     140{{{ 
     141LAI_MAP = y 
     142STOMATE_OK_STOMATE = n 
     143}}} 
     144 
     145In COMP/orchidee.card: 
     146{{{ 
     147ListNonDel= (${R_BC}/SRF/${config_UserChoices_TagName}/lai2D.nc, .) 
     148}}} 
     149 
     150In config.card, remove the following line: 
     151{{{ 
     152SBG= (stomate, ORCHIDEE_1_9_5) 
     153}}}