Ignore:
Timestamp:
Jan 2, 2018, 3:11:14 PM (7 years ago)
Author:
emillour
Message:

Generic GCM:

  • fix rcm1d.F to cope with modifications introduced in revision 1835-1836
  • also add some missing threadprivate OpenMP directives in phys_state_var_mod and turb_mod

EM

File:
1 edited

Legend:

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

    r1826 r1883  
    3535      use mod_interface_dyn_phys, only: init_interface_dyn_phys
    3636      use inifis_mod, only: inifis
     37      use phys_state_var_mod, only: phys_state_var_init
    3738      use physiq_mod, only: physiq
    3839      implicit none
     
    146147c INITIALISATION
    147148c=======================================================================
    148 ! initialize "serial/parallel" related stuff
    149 !      CALL init_phys_lmdz(iim,jjm+1,llm,1,(/(jjm-1)*iim+2/))
    150 !      CALL init_phys_lmdz(1,1,llm,1,(/1/))
    151 !      call initcomgeomphy
    152 
    153       !! those are defined in surfdat_h.F90
    154       IF (.not. ALLOCATED(albedodat)) ALLOCATE(albedodat(1))
    155       IF (.not. ALLOCATED(phisfi)) ALLOCATE(phisfi(1))
    156       IF (.not. ALLOCATED(zmea)) ALLOCATE(zmea(1))
    157       IF (.not. ALLOCATED(zstd)) ALLOCATE(zstd(1))
    158       IF (.not. ALLOCATED(zsig)) ALLOCATE(zsig(1))
    159       IF (.not. ALLOCATED(zgam)) ALLOCATE(zgam(1))
    160       IF (.not. ALLOCATED(zthe)) ALLOCATE(zthe(1))
    161       IF (.not. ALLOCATED(dryness)) ALLOCATE(dryness(1))
    162       IF (.not. ALLOCATED(watercaptag)) ALLOCATE(watercaptag(1))
    163       !! those are defined in comdiurn_h.F90
    164       IF (.not.ALLOCATED(sinlat)) ALLOCATE(sinlat(1))
    165       IF (.not.ALLOCATED(coslat)) ALLOCATE(coslat(1))
    166       IF (.not.ALLOCATED(sinlon)) ALLOCATE(sinlon(1))
    167       IF (.not.ALLOCATED(coslon)) ALLOCATE(coslon(1))
    168 
     149
     150      ! read nq from traceur.def
     151      open(90,file='traceur.def',status='old',form='formatted',
     152     &       iostat=ierr)
     153      if (ierr.eq.0) then
     154        read(90,*,iostat=ierr) nq
     155      else
     156        nq=0
     157      endif
     158      close(90)
     159     
     160      ! Initialize dimphy module
     161      call init_dimphy(1,llm)
     162      ! now initialize arrays using phys_state_var_init
     163      call phys_state_var_init(nq)
     164     
    169165      saveprofile=.false.
    170166      saveprofile=.true.
     
    512508!      call init_vertical_layers(nlayer,preff,scaleheight,
    513509!     &                      ap,bp,aps,bps,presnivs,pseudoalt)
    514       call init_dimphy(1,nlayer) ! Initialize dimphy module
     510!      call init_dimphy(1,nlayer) ! Initialize dimphy module
    515511      call ini_planete_mod(nlayer,preff,ap,bp)
    516512
Note: See TracChangeset for help on using the changeset viewer.