- Timestamp:
- Apr 15, 2015, 6:49:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/readaerosol.F90
r3809 r3814 130 130 IF (klev_src /= klev_src2) THEN 131 131 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)132 CALL abort_physic('readaersosol','Error in number of vertical levels',1) 133 133 END IF 134 134 … … 162 162 ELSE 163 163 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)164 CALL abort_physic('readaerosol','Error : aer_type parameter not accepted',1) 165 165 END IF ! type 166 166 … … 260 260 WRITE(lunout,*) 'longitudes in model :', io_lon 261 261 262 CALL abort_ gcm('get_aero_fromfile', 'longitudes are not the same in file and model',1)262 CALL abort_physic('get_aero_fromfile', 'longitudes are not the same in file and model',1) 263 263 END IF 264 264 … … 283 283 WRITE(lunout,*) 'latitudes in file ', TRIM(fname),' : ', lat_src 284 284 WRITE(lunout,*) 'latitudes in model :', io_lat 285 CALL abort_ gcm('get_aero_fromfile', 'latitudes do not correspond between file and model',1)285 CALL abort_physic('get_aero_fromfile', 'latitudes do not correspond between file and model',1) 286 286 END IF 287 287 … … 297 297 IF (ierr /= NF90_NOERR) THEN 298 298 ! Dimension PRESNIVS not found either 299 CALL abort_ gcm('get_aero_fromfile', 'dimension lev or presnivs not in file',1)299 CALL abort_physic('get_aero_fromfile', 'dimension lev or presnivs not in file',1) 300 300 ELSE 301 301 ! Old file found … … 315 315 ! Allocate variables depending on the number of vertical levels 316 316 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)317 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 1',1) 318 318 319 319 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)320 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 2',1) 321 321 322 322 ! 3) Read all variables from file … … 333 333 ! IF (nbr_tsteps /= 12 .AND. nbr_tsteps /= 14) THEN 334 334 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)335 CALL abort_physic('get_aero_fromfile', 'not the right number of months in aerosol file read (should be 12 for the moment)',1) 336 336 ENDIF 337 337 … … 522 522 523 523 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)524 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 3',1) 525 525 526 526 ! Transform from 2D to 1D field … … 546 546 IF (.NOT. ASSOCIATED(pt_ap)) THEN ! if pt_ap is allocated also pt_b is allocated 547 547 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)548 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 4',1) 549 549 END IF 550 550 CALL bcast(pt_ap) … … 554 554 IF (ASSOCIATED(pt_year)) DEALLOCATE(pt_year) 555 555 ALLOCATE(pt_year(klon, klev_src, 12), stat=ierr) 556 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 5',1)556 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 5',1) 557 557 558 558 ! Scatter global field to local domain at local process … … 583 583 WRITE(lunout,*) 'Error in get_aero_fromfile : ',text 584 584 END IF 585 CALL abort_ gcm('get_aero_fromfile',trim(nf90_strerror(status)),1)585 CALL abort_physic('get_aero_fromfile',trim(nf90_strerror(status)),1) 586 586 END IF 587 587
Note: See TracChangeset
for help on using the changeset viewer.