Ignore:
Timestamp:
Oct 2, 2023, 2:30:47 PM (15 months ago)
Author:
jbclement
Message:

PEM:
Initialization of the PEM in 1D through the subroutine "init_testphys1d_mod.F90" + Some adaptations of the Mars PCM in 1D + Update of "launch_pem.sh" in deftank.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90

    r3060 r3065  
    11PROGRAM testphys1d
    22
    3 use ioipsl_getincom,         only: getin ! To use 'getin'
    43use comsoil_h,               only: inertiedat, inertiesoil, nsoilmx
    54use surfdat_h,               only: albedodat, perenial_co2ice, watercap
     
    10099character(len = 44)     :: txt
    101100
    102 ! RV & JBC: Use of "start1D.txt" and "startfi.nc" files
     101! RV & JBC: Use of starting files for 1D
    103102logical :: startfiles_1D, therestart1D, therestartfi
    104103
     
    121120!call initcomgeomphy
    122121
    123 !------------------------------------------------------
    124 ! Loading run parameters from "run.def" file
    125 !------------------------------------------------------
    126 ! check if 'run.def' file is around. Otherwise reading parameters
    127 ! from callphys.def via getin() routine won't work.
    128 inquire(file = 'run.def',exist = there)
    129 if (.not. there) then
    130     write(*,*) 'Cannot find required file "run.def"'
    131     write(*,*) '  (which should contain some input parameters along with the following line: INCLUDEDEF=callphys.def)'
    132     write(*,*) ' ... might as well stop here ...'
    133     stop
    134 endif
    135 
    136 write(*,*)'Do you want to use "start1D.txt" and "startfi.nc" files?'
    137 startfiles_1D = .false.
    138 therestart1D = .false.
    139 therestartfi = .false.
    140 call getin("startfiles_1D",startfiles_1D)
    141 write(*,*) " startfiles_1D = ", startfiles_1D
    142 
    143 if (startfiles_1D) then
    144     inquire(file = 'start1D.txt',exist = therestart1D)
    145     if (.not. therestart1D) then
    146         write(*,*) 'There is no "start1D.txt" file!'
    147         write(*,*) 'Initialization is done with default values.'
    148     endif
    149     inquire(file = 'startfi.nc',exist = therestartfi)
    150     if (.not. therestartfi) then
    151         write(*,*) 'There is no "startfi.nc" file!'
    152         write(*,*) 'Initialization is done with default values.'
    153     endif
    154 endif
    155 
    156 call init_testphys1d(startfiles_1D,therestart1D,therestartfi,ngrid,nlayer,odpref,nq,ndt,ptif,pks,dttestphys, &
    157                      q,zqsat,qsurf,dq,dqdyn,day0,day,time,psurf,tsurf,gru,grv,u,v,w,q2,play,plev,tsoil,temp, &
     122call init_testphys1d(.false.,ngrid,nlayer,odpref,nq,q,time,psurf,u,v,temp,startfiles_1D,therestart1D,therestartfi, &
     123                     ndt,ptif,pks,dttestphys,zqsat,qsurf,dq,dqdyn,day0,day,tsurf,gru,grv,w,q2,play,plev,tsoil,     &
    158124                     albedo,emis,latitude,longitude,cell_area,atm_wat_profile,atm_wat_tau)
    159125
     
    265231
    266232! Writing the "restart1D.txt" file for the next run
    267 if (startfiles_1D) call writerestart1D(psurf,tsurf,nlayer,temp,u,v,nq,noms,qsurf,q)
     233if (startfiles_1D) call writerestart1D('restart1D.txt',psurf,tsurf,nlayer,temp,u,v,nq,noms,qsurf,q)
    268234
    269235write(*,*) "testphys1d: everything is cool."
Note: See TracChangeset for help on using the changeset viewer.