Changeset 5075 for LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90
- Timestamp:
- Jul 19, 2024, 10:05:57 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90
r4489 r5075 104 104 105 105 ! Initialization of tr_seri(id_CO2) If it is not initialized 106 IF (MAXVAL(tr_seri(:,:,id_CO2)) .LT.1.e-15) THEN106 IF (MAXVAL(tr_seri(:,:,id_CO2))<1.e-15) THEN 107 107 tr_seri(:,:,id_CO2)=co2_ppm0*1.e-6/RMD*RMCO2 !--initialised from co2_ppm0 in rdem 108 108 ENDIF … … 299 299 !--for every timestep comment out the IF ENDIF statements 300 300 !--otherwise this is updated every day 301 IF (debutphy.OR.day_cur .NE.day_pre) THEN301 IF (debutphy.OR.day_cur/=day_pre) THEN 302 302 303 303 CALL gather(tr_seri(:,:,id_CO2),co2_glo) … … 351 351 352 352 USE netcdf95, ONLY: nf95_close, nf95_gw_var, nf95_inq_varid, nf95_open 353 USE netcdf, ONLY: nf90_get_var, nf90_noerr, nf90_nowrite353 USE lmdz_netcdf, ONLY: nf90_get_var, nf90_noerr, nf90_nowrite 354 354 355 355 USE carbon_cycle_mod, ONLY : fco2_ff, fco2_bb, fco2_land, fco2_ocean … … 401 401 CALL nf95_gw_var(ncid_in, varid, vector) 402 402 n_glo = size(vector) 403 IF (n_glo .NE.klon_glo) THEN403 IF (n_glo/=klon_glo) THEN 404 404 abort_message='sflx_lmdz_co2_ff: le nombre de points n est pas egal a klon_glo' 405 405 CALL abort_physic(modname,abort_message,1) … … 409 409 CALL nf95_gw_var(ncid_in, varid, time) 410 410 n_month = size(time) 411 IF (n_month .NE.12) THEN411 IF (n_month/=12) THEN 412 412 abort_message='sflx_lmdz_co2_ff: le nombre de month n est pas egal a 12' 413 413 CALL abort_physic(modname,abort_message,1) … … 434 434 CALL nf95_gw_var(ncid_in, varid, vector) 435 435 n_glo = size(vector) 436 IF (n_glo .NE.klon_glo) THEN436 IF (n_glo/=klon_glo) THEN 437 437 abort_message='sflx_lmdz_co2_bb: le nombre de points n est pas egal a klon_glo' 438 438 CALL abort_physic(modname,abort_message,1) … … 442 442 CALL nf95_gw_var(ncid_in, varid, time) 443 443 n_month = size(time) 444 IF (n_month .NE.12) THEN444 IF (n_month/=12) THEN 445 445 abort_message='sflx_lmdz_co2_bb: le nombre de month n est pas egal a 12' 446 446 CALL abort_physic(modname,abort_message,1) … … 474 474 475 475 !---select the correct month 476 IF (mth_cur .LT.1.OR.mth_cur.GT.12) THEN476 IF (mth_cur<1.OR.mth_cur>12) THEN 477 477 PRINT *,'probleme avec le mois dans co2_ini =', mth_cur 478 478 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.