Changeset 3129 for trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90
- Timestamp:
- Nov 17, 2023, 2:38:58 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90
r3117 r3129 15 15 use turb_mod, only: q2 16 16 use write_output_mod, only: write_output 17 use ioipsl_getincom, only: getin ! To use 'getin' 17 18 use init_testphys1d_mod, only: init_testphys1d 18 19 use writerestart1D_mod, only: writerestart1D … … 89 90 integer :: nq = 1 ! number of tracers 90 91 real, dimension(1) :: latitude, longitude, cell_area 91 logical :: there92 92 character(2) :: str2 93 93 character(7) :: str7 … … 95 95 96 96 ! RV & JBC: Use of starting files for 1D 97 logical :: startfiles_1D, therestart1D, therestartfi 97 logical :: startfiles_1D, therestart1D, therestartfi, there 98 98 99 99 ! JN & JBC: Force atmospheric water profiles … … 115 115 !call initcomgeomphy 116 116 117 call init_testphys1d(.false.,ngrid,nlayer,odpref,nq,q,time,psurf,u,v,temp,startfiles_1D,therestart1D, & 118 therestartfi,ndt,ptif,pks,dttestphys,zqsat,dq,dqdyn,day0,day,gru,grv,w, & 117 startfiles_1D = .false. 118 !------------------------------------------------------ 119 ! Loading run parameters from "run.def" file 120 !------------------------------------------------------ 121 ! check if 'run.def' file is around. Otherwise reading parameters 122 ! from callphys.def via getin() routine won't work. 123 inquire(file = 'run.def',exist = there) 124 if (.not. there) then 125 write(*,*) 'Cannot find required file "run.def"' 126 write(*,*) ' (which should contain some input parameters along with the following line: INCLUDEDEF=callphys.def)' 127 write(*,*) ' ... might as well stop here ...' 128 error stop 129 endif 130 131 startfiles_1D = .false. ! Default value 132 write(*,*) 'Do you want to use starting files and/or to write restarting files?' 133 call getin('startfiles_1D',startfiles_1D) 134 write(*,*) 'startfiles_1D =', startfiles_1D 135 136 therestart1D = .false. ! Default value 137 inquire(file = 'start1D.txt',exist = therestart1D) 138 if (startfiles_1D .and. .not. therestart1D) then 139 write(*,*) 'There is no "start1D.txt" file!' 140 write(*,*) 'Initialization is done with default values.' 141 endif 142 therestartfi = .false. ! Default value 143 inquire(file = 'startfi.nc',exist = therestartfi) 144 if (.not. therestartfi) then 145 write(*,*) 'There is no "startfi.nc" file!' 146 write(*,*) 'Initialization is done with default values.' 147 endif 148 149 call init_testphys1d('start1D.txt','startfi.nc',startfiles_1D,therestart1D,therestartfi,ngrid,nlayer,odpref, & 150 nq,q,time,psurf,u,v,temp,ndt,ptif,pks,dttestphys,zqsat,dq,dqdyn,day0,day,gru,grv,w, & 119 151 play,plev,latitude,longitude,cell_area,atm_wat_profile,atm_wat_tau) 120 152
Note: See TracChangeset
for help on using the changeset viewer.