Changeset 3002 for trunk


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

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
3 edited

Legend:

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

    r2995 r3002  
    9090
    9191  fluxgeo = 0.
    92   CALL getin('Fluxgeo_PEM',fluxgeo)
     92  CALL getin('fluxgeo',fluxgeo)
    9393  print*,'Flux Geothermal is set to',fluxgeo
    9494   
     
    108108   CALL getin('icetable_dynamic',icetable_dynamic)
    109109   print*, 'Do we compute the ice table with the dynamic method?', icetable_dynamic
    110 
    111110  if ((.not.soil_pem).and.((icetable_equilibrium).or.(icetable_dynamic))) then
    112111       print*,'Ice table  must be used when soil_pem = T'
  • 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
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r2998 r3002  
    839839     enddo
    840840     print *, 'Global average pressure old time step',global_ave_press_old
    841 
    842841     call WRITEDIAGFI(ngrid,'ps_ave','Global average pressure','Pa',0,global_ave_press_new)
    843842     
     
    949948        call h2oglaciers_evol(timelen,ngrid,nslope,iflat,subslope_dist,def_slope_mean,tsurf_ave,qsurf(:,igcm_h2o_ice,:),flag_h2oflow,flag_h2oflow_mesh)
    950949      endif
    951 
    952950     DO islope=1, nslope
    953951       write(str2(1:2),'(i2.2)') islope
     
    12331231   if(soil_pem) then
    12341232     call interpolate_TIPEM_TIGCM(ngrid,nslope,nsoilmx_PEM,nsoilmx,TI_PEM,inertiesoil)
    1235      tsoil(:,:,:) = tsoil_phys_PEM_timeseries(:,:,:,timelen)     
     1233     tsoil(:,:,:) = tsoil_phys_PEM_timeseries(:,1:nsoilmx,:,timelen)     
    12361234   endif !soil_pem
    12371235
Note: See TracChangeset for help on using the changeset viewer.