Ignore:
Timestamp:
Mar 8, 2021, 1:43:22 PM (4 years ago)
Author:
yjaziri
Message:

Generic GCM:
global1d and szangle for 1D simulation moved from callcorrk to callkeys
to defined a consistent 1D sza in physiq_mod used also in chemistry
+ typo
YJ

File:
1 edited

Legend:

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

    r2436 r2470  
    88  use comsaison_h, only: mu0, fract, dist_star
    99  use planete_mod
    10   use callkeys_mod, only: check_cpp_match, pceil, tstrat, tracer
     10  use callkeys_mod, only: check_cpp_match, pceil, tstrat, tracer, global1d
    1111  use inifis_mod, only: inifis
    1212  use comcstfi_mod
     
    8484
    8585  integer ierr
    86   logical firstcall,lastcall,global1d
     86  logical firstcall,lastcall
    8787
    8888  character*20,allocatable :: nametrac(:)   ! name of the tracer (no need for adv trac common)
     
    217217
    218218
    219   global1d = .false. ! default value
    220   call getin("global1d",global1d)
    221   write(*,*) " global1d = ",global1d
    222   if(.not.global1d)then
    223      print*,'Error, kcm1d must have global1d=.true. in kcm1d.def!'
    224      stop
    225   end if
    226219
    227220  psurf_n=100000. ! default value for psurf
     
    328321  cpp=1.d-7 !JL because we divide by cpp in inifis, there may be a more elegant solution
    329322  CALL inifis(1,llm,nq,0,86400.0,1,1.0,latitude,longitude,cell_area,rad,g,r,cpp)
     323
     324  if(.not.global1d)then
     325     print*,'Error, kcm1d must have global1d=.true. in kcm1d.def!'
     326     stop
     327  end if
    330328
    331329  !write(*,*) 'BASE 1'
Note: See TracChangeset for help on using the changeset viewer.