Ignore:
Timestamp:
Oct 26, 2023, 8:48:49 AM (13 months ago)
Author:
emillour
Message:

Generic PCM:
Some corrections on the 1D models to keep up with recent code changes:

  • rcm1d: "noceanmx" no longer exists; slab size is always 2
  • kcm1d: naerkind is now a variable, so aerosol(:,:) needs be allocated.

EM

Location:
trunk/LMDZ.GENERIC/libf/phystd/dyn1d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/kcm1d.F90

    r2898 r3105  
    8080
    8181  real dTstrat
    82   real aerosol(llm,naerkind) ! aerosol tau (kg/kg)
     82  real,allocatable :: aerosol(:,:) ! aerosol tau (kg/kg)
    8383  real OLR_nu(1,L_NSPECTI)
    8484  real OSR_nu(1,L_NSPECTV)
     
    326326  !write(*,*) 1,llm,nq,0,86400.0,1,1.0,latitude,longitude,cell_area,rad,g,r,cpp
    327327
     328  ! initialise naerkind (from callphys.def) and allocate aerosol(:,:)
     329  naerkind=0 !default
     330  call getin("naerkind",naerkind)
     331  allocate(aerosol(llm,naerkind))
     332  aerosol(:,:)=0
     333
    328334  do iq=1,nq
    329335     do ilay=1,nlayer
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r2972 r3105  
    1515      use phyredem, only: physdem0,physdem1
    1616      use geometry_mod, only: init_geometry
    17       use slab_ice_h, only: noceanmx
    1817      use planete_mod, only: apoastr,periastr,year_day,peri_day,
    1918     &         obliquit,nres,z0,lmixmin,emin_turb,coefvis,coefir,
     
    136135!     added by BC for ocean
    137136      real rnat(1)
    138       REAL tslab(1,noceanmx),tsea_ice(1),sea_ice(1)
     137      REAL tslab(1,2),tsea_ice(1),sea_ice(1)
    139138      real pctsrf_sic(1)
    140139
Note: See TracChangeset for help on using the changeset viewer.