- Timestamp:
- Oct 3, 2023, 3:54:57 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90
r3067 r3069 78 78 ! Local variables 79 79 !======================================================================= 80 integer :: ierr, iq, ilayer, isoil, nlevel, nsoil, flagthermo, flagh2o80 integer :: ierr, iq, j, ilayer, isoil, nlevel, nsoil, flagthermo, flagh2o 81 81 integer :: dayn ! Final date 82 82 real, dimension(nlayer) :: zlay ! altitude estimee dans les couches (km) … … 131 131 write(*,*) ' (which should contain some input parameters along with the following line: INCLUDEDEF=callphys.def)' 132 132 write(*,*) ' ... might as well stop here ...' 133 stop133 error stop 134 134 endif 135 135 … … 151 151 write(*,*) 'Initialization is done with default values.' 152 152 else 153 write(*,*) 'Initialization cannot be done for the 1D PEM.' 154 stop 153 error stop 'Initialization cannot be done for the 1D PEM.' 155 154 endif 156 155 endif … … 161 160 write(*,*) 'Initialization is done with default values.' 162 161 else 163 write(*,*) 'Initialization cannot be done for the 1D PEM.' 164 stop 162 error stop 'Initialization cannot be done for the 1D PEM.' 165 163 endif 166 164 endif … … 218 216 write(*,*) ' If you want to run with tracers, I need it' 219 217 write(*,*) ' ... might as well stop here ...' 220 stop218 error stop 221 219 else 222 220 write(*,*) "init_testphys1d: Reading file traceur.def" … … 227 225 write(*,*) "init_testphys1d: error reading number of tracers" 228 226 write(*,*) " (first line of traceur.def) " 229 stop227 error stop 230 228 endif 231 229 if (nq < 1) then 232 230 write(*,*) "init_testphys1d: error number of tracers" 233 231 write(*,*) "is nq=",nq," but must be >=1!" 234 stop232 error stop 235 233 endif 236 234 endif … … 244 242 read(90,'(80a)',iostat = ierr) line ! store the line from traceur.def 245 243 if (ierr /= 0) then 246 write(*,*) 'init_testphys1d: error reading tracer names...' 247 stop 244 error stop 'init_testphys1d: error reading tracer names...' 248 245 endif 249 246 ! if format is tnom_0, tnom_transp (isotopes) … … 353 350 call getin("psurf",psurf) 354 351 else 352 open(3,file = start1Dname,status = "old",action = "read") 355 353 read(3,*) header, psurf 356 354 endif … … 452 450 else 453 451 do iq = 1,nq 454 open(3,file = start1Dname,status = "old",action = "read") 455 read(3,*) header, qsurf(1,iq,1),(q(1,ilayer,iq), ilayer = 1,nlayer) 456 if (trim(tname(iq)) /= trim(header)) then 457 write(*,*) 'Tracer names not compatible for initialization with "'//trim(start1Dname)//'"!' 458 stop 459 endif 452 read(3,*) header, (qsurf(1,iq,j), j = 1,size(qsurf,3)), (q(1,ilayer,iq), ilayer = 1,nlayer) 453 if (trim(tname(iq)) /= trim(header)) error stop 'Tracer names not compatible for initialization with "'//trim(start1Dname)//'"!' 460 454 enddo 461 455 endif 462 463 464 456 465 457 ! Initialize albedo / soil thermal inertia … … 562 554 if (trim(tname(iq)) == "co2") igcm_co2 = iq 563 555 enddo 564 if (igcm_co2 == 0) then 565 write(*,*) "init_testphys1d error, missing co2 tracer!" 566 stop 567 endif 556 if (igcm_co2 == 0) error stop "init_testphys1d error, missing co2 tracer!" 568 557 569 558 if (.not. startfiles_1D) then … … 615 604 temp(:) = tmp2(1:) 616 605 else 617 read(3,*) header, tsurf, (temp(ilayer), ilayer = 1,nlayer)606 read(3,*) header, (tsurf(1,:), j = 1,size(tsurf,2)), (temp(ilayer), ilayer = 1,nlayer) 618 607 close(3) 619 608 endif … … 719 708 write(*,*) 'Unless it reaches saturation (maximal value)' 720 709 else 721 write(*,*) 'Water vapor profile value not correct!' 722 stop 710 error stop 'Water vapor profile value not correct!' 723 711 endif 724 712 endif … … 740 728 else 741 729 write(*,*) 'Reference atmospheric water vapor profile not known!' 742 write(*,*) 'Please, specify atm_wat_profile' 743 stop 730 error stop 'Please, specify atm_wat_profile' 744 731 endif 745 732 endif
Note: See TracChangeset
for help on using the changeset viewer.