Changeset 3208 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Feb 8, 2024, 4:32:31 PM (10 months ago)
Author:
jbclement
Message:

Mars PCM:
Following r3203, initialization cases for subslopes parametrization in 1D have been settled: it can be done with 'nslope' in "run.def" or by using an appropriate "startfi.nc". Addition of error/warning messages for the different situations to be user-friendly.
JBC

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3207 r3208  
    44684468
    44694469== 07/02/2024 == JBC
    4470 - Addition of the possibility to use subslopes parametization in 1D. To do so, put 'nslope=x' in "run.def" where x (1, 3, 5 or 7) is the number of slopes you want to, or modify it in an appropriate "startfi.nc". Then, default subslopes definition and distribution are used by the model. The already existing case of using one slope whose inclination and orientation are defined in "run.def" is still possible.
     4470- Addition of the possibility to use subslopes parametrization in 1D. To do so, put 'nslope=x' in "run.def" where x (1, 3, 5 or 7) is the number of slopes you want to, or modify it in an appropriate "startfi.nc". Then, default subslopes definition and distribution are used by the model. The already existing case of using one slope whose inclination and orientation are defined in "run.def" is still possible.
    44714471- Some cleanings throughout the code, in particular related to unused variables.
    44724472
     
    44764476== 08/02/2024 == JBC
    44774477Modification of r3200 for the 1D model: the 'CO2cond_ps' coefficient (now defined in "co2condens_mod.F") is applied not only to update the surface pressure but also all the tracers and the winds from now on. It is done in "physiq_mod.F" just after the call to 'co2condens'.
     4478
     4479== 08/02/2024 == JBC
     4480Following r3203, initialization cases for subslopes parametrization in 1D have been settled: it can be done with 'nslope' in "run.def" or by using an appropriate "startfi.nc". Addition of error/warning messages for the different situations to be user-friendly.
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90

    r3207 r3208  
    8484! Local variables
    8585!=======================================================================
    86 integer                   :: ierr, iq, j, ilayer, isoil, nlevel, nsoil, flagthermo, flagh2o
     86integer                   :: ierr, iq, j, ilayer, isoil, nlevel, nsoil, flagthermo, flagh2o, nslope_tmp
    8787integer                   :: dayn ! Final date
    8888real, dimension(nlayer)   :: zlay ! altitude estimee dans les couches (km)
     
    410410! Initialize local slope parameters
    411411! ---------------------------------
    412 nslope = 1 ! default: one slope
     412nslope_tmp = nslope
     413write(*,*)'Number of slopes?' ! Number of subgrid scale slopes
     414call getin("nslope",nslope_tmp)
     415write(*,*) " nslope = ", nslope_tmp
    413416if (.not. therestartfi) then
    414     ! Number of subgrid scale slopes
    415     write(*,*)'Number of slopes?'
    416     call getin("nslope",nslope)
    417     write(*,*) " nslope = ", nslope
     417    nslope = nslope_tmp
    418418    call end_comslope_h
    419419    call ini_comslope_h(1,nslope)
     
    479479    call end_paleoclimate_h
    480480    call ini_paleoclimate_h(1,nslope)
    481 
    482     ! Fraction of subslopes in mesh
    483     !write(*,*)'What subslope distribution do you want to use?'
    484     !call getin("slope_distribution",subslope_dist)
    485     !write(*,*) " subslope_dist = ", subslope_dist(1,:)
     481else
     482    if (nslope /= nslope_tmp) then
     483        error stop 'Number of slopes not compatible between "startfi.nc" and "run.def".'
     484    else
     485        write(*,*) 'Be careful: subslopes distribution and definition are taken from "startfi.nc" and not initialized by default!'
     486    endif
    486487endif
    487488
Note: See TracChangeset for help on using the changeset viewer.