Changeset 2311 for LMDZ5/trunk/libf/phylmd/readaerosol_interp.F90
- Timestamp:
- Jun 25, 2015, 9:45:24 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/readaerosol_interp.F90
r1907 r2311 21 21 USE phys_cal_mod 22 22 USE pres2lev_mod 23 USE print_control_mod, ONLY: lunout 23 24 24 25 IMPLICIT NONE … … 28 29 INCLUDE "temps.h" 29 30 INCLUDE "clesphys.h" 30 INCLUDE "iniprint.h"31 31 INCLUDE "dimensions.h" 32 32 INCLUDE "comvert.h" … … 150 150 IF (.NOT. ALLOCATED(var_day)) THEN 151 151 ALLOCATE( var_day(klon, klev, naero_spc), stat=ierr) 152 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 1',1)152 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 1',1) 153 153 ALLOCATE( pi_var_day(klon, klev, naero_spc), stat=ierr) 154 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 2',1)154 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 2',1) 155 155 156 156 ALLOCATE( psurf_year(klon, 12, naero_spc), pi_psurf_year(klon, 12, naero_spc), stat=ierr) 157 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 3',1)157 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 3',1) 158 158 159 159 ALLOCATE( load_year(klon, 12, naero_spc), pi_load_year(klon, 12, naero_spc), stat=ierr) 160 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 4',1)160 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 4',1) 161 161 162 162 lnewday=.TRUE. … … 209 209 END IF 210 210 ELSE 211 CALL abort_ gcm('readaerosol_interp', 'this aer_type not supported',1)211 CALL abort_physic('readaerosol_interp', 'this aer_type not supported',1) 212 212 END IF 213 213 … … 216 216 IF (.NOT. ALLOCATED(var_year)) THEN 217 217 ALLOCATE(var_year(klon, klev_src, 12, naero_spc), stat=ierr) 218 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 5',1)218 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 5',1) 219 219 END IF 220 220 var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 230 230 WRITE(lunout,*) 'Error! All forcing files for the same aerosol must have the same vertical dimension' 231 231 WRITE(lunout,*) 'Aerosol : ', name_aero(id_aero) 232 CALL abort_ gcm('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1)232 CALL abort_physic('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1) 233 233 END IF 234 234 235 235 IF (.NOT. ALLOCATED(pi_var_year)) THEN 236 236 ALLOCATE(pi_var_year(klon, klev_src, 12, naero_spc), stat=ierr) 237 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 6',1)237 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 6',1) 238 238 END IF 239 239 pi_var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 259 259 IF ( psurf_year(1,1,id_aero) /= pi_psurf_year(1,1,id_aero) ) THEN 260 260 WRITE(lunout,*) 'Warning! All forcing files for the same aerosol must have the same structure' 261 CALL abort_ gcm('readaerosol_interp', 'The aerosol files have not the same format',1)261 CALL abort_physic('readaerosol_interp', 'The aerosol files have not the same format',1) 262 262 END IF 263 263 264 264 IF (klev /= klev_src) THEN 265 265 WRITE(lunout,*) 'Old format of aerosol file do not allowed vertical interpolation' 266 CALL abort_ gcm('readaerosol_interp', 'Old aerosol file not possible',1)266 CALL abort_physic('readaerosol_interp', 'Old aerosol file not possible',1) 267 267 END IF 268 268 … … 336 336 END IF 337 337 ELSE 338 CALL abort_ gcm('readaerosol_interp', 'number of months undefined',1)338 CALL abort_physic('readaerosol_interp', 'number of months undefined',1) 339 339 ENDIF 340 340 if (debug) then … … 345 345 ! Time interpolation, still on vertical source grid 346 346 ALLOCATE(tmp1(klon,klev_src), tmp2(klon,klev_src),stat=ierr) 347 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 7',1)347 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 7',1) 348 348 349 349 ALLOCATE(pplay_src(klon,klev_src), stat=ierr) 350 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 8',1)350 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 8',1) 351 351 352 352 … … 544 544 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 545 545 WRITE(lunout,*) 'day1, day2, jDay = ', day1, day2, jDay 546 CALL abort_ gcm('readaerosol_interp','Error in interpolation 1',1)546 CALL abort_physic('readaerosol_interp','Error in interpolation 1',1) 547 547 END IF 548 548 END DO … … 563 563 564 564 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 565 CALL abort_ gcm('readaerosol_interp','Error in interpolation 2',1)565 CALL abort_physic('readaerosol_interp','Error in interpolation 2',1) 566 566 END IF 567 567 END DO
Note: See TracChangeset
for help on using the changeset viewer.