Ignore:
Timestamp:
Nov 30, 2022, 11:29:29 AM (2 years ago)
Author:
romain.vande
Message:

Mars PEM:
Introduction of the possibility to follow an orbital forcing.
Introduction of new control parameters.
Cleaning of the PEM (removing unused files, add comments and new files)

A file named run_PEM.def can be added to the run.def. It contains the following variables:

_ evol_orbit_pem: Boolean. Do you want to follow an orbital forcing predefined (read in ob_ex_lsp.asc for example)? (default=false)
_ year_bp_ini: Integer. Number of year before present to start the pem run if evol_orbit_pem=.true. , default=0
_ Max_iter_pem: Integer. Maximal number of iteration if none of the stopping criterion is reached and if evol_orbit_pem=.false., default=99999999
_ dt_pem: Integer. Time step of the PEM in year, default=1
_ alpha_criterion: Real. Acceptance rate of sublimating ice surface change, default=0.2
_ soil_pem: Boolean. Do you want to run with subsurface physical processes in the PEM? default=.true.

RV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/update_soil.F90

    r2794 r2835  
    1    SUBROUTINE update_soil(ngrid,nslope,nsoil_PEM,tend_h2oglaciers,tend_co2glaciers,co2ice,waterice,ps_new,&
    2                           cellarea,ice_depth,TI_PEM)
    3 
     1   SUBROUTINE update_soil(ngrid,nslope,nsoil_PEM,tend_h2oglaciers,tend_co2glaciers,co2ice,waterice,p_avg_new,&
     2                          ice_depth,TI_PEM)
    43
    54 USE comsoil_h, only:  inertiedat, volcapa
     
    109 INTEGER,INTENT(IN) ::  ngrid, nslope, nsoil_PEM
    1110 REAL,INTENT(IN) :: tend_h2oglaciers(ngrid,nslope),tend_co2glaciers(ngrid,nslope)
    12  REAL,INTENT(IN) :: ps_new(ngrid)
    13  REAL,INTENT(IN) :: cellarea(ngrid)
     11 REAL,INTENT(IN) :: p_avg_new
    1412 REAL,INTENT(IN) :: co2ice(ngrid,nslope)
    1513 REAL,INTENT(IN) :: waterice(ngrid,nslope)
    1614 REAL,INTENT(in) :: ice_depth(ngrid,nslope)
    17  
    1815
    1916! Outputs:
     
    4441 REAL :: regolith_inertia(ngrid,nslope) ! TI of the regolith
    4542 REAL :: d(ngrid,nsoil_PEM,nslope)
    46  REAL :: p_avg_new
    4743 REAL :: Total_surface
    4844 INTEGER :: ispermanent_co2glaciers(ngrid,nslope)
    4945 INTEGER :: ispermanent_h2oglaciers(ngrid,nslope)
    5046
    51 
    5247! 0. Initialisation
    53 
    54 
    55 
    56 
    57   Total_surface = sum(cellarea)
    58   p_avg_new = 0.
    59   do ig = 1,ngrid
    60     p_avg_new = p_avg_new + ps_new(ig)*cellarea(ig)/Total_surface
    61   enddo
    62 
    63 
    6448
    6549  do ig = 1,ngrid
     
    8064  enddo
    8165
    82 
    8366 ispermanent_co2glaciers(:,:) = 0
    8467 ispermanent_h2oglaciers(:,:) = 0
    8568
    86 
    8769!  1.Ice TI feedback
    8870
    89 !  do ig=1,ngrid
    90 !    do islope=1,nslope
    91 !      if ((ispermanent_co2glaciers(ig,islope).eq.1).or.(ispermanent_h2oglaciers(ig,islope).eq.1)) then
    92 !       do iloop = 1,n_1km
    93 !         TI_PEM(ig,iloop,islope) = surfaceice_inertia
    94 !       enddo
    95 !      endif
    96 !    enddo
    97 !   enddo
    9871    do islope = 1,nslope
    9972     call soil_TIfeedback_PEM(ngrid,nsoil_PEM,waterice(:,islope),   TI_PEM(:,:,islope))
     
    10174
    10275! 2. Modification of the regolith thermal inertia.
    103 
    104 
    10576
    10677  do ig=1,ngrid
     
    11586   enddo
    11687enddo
    117 
    118 
    119 
    120 
    121 
    12288
    12389!  3. Build new TI for the PEM
     
    142108         exit
    143109        endif
    144        
    145110      enddo
    146 
    147 
    148111
    149112      ! 4.2 Build the new ti
     
    173136    enddo !ig
    174137
    175 
    176 
    177 
    178 
    179 
    180 
    181138!=======================================================================
    182139      RETURN
Note: See TracChangeset for help on using the changeset viewer.