- Timestamp:
- Nov 21, 2019, 4:43:45 PM (5 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
-
LMDZ6/branches/Ocean_skin/libf/phylmd/readchlorophyll.F90
r3298 r3605 15 15 USE mod_phys_lmdz_para, ONLY: scatter 16 16 USE phys_state_var_mod, ONLY: chl_con 17 USE print_control_mod, ONLY: prt_level,lunout 17 18 18 19 IMPLICIT NONE … … 45 46 46 47 !-------------------------------------------------------- 48 CHARACTER (len = 20) :: modname = 'readchlorophyll' 49 CHARACTER (len = 80) :: abort_message 47 50 48 51 !--only read file if beginning of run or start of new month … … 56 59 CALL nf95_gw_var(ncid_in, varid, longitude) 57 60 n_lon = size(longitude) 58 ! print *, 'LON chlorophyll=', n_lon, longitude59 61 IF (n_lon.NE.nbp_lon) THEN 60 print *,'Le nombre de lon n est pas egal a nbp_lon'61 STOP62 abort_message='Le nombre de lon n est pas egal a nbp_lon' 63 CALL abort_physic(modname,abort_message,1) 62 64 ENDIF 63 65 … … 65 67 CALL nf95_gw_var(ncid_in, varid, latitude) 66 68 n_lat = size(latitude) 67 ! print *, 'LAT chlorophyll=', n_lat, latitude68 69 IF (n_lat.NE.nbp_lat) THEN 69 print *,'Le nombre de lat n est pas egal a jnbp_lat'70 STOP70 abort_message='Le nombre de lat n est pas egal a jnbp_lat' 71 CALL abort_physic(modname,abort_message,1) 71 72 ENDIF 72 73 … … 74 75 CALL nf95_gw_var(ncid_in, varid, time) 75 76 n_month = size(time) 76 ! print *, 'TIME aerosol strato=', n_month, time77 77 IF (n_month.NE.12) THEN 78 print *,'Le nombre de month n est pas egal a 12'79 STOP78 abort_message='Le nombre de month n est pas egal a 12' 79 CALL abort_physic(modname,abort_message,1) 80 80 ENDIF 81 81 … … 87 87 CALL nf95_inq_varid(ncid_in, "CHL", varid) 88 88 ncerr = nf90_get_var(ncid_in, varid, chlorocon) 89 print *,'code erreur readchlorophyll=', ncerr, varid89 WRITE(lunout,*)'code erreur readchlorophyll=', ncerr, varid 90 90 91 91 CALL nf95_close(ncid_in) … … 93 93 !---select the correct month 94 94 IF (mth_cur.LT.1.OR.mth_cur.GT.12) THEN 95 print *,'probleme avec le mois dans readchlorophyll =', mth_cur95 WRITE(lunout,*)'probleme avec le mois dans readchlorophyll =', mth_cur 96 96 ENDIF 97 97 chlorocon_mois(:,:) = chlorocon(:,:,mth_cur) … … 100 100 CALL grid2dTo1d_glo(chlorocon_mois,chlorocon_mois_glo) 101 101 102 print *,"chrolophyll current month",mth_cur102 WRITE(lunout,*)"chrolophyll current month",mth_cur 103 103 DO i=1,klon_glo 104 104 ! if(isnan(chlorocon_mois_glo(i)))then ! isnan() is not in the Fortran standard...
Note: See TracChangeset
for help on using the changeset viewer.