Ignore:
Timestamp:
Apr 15, 2015, 6:49:07 PM (10 years ago)
Author:
ymipsl
Message:

remove all dynamic dependency in LMDZ physics except for the include "dimensions.h"

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/readaerosol.F90

    r3809 r3814  
    130130           IF (klev_src /= klev_src2) THEN
    131131              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)
    133133           END IF
    134134           
     
    162162  ELSE
    163163     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)
    165165  END IF ! type
    166166
     
    260260          WRITE(lunout,*) 'longitudes in model :', io_lon
    261261         
    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)
    263263       END IF
    264264
     
    283283          WRITE(lunout,*) 'latitudes in file ', TRIM(fname),' : ', lat_src     
    284284          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)
    286286       END IF
    287287
     
    297297          IF (ierr /= NF90_NOERR) THEN
    298298             ! 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)
    300300          ELSE
    301301             ! Old file found
     
    315315     ! Allocate variables depending on the number of vertical levels
    316316       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)
    318318
    319319       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)
    321321
    322322! 3) Read all variables from file
     
    333333!       IF (nbr_tsteps /= 12 .AND. nbr_tsteps /= 14) THEN
    334334       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)
    336336       ENDIF
    337337
     
    522522       
    523523       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)
    525525       
    526526       ! Transform from 2D to 1D field
     
    546546    IF (.NOT. ASSOCIATED(pt_ap)) THEN  ! if pt_ap is allocated also pt_b is allocated
    547547       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)
    549549    END IF
    550550    CALL bcast(pt_ap)
     
    554554    IF (ASSOCIATED(pt_year)) DEALLOCATE(pt_year)
    555555    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)
    557557
    558558    ! Scatter global field to local domain at local process
     
    583583          WRITE(lunout,*) 'Error in get_aero_fromfile : ',text
    584584       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)
    586586    END IF
    587587
Note: See TracChangeset for help on using the changeset viewer.