Changeset 2311 for LMDZ5/trunk/libf/phylmd/readaerosol.F90
- Timestamp:
- Jun 25, 2015, 9:45:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/readaerosol.F90
r1907 r2311 20 20 !**************************************************************************************** 21 21 USE dimphy 22 USE print_control_mod, ONLY: lunout 22 23 23 24 IMPLICIT NONE 24 25 INCLUDE "iniprint.h"26 25 27 26 ! Input arguments … … 130 129 IF (klev_src /= klev_src2) THEN 131 130 WRITE(lunout,*) 'Two aerosols files with different number of vertical levels is not allowded' 132 CALL abort_ gcm('readaersosol','Error in number of vertical levels',1)131 CALL abort_physic('readaersosol','Error in number of vertical levels',1) 133 132 END IF 134 133 … … 162 161 ELSE 163 162 WRITE(lunout,*)'This option is not implemented : aer_type = ', type,' name_aero=',name_aero 164 CALL abort_ gcm('readaerosol','Error : aer_type parameter not accepted',1)163 CALL abort_physic('readaerosol','Error : aer_type parameter not accepted',1) 165 164 END IF ! type 166 165 … … 192 191 USE mod_phys_lmdz_para 193 192 USE iophy, ONLY : io_lon, io_lat 193 USE print_control_mod, ONLY: lunout 194 194 195 195 IMPLICIT NONE 196 196 197 197 INCLUDE "dimensions.h" 198 INCLUDE "iniprint.h"199 198 200 199 ! Input argumets … … 260 259 WRITE(lunout,*) 'longitudes in model :', io_lon 261 260 262 CALL abort_ gcm('get_aero_fromfile', 'longitudes are not the same in file and model',1)261 CALL abort_physic('get_aero_fromfile', 'longitudes are not the same in file and model',1) 263 262 END IF 264 263 … … 283 282 WRITE(lunout,*) 'latitudes in file ', TRIM(fname),' : ', lat_src 284 283 WRITE(lunout,*) 'latitudes in model :', io_lat 285 CALL abort_ gcm('get_aero_fromfile', 'latitudes do not correspond between file and model',1)284 CALL abort_physic('get_aero_fromfile', 'latitudes do not correspond between file and model',1) 286 285 END IF 287 286 … … 297 296 IF (ierr /= NF90_NOERR) THEN 298 297 ! Dimension PRESNIVS not found either 299 CALL abort_ gcm('get_aero_fromfile', 'dimension lev or presnivs not in file',1)298 CALL abort_physic('get_aero_fromfile', 'dimension lev or presnivs not in file',1) 300 299 ELSE 301 300 ! Old file found … … 315 314 ! Allocate variables depending on the number of vertical levels 316 315 ALLOCATE(varmth(iim, jjm+1, klev_src), varyear(iim, jjm+1, klev_src, 12), stat=ierr) 317 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 1',1)316 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 1',1) 318 317 319 318 ALLOCATE(pt_ap(klev_src), pt_b(klev_src), varktmp(klev_src), stat=ierr) 320 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 2',1)319 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 2',1) 321 320 322 321 ! 3) Read all variables from file … … 333 332 ! IF (nbr_tsteps /= 12 .AND. nbr_tsteps /= 14) THEN 334 333 IF (nbr_tsteps /= 12 ) THEN 335 CALL abort_ gcm('get_aero_fromfile', 'not the right number of months in aerosol file read (should be 12 for the moment)',1)334 CALL abort_physic('get_aero_fromfile', 'not the right number of months in aerosol file read (should be 12 for the moment)',1) 336 335 ENDIF 337 336 … … 522 521 523 522 ALLOCATE(varyear_glo1D(klon_glo, klev_src, 12), stat=ierr) 524 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 3',1)523 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 3',1) 525 524 526 525 ! Transform from 2D to 1D field … … 546 545 IF (.NOT. ASSOCIATED(pt_ap)) THEN ! if pt_ap is allocated also pt_b is allocated 547 546 ALLOCATE(pt_ap(klev_src), pt_b(klev_src), stat=ierr) 548 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 4',1)547 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 4',1) 549 548 END IF 550 549 CALL bcast(pt_ap) … … 554 553 IF (ASSOCIATED(pt_year)) DEALLOCATE(pt_year) 555 554 ALLOCATE(pt_year(klon, klev_src, 12), stat=ierr) 556 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 5',1)555 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 5',1) 557 556 558 557 ! Scatter global field to local domain at local process … … 572 571 SUBROUTINE check_err(status,text) 573 572 USE netcdf 573 USE print_control_mod, ONLY: lunout 574 574 IMPLICIT NONE 575 575 576 INCLUDE "iniprint.h"577 576 INTEGER, INTENT (IN) :: status 578 577 CHARACTER(len=*), INTENT (IN), OPTIONAL :: text … … 583 582 WRITE(lunout,*) 'Error in get_aero_fromfile : ',text 584 583 END IF 585 CALL abort_ gcm('get_aero_fromfile',trim(nf90_strerror(status)),1)584 CALL abort_physic('get_aero_fromfile',trim(nf90_strerror(status)),1) 586 585 END IF 587 586
Note: See TracChangeset
for help on using the changeset viewer.