Changeset 3208 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Feb 8, 2024, 4:32:31 PM (11 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.