Ignore:
Timestamp:
Jul 20, 2023, 11:01:17 AM (16 months ago)
Author:
llange
Message:

MARS PEM

  • Fix a bug in conf_pem ("Flux_geo" was expected in the .def while it should be 'fluxgeo', corrected)
  • Fix a bug in glaciers modules (the length for 'name_ice' was too large)
  • Fix a bug when writing tsoil in the PEM (ngrid x nsoil_PEM x nslope was given, while it was expecting a ngrid x nsoil_GCM x nslope)

PEM runs correctly now
LL

File:
1 edited

Legend:

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

    r2995 r3002  
    5757
    5858      call transfer_ice_duringflow(ngrid,nslope,iflat, subslope_dist,def_slope_mean,hmax,Tcond,"co2",co2ice,flag_co2flow,flag_co2flow_mesh)
    59    RETURN
     59   RETURN   
    6060end subroutine
    6161
     
    9696
    9797      call compute_hmaxglaciers(ngrid,nslope,iflat,def_slope_mean,Tice,"h2o",hmax)
    98 
    9998      call transfer_ice_duringflow(ngrid,nslope,iflat, subslope_dist,def_slope_mean,hmax,Tice,"h2o",h2oice,flag_h2oflow,flag_h2oflow_mesh)
    10099
     
    127126      REAL,INTENT(IN) :: def_slope_mean(nslope) ! Slope field: Values of the subgrid slope angles [deg]
    128127      REAL,INTENT(IN) :: Tice(ngrid,nslope)     ! Physical field:  ice temperature [K]
    129       character(len=30), INTENT(IN) :: name_ice ! Nature of the ice
     128      character(len=3), INTENT(IN) :: name_ice ! Nature of the ice
    130129! Outputs
    131130      REAL,INTENT(OUT) :: hmax(ngrid,nslope) ! Physical grid x Slope field: maximum  thickness before flaw [m]
     
    135134      INTEGER :: ig,islope ! loop variables
    136135      REAL :: slo_angle
    137 
    138136
    139137! 1. Compute rho
     
    198196      REAL, INTENT(IN) :: hmax(ngrid,nslope)            ! maximum height of the  glaciers before initiating flow [m]
    199197      REAL, INTENT(IN) :: Tice(ngrid,nslope)            ! Ice temperature[K]
    200       character(len=30), INTENT(IN) :: name_ice              ! Nature of the ice
     198      character(len=3), INTENT(IN) :: name_ice              ! Nature of the ice
    201199
    202200! Outputs
     
    208206      REAL rho(ngrid,nslope) ! density of ice, temperature dependant [kg/m^3]
    209207      INTEGER iaval ! ice will be transfered here
    210 
    211 
    212208
    213209! 0. Compute rho
Note: See TracChangeset for help on using the changeset viewer.