Changeset 5084 for LMDZ6/trunk/libf/phylmd/readaerosolstrato.F90
- Timestamp:
- Jul 19, 2024, 6:40:44 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/readaerosolstrato.F90
r5075 r5084 3 3 use netcdf95, only: nf95_close, nf95_gw_var, nf95_inq_dimid, & 4 4 nf95_inq_varid, nf95_open 5 use lmdz_netcdf, only: nf90_get_var, nf90_noerr, nf90_nowrite5 use netcdf, only: nf90_get_var, nf90_noerr, nf90_nowrite 6 6 7 7 USE phys_cal_mod, ONLY : mth_cur … … 68 68 69 69 !--only read file if beginning of run or start of new month 70 IF (debut.OR.mth_cur /=mth_pre) THEN70 IF (debut.OR.mth_cur.NE.mth_pre) THEN 71 71 72 72 !--only root reads 73 73 IF (is_mpi_root.AND.is_omp_root) THEN 74 74 75 IF (nbands /=2) THEN75 IF (nbands.NE.2) THEN 76 76 abort_message='nbands doit etre egal a 2 dans readaerosolstrat' 77 77 CALL abort_physic(modname,abort_message,1) … … 83 83 CALL nf95_gw_var(ncid_in, varid, lev) 84 84 n_lev = size(lev) 85 IF (n_lev /=klev) THEN85 IF (n_lev.NE.klev) THEN 86 86 abort_message='Le nombre de niveaux n est pas egal a klev' 87 87 CALL abort_physic(modname,abort_message,1) … … 93 93 WRITE(lunout,*) 'LAT aerosol strato=', n_lat, latitude 94 94 IF (grid_type/=unstructured) THEN 95 IF (n_lat /=nbp_lat) THEN95 IF (n_lat.NE.nbp_lat) THEN 96 96 abort_message='Le nombre de lat n est pas egal a nbp_lat' 97 97 CALL abort_physic(modname,abort_message,1) … … 104 104 IF (grid_type/=unstructured) THEN 105 105 WRITE(lunout,*) 'LON aerosol strato=', n_lon, longitude 106 IF (n_lon /=nbp_lon) THEN106 IF (n_lon.NE.nbp_lon) THEN 107 107 abort_message='Le nombre de lon n est pas egal a nbp_lon' 108 108 CALL abort_physic(modname,abort_message,1) … … 114 114 n_month = size(time) 115 115 WRITE(lunout,*) 'TIME aerosol strato=', n_month, time 116 IF (n_month /=12) THEN116 IF (n_month.NE.12) THEN 117 117 abort_message='Le nombre de month n est pas egal a 12' 118 118 CALL abort_physic(modname,abort_message,1) … … 131 131 132 132 !---select the correct month 133 IF (mth_cur <1.OR.mth_cur>12) THEN133 IF (mth_cur.LT.1.OR.mth_cur.GT.12) THEN 134 134 WRITE(lunout,*) 'probleme avec le mois dans readaerosolstrat =', mth_cur 135 135 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.