- 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_interp.F90
r3809 r3814 26 26 INCLUDE "YOMCST.h" 27 27 INCLUDE "chem.h" 28 INCLUDE "temps.h"29 28 INCLUDE "clesphys.h" 30 29 INCLUDE "iniprint.h" 31 30 INCLUDE "dimensions.h" 32 INCLUDE "comvert.h"33 31 ! 34 32 ! Input: … … 150 148 IF (.NOT. ALLOCATED(var_day)) THEN 151 149 ALLOCATE( var_day(klon, klev, naero_spc), stat=ierr) 152 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 1',1)150 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 1',1) 153 151 ALLOCATE( pi_var_day(klon, klev, naero_spc), stat=ierr) 154 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 2',1)152 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 2',1) 155 153 156 154 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)155 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 3',1) 158 156 159 157 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)158 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 4',1) 161 159 162 160 lnewday=.TRUE. … … 209 207 END IF 210 208 ELSE 211 CALL abort_ gcm('readaerosol_interp', 'this aer_type not supported',1)209 CALL abort_physic('readaerosol_interp', 'this aer_type not supported',1) 212 210 END IF 213 211 … … 216 214 IF (.NOT. ALLOCATED(var_year)) THEN 217 215 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)216 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 5',1) 219 217 END IF 220 218 var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 230 228 WRITE(lunout,*) 'Error! All forcing files for the same aerosol must have the same vertical dimension' 231 229 WRITE(lunout,*) 'Aerosol : ', name_aero(id_aero) 232 CALL abort_ gcm('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1)230 CALL abort_physic('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1) 233 231 END IF 234 232 235 233 IF (.NOT. ALLOCATED(pi_var_year)) THEN 236 234 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)235 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 6',1) 238 236 END IF 239 237 pi_var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 259 257 IF ( psurf_year(1,1,id_aero) /= pi_psurf_year(1,1,id_aero) ) THEN 260 258 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)259 CALL abort_physic('readaerosol_interp', 'The aerosol files have not the same format',1) 262 260 END IF 263 261 264 262 IF (klev /= klev_src) THEN 265 263 WRITE(lunout,*) 'Old format of aerosol file do not allowed vertical interpolation' 266 CALL abort_ gcm('readaerosol_interp', 'Old aerosol file not possible',1)264 CALL abort_physic('readaerosol_interp', 'Old aerosol file not possible',1) 267 265 END IF 268 266 … … 336 334 END IF 337 335 ELSE 338 CALL abort_ gcm('readaerosol_interp', 'number of months undefined',1)336 CALL abort_physic('readaerosol_interp', 'number of months undefined',1) 339 337 ENDIF 340 338 if (debug) then … … 345 343 ! Time interpolation, still on vertical source grid 346 344 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)345 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 7',1) 348 346 349 347 ALLOCATE(pplay_src(klon,klev_src), stat=ierr) 350 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 8',1)348 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 8',1) 351 349 352 350 … … 544 542 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 545 543 WRITE(lunout,*) 'day1, day2, jDay = ', day1, day2, jDay 546 CALL abort_ gcm('readaerosol_interp','Error in interpolation 1',1)544 CALL abort_physic('readaerosol_interp','Error in interpolation 1',1) 547 545 END IF 548 546 END DO … … 563 561 564 562 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 565 CALL abort_ gcm('readaerosol_interp','Error in interpolation 2',1)563 CALL abort_physic('readaerosol_interp','Error in interpolation 2',1) 566 564 END IF 567 565 END DO
Note: See TracChangeset
for help on using the changeset viewer.