Changeset 2408 for LMDZ5/branches/testing/libf/phylmd/readchlorophyll.F90
- Timestamp:
- Dec 14, 2015, 11:43:09 AM (9 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2293-2295,2297,2299-2302,2305-2313,2315,2317-2380,2382-2396
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/phylmd/readchlorophyll.F90
r2258 r2408 10 10 11 11 USE phys_cal_mod, ONLY : mth_cur 12 USE mod_grid_phy_lmdz 12 USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, klon_glo, & 13 grid2dto1d_glo 13 14 USE mod_phys_lmdz_mpi_data, ONLY : is_mpi_root 14 USE mod_phys_lmdz_para 15 USE phys_state_var_mod 16 USE phys_local_var_mod 17 USE dimphy 15 USE mod_phys_lmdz_para, ONLY: scatter 16 USE phys_state_var_mod, ONLY: chl_con 18 17 19 18 implicit none 20 19 21 20 include "YOMCST.h" 22 include "dimensions.h"23 21 24 22 ! Variable input … … 62 60 n_lon = size(longitude) 63 61 ! print *, 'LON chlorophyll=', n_lon, longitude 64 IF (n_lon.NE. iim) THEN65 print *,'Le nombre de lon n est pas egal a iim'62 IF (n_lon.NE.nbp_lon) THEN 63 print *,'Le nombre de lon n est pas egal a nbp_lon' 66 64 STOP 67 65 ENDIF … … 72 70 n_lat = size(latitude) 73 71 ! print *, 'LAT chlorophyll=', n_lat, latitude 74 IF (n_lat.NE. jjm+1) THEN75 print *,'Le nombre de lat n est pas egal a j jm+1'72 IF (n_lat.NE.nbp_lat) THEN 73 print *,'Le nombre de lat n est pas egal a jnbp_lat' 76 74 STOP 77 75 ENDIF … … 93 91 CALL nf95_inq_varid(ncid_in, "CHL", varid) 94 92 ncerr = nf90_get_var(ncid_in, varid, chlorocon) 95 print *,'code erreur read aerosolstrato=', ncerr, varid93 print *,'code erreur readchlorophyll=', ncerr, varid 96 94 97 95 CALL nf95_close(ncid_in) … … 99 97 !---select the correct month 100 98 IF (mth_cur.LT.1.OR.mth_cur.GT.12) THEN 101 print *,'probleme avec le mois dans read aerosolstrat=', mth_cur99 print *,'probleme avec le mois dans readchlorophyll =', mth_cur 102 100 ENDIF 103 101 chlorocon_mois(:,:) = chlorocon(:,:,mth_cur) … … 109 107 print*,"chrolophyll current month",mth_cur 110 108 do i=1,klon_glo 111 if(isnan(chlorocon_mois_glo(i)))then 109 ! if(isnan(chlorocon_mois_glo(i)))then ! isnan() is not in the Fortran standard... 110 ! Another way to check for NaN: 111 if(chlorocon_mois_glo(i).ne.chlorocon_mois_glo(i)) then 112 112 chlorocon_mois_glo(i)=0. 113 113 endif
Note: See TracChangeset
for help on using the changeset viewer.