Ignore:
Timestamp:
Nov 17, 2023, 2:38:58 PM (13 months ago)
Author:
jbclement
Message:

Mars PCM/PEM:
Cleaning of the 1D initialization: any reference of the PEM has been removed from "init_testphys1D_mod.F90". This way is much cleaner even though it needs more code.
JBC

File:
1 edited

Legend:

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

    r3123 r3129  
    258258
    259259    ! Dummy variables to use the subroutine 'init_testphys1d'
    260     logical                             :: startfiles_1D, therestart1D, therestartfi
     260    logical                             :: therestart1D, therestartfi
    261261    integer                             :: ndt, day0
    262262    real                                :: ptif, pks, day, gru, grv, atm_wat_profile, atm_wat_tau
     
    308308    allocate(q(1,llm,nqtot))
    309309    allocate(longitude(1),latitude(1),cell_area(1))
    310     call init_testphys1d(.true.,ngrid,nlayer,610.,nq,q,time_0,ps(1),ucov,vcov,teta,startfiles_1D,therestart1D, &
    311                          therestartfi,ndt,ptif,pks,dtphys,zqsat,dq,dqdyn,day0,day,gru,grv,w,                   &
     310
     311    therestart1D = .false.
     312    inquire(file = 'start1D_evol.txt',exist = therestart1D)
     313    if (.not. therestart1D) then
     314        write(*,*) 'There is no "start1D_evol.txt" file!'
     315        error stop 'Initialization cannot be done for the 1D PEM.'
     316    endif
     317    therestartfi = .false.
     318    inquire(file = 'startfi_evol.nc',exist = therestartfi)
     319    if (.not. therestartfi) then
     320        write(*,*) 'There is no "startfi_evol.nc" file!'
     321        error stop 'Initialization cannot be done for the 1D PEM.'
     322    endif
     323
     324    call init_testphys1d('start1D_evol.txt','startfi_evol.nc',.true.,therestart1D,therestartfi,ngrid,nlayer,610., &
     325                         nq,q,time_0,ps(1),ucov,vcov,teta,ndt,ptif,pks,dtphys,zqsat,dq,dqdyn,day0,day,gru,grv,w,  &
    312326                         play,plev,latitude,longitude,cell_area,atm_wat_profile,atm_wat_tau)
    313327    ps(2) = ps(1)
Note: See TracChangeset for help on using the changeset viewer.