- Timestamp:
- Jul 6, 2020, 2:57:50 PM (4 years ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/co2condens_mod.F
r2332 r2399 448 448 PRINT*,'Ps = ',pplev(ig,1) 449 449 PRINT*,'d Ps = ',pdpsrf(ig) 450 STOP 450 CALL abort_physic('co2condens', 451 & 'condensing more than total mass', 1) 451 452 ENDIF 452 453 END IF ! if there is condensation/sublimation … … 806 807 w(l+1) = Mtot 807 808 qm(l+1) = Mqtot / Mtot 808 write(*,*) 'top layer is disapearing !'809 stop809 CALL abort_physic('co2condens', 810 & 'top layer is disapearing !', 1) 810 811 end if 811 812 else ! if(w(l+1).lt.0) -
trunk/LMDZ.MARS/libf/phymars/def_var.F90
r38 r2399 13 13 implicit none 14 14 15 #include "netcdf.inc"15 include "netcdf.inc" 16 16 17 17 integer,intent(in) :: nid ! NetCDF file ID … … 37 37 write(*,*) "def_var: Failed defining variable "//trim(name) 38 38 write(*,*) NF_STRERROR(ierr) 39 stop ""39 call abort_physic("def_var",'netcdf definition problem',1) 40 40 endif 41 41 … … 46 46 write(*,*) "def_var: Failed writing title attribute for "//trim(name) 47 47 write(*,*) NF_STRERROR(ierr) 48 stop ""48 call abort_physic("def_var",'netcdf title attribute problem',1) 49 49 endif 50 50 … … 54 54 write(*,*) "def_var: Failed writing units attribute for "//trim(name) 55 55 write(*,*) NF_STRERROR(ierr) 56 stop ""56 call abort_physic("def_var",'netcdf units attribute problem',1) 57 57 endif 58 58 -
trunk/LMDZ.MARS/libf/phymars/getslopes.F90
r1543 r2399 29 29 ! This routine only works in serial mode so stop now. 30 30 write(*,*) "getslopes Error: this routine is not designed to run in parallel" 31 stop31 call abort_physic("getslopes",'cannot be run in parallel',1) 32 32 endif 33 33 -
trunk/LMDZ.MARS/libf/phymars/inistats.F
r1621 r2399 38 38 nsteppd=nint(daysec/dtphys) 39 39 write (*,*) 'nsteppd=',nsteppd 40 if (abs(float(nsteppd)-daysec/dtphys).gt.1.e-8*daysec) 41 & stop'Dans Instat: 1jour .ne. n pas physiques' 40 if (abs(float(nsteppd)-daysec/dtphys).gt.1.e-8*daysec) then 41 call abort_physic("inistats", 42 & '1 sol .ne. n physics steps',1) 43 endif 42 44 43 if(mod(nsteppd,istime).ne.0) 44 & stop'Dans Instat: 1jour .ne. n*istime pas physiques' 45 if(mod(nsteppd,istime).ne.0) then 46 call abort_physic("inistats", 47 & '1 sol .ne. n*istime physics steps',1) 48 endif 45 49 46 50 istats=nsteppd/istime … … 68 72 if (ierr.ne.NF_NOERR) then 69 73 write (*,*) NF_STRERROR(ierr) 70 stop "" 74 call abort_physic("inistats", 75 & 'failed creating stats.nc',1) 71 76 endif 72 77 -
trunk/LMDZ.MARS/libf/phymars/iostart.F90
r1621 r2399 53 53 write(*,*)'open_startphy: problem opening file '//trim(filename) 54 54 write(*,*)trim(nf90_strerror(ierr)) 55 CALL ABORT55 CALL abort_physic("open_startphy","Cannot open file",1) 56 56 ENDIF 57 57 ENDIF … … 117 117 //trim(field_name) 118 118 write(*,*)trim(nf90_strerror(ierr)) 119 CALL ABORT119 CALL abort_physic("inquire_field_ndims","Failed to get ndims",1) 120 120 ENDIF 121 121 ENDIF … … 168 168 //trim(field_name) 169 169 write(*,*)trim(nf90_strerror(ierr)) 170 CALL ABORT170 CALL abort_physic("inquire_field_ndims","Failed to get length",1) 171 171 ENDIF 172 172 ENDIF … … 307 307 IF (.NOT. tmp_found) THEN 308 308 PRINT*, 'get_field_rgen: Field <'//field_name//'> not found' 309 CALL abort 309 CALL abort_physic("get_field_rgen","Failed to get field",1) 310 310 ENDIF 311 311 ENDIF … … 332 332 ! END IF 333 333 ! ELSE 334 CALL abort 334 CALL abort_physic("get_field_rgen","Failed to read field",1) 335 335 ! ENDIF 336 336 ENDIF … … 427 427 IF (ierr/=NF90_NOERR) THEN 428 428 PRINT*, 'phyetat0: Failed loading <'//trim(var_name)//'>' 429 CALL abort 429 CALL abort_physic("get_var_rgen","Failed to read variable",1) 430 430 ENDIF 431 431 tmp_found=.TRUE. … … 447 447 IF (.NOT. tmp_found) THEN 448 448 PRINT*, 'phyetat0: Variable <'//trim(var_name)//'> not found' 449 CALL abort 449 CALL abort_physic("get_var_rgen","Failed to read variable",1) 450 450 ENDIF 451 451 ENDIF … … 479 479 write(*,*)'open_restartphy: problem creating file '//trim(filename) 480 480 write(*,*)trim(nf90_strerror(ierr)) 481 CALL ABORT481 CALL abort_physic("open_restartphy","Failed creating file",1) 482 482 ENDIF 483 483 already_created=.true. … … 488 488 write(*,*)'open_restartphy: problem opening file '//trim(filename) 489 489 write(*,*)trim(nf90_strerror(ierr)) 490 CALL ABORT490 CALL abort_physic("open_restartphy","Failed opening file",1) 491 491 ENDIF 492 492 return … … 504 504 write(*,*)'open_restartphy: problem defining index dimension ' 505 505 write(*,*)trim(nf90_strerror(ierr)) 506 CALL ABORT506 CALL abort_physic("open_restartphy","Failed defining index",1) 507 507 ENDIF 508 508 … … 511 511 write(*,*)'open_restartphy: problem defining physical_points dimension ' 512 512 write(*,*)trim(nf90_strerror(ierr)) 513 CALL ABORT513 CALL abort_physic("open_restartphy","Failed defining physical_points",1) 514 514 ENDIF 515 515 … … 518 518 write(*,*)'open_restartphy: problem defining subsurface_layers dimension ' 519 519 write(*,*)trim(nf90_strerror(ierr)) 520 CALL ABORT520 CALL abort_physic("open_restartphy","Failed defining subsurface_layers",1) 521 521 ENDIF 522 522 … … 525 525 write(*,*)'open_restartphy: problem defining nlayer_plus_1 dimension ' 526 526 write(*,*)trim(nf90_strerror(ierr)) 527 CALL ABORT527 CALL abort_physic("open_restartphy","Failed defining nlayer_plus_1",1) 528 528 ENDIF 529 529 … … 537 537 write(*,*)'open_restartphy: problem defining number_of_advected_fields dimension ' 538 538 write(*,*)trim(nf90_strerror(ierr)) 539 CALL ABORT539 CALL abort_physic("open_restartphy","Failed defining number_of_advected_fields",1) 540 540 ENDIF 541 541 … … 544 544 write(*,*)'open_restartphy: problem defining nlayer dimension ' 545 545 write(*,*)trim(nf90_strerror(ierr)) 546 CALL ABORT546 CALL abort_physic("open_restartphy","Failed defining nlayer",1) 547 547 ENDIF 548 548 … … 551 551 write(*,*)'open_restartphy: problem defining Time dimension ' 552 552 write(*,*)trim(nf90_strerror(ierr)) 553 CALL ABORT553 CALL abort_physic("open_restartphy","Failed defining Time",1) 554 554 ENDIF 555 555 … … 558 558 write(*,*)'open_restartphy: problem ending definition mode ' 559 559 write(*,*)trim(nf90_strerror(ierr)) 560 CALL ABORT560 CALL abort_physic("open_restartphy","Failed ending definition mode",1) 561 561 ENDIF 562 562 ENDIF … … 822 822 PRINT *, "Error phyredem(put_field_rgen) : wrong dimension for ",trim(field_name) 823 823 write(*,*) " field_size =",field_size 824 CALL ABORT824 CALL abort_physic("put_field_rgen","wrong field dimension",1) 825 825 ENDIF 826 826 … … 829 829 write(*,*) " Error phyredem(put_field_rgen) : failed writing ",trim(field_name) 830 830 write(*,*)trim(nf90_strerror(ierr)) 831 call abort831 CALL abort_physic("put_field_rgen","Failed writing field",1) 832 832 endif 833 833 … … 932 932 write(*,*)'put_var_rgen: problem writing Time' 933 933 write(*,*)trim(nf90_strerror(ierr)) 934 CALL ABORT934 CALL abort_physic("get_var_rgen","Failed to write Time",1) 935 935 ENDIF 936 936 return ! nothing left to do … … 944 944 PRINT *, "put_var_rgen error : wrong dimension" 945 945 write(*,*) " var_size =",var_size 946 CALL abort 946 CALL abort_physic("get_var_rgen","Wrong variable dimension",1) 947 947 948 948 ENDIF ! of IF (var_size==length) THEN … … 965 965 write(*,*)'put_var_rgen: problem writing '//trim(var_name) 966 966 write(*,*)trim(nf90_strerror(ierr)) 967 CALL ABORT967 CALL abort_physic("get_var_rgen","Failed writing variable",1) 968 968 ENDIF 969 969 ENDIF ! of IF (is_master) -
trunk/LMDZ.MARS/libf/phymars/nonoro_gwd_ran_mod.F90
r2266 r2399 469 469 end DO 470 470 CLOSE(11) 471 stop471 CALL abort_physic("nonoro_gwd_ran","stop here, the work is done",0) 472 472 endif 473 473
Note: See TracChangeset
for help on using the changeset viewer.