Ignore:
Timestamp:
Apr 12, 2016, 4:12:59 PM (9 years ago)
Author:
mturbet
Message:

minor bugs in rcm1D related to nsoilmx declaration order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r1536 r1539  
    7171c
    7272      INTEGER day0          ! date initial (sol ; =0 a Ls=0)
    73       REAL day           ! date durant le run
     73      REAL day              ! date durant le run
    7474      REAL time             ! time (0<time<1 ; time=0.5 a midi)
    75       REAL play(llm)   ! Pressure at the middle of the layers (Pa)
    76       REAL plev(llm+1) ! intermediate pressure levels (pa)
     75      REAL play(llm)        ! Pressure at the middle of the layers (Pa)
     76      REAL plev(llm+1)      ! intermediate pressure levels (pa)
    7777      REAL psurf,tsurf(1)     
    78       REAL u(llm),v(llm)  ! zonal, meridional wind
    79       REAL gru,grv   ! prescribed "geostrophic" background wind
    80       REAL temp(llm)   ! temperature at the middle of the layers
    81       REAL,ALLOCATABLE :: q(:,:) ! tracer mixing ratio (e.g. kg/kg)
    82       REAL,ALLOCATABLE :: qsurf(:)      ! tracer surface budget (e.g. kg.m-2)
    83       REAL tsoil(nsoilmx)   ! subsurface soik temperature (K)
    84 !      REAL co2ice           ! co2ice layer (kg.m-2) !not used anymore
    85       integer :: i_co2_ice=0  ! tracer index of co2 ice
    86       integer :: i_h2o_ice=0  ! tracer index of h2o ice
    87       integer :: i_h2o_vap=0  ! tracer index of h2o vapor
    88       REAL emis(1)             ! surface layer
    89       REAL q2(llm+1)   ! Turbulent Kinetic Energy
    90       REAL zlay(llm)   ! altitude estimee dans les couches (km)
     78      REAL u(llm),v(llm)    ! zonal, meridional wind
     79      REAL gru,grv          ! prescribed "geostrophic" background wind
     80      REAL temp(llm)        ! temperature at the middle of the layers
     81      REAL,ALLOCATABLE :: q(:,:)      ! tracer mixing ratio (e.g. kg/kg)
     82      REAL,ALLOCATABLE :: qsurf(:)    ! tracer surface budget (e.g. kg.m-2)
     83      REAL,ALLOCATABLE :: tsoil(:)    ! subsurface soil temperature (K)
     84!      REAL co2ice               ! co2ice layer (kg.m-2) !not used anymore
     85      integer :: i_co2_ice=0     ! tracer index of co2 ice
     86      integer :: i_h2o_ice=0     ! tracer index of h2o ice
     87      integer :: i_h2o_vap=0     ! tracer index of h2o vapor
     88      REAL emis(1)               ! surface layer
     89      REAL q2(llm+1)             ! Turbulent Kinetic Energy
     90      REAL zlay(llm)             ! altitude estimee dans les couches (km)
    9191
    9292c    Physical and dynamical tandencies (e.g.  m.s-2, K/s, Pa/s)
     
    159159      IF (.not.ALLOCATED(sinlon)) ALLOCATE(sinlon(1))
    160160      IF (.not.ALLOCATED(coslon)) ALLOCATE(coslon(1))
    161       !! those are defined in comsoil_h.F90
    162       IF (.not.ALLOCATED(layer)) ALLOCATE(layer(nsoilmx))
    163       IF (.not.ALLOCATED(mlayer)) ALLOCATE(mlayer(0:nsoilmx-1))
    164       IF (.not.ALLOCATED(inertiedat)) ALLOCATE(inertiedat(1,nsoilmx))
    165161      !! those are defined in comgeomfi_h
    166162      IF (.not. ALLOCATED(lati)) ALLOCATE(lati(1))
     
    474470      nlayer=llm
    475471      nlevel=nlayer+1
    476       nsoil=nsoilmx
    477472
    478473      day_step=48 ! default value for day_step
     
    517512      CALL inifis(1,llm,nq,day0,daysec,nday,dtphys,
    518513     .            latitude,longitude,area,rad,g,r,cpp)
     514
     515      nsoil=nsoilmx
     516      allocate(tsoil(nsoilmx))
     517      !! those are defined in comsoil_h.F90
     518      IF (.not.ALLOCATED(layer)) ALLOCATE(layer(nsoilmx))
     519      IF (.not.ALLOCATED(mlayer)) ALLOCATE(mlayer(0:nsoilmx-1))
     520      IF (.not.ALLOCATED(inertiedat)) ALLOCATE(inertiedat(1,nsoilmx))
    519521
    520522! At this point, both getin() and getin_p() functions have been used,
Note: See TracChangeset for help on using the changeset viewer.