Changeset 6116 for LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90
- Timestamp:
- Mar 21, 2026, 7:18:46 PM (2 weeks ago)
- File:
-
- 1 edited
-
LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90 (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90
r6112 r6116 248 248 o_flx_co2_land, o_flx_co2_land_cor, & 249 249 o_flx_co2_ff, o_flx_co2_bb, & 250 o_co2_send, & 250 251 o_delta_sst, o_delta_sal, o_ds_ns, o_dt_ns, o_dter, o_dser, o_tkt, & 251 252 o_tks, o_taur, o_sss, & … … 479 480 USE carbon_cycle_mod, ONLY: fco2_ff, fco2_bb, fco2_land, fco2_ocean 480 481 USE carbon_cycle_mod, ONLY: fco2_ocean_cor, fco2_land_cor 482 USE carbon_cycle_mod, ONLY: co2_send 481 483 482 484 USE phys_output_var_mod, ONLY: vars_defined, snow_o, zfra_o, bils_diss, & … … 580 582 REAL, DIMENSION (klon,16) :: zx_tmp_fi3dsplw !FC 581 583 584 ! << PC 585 ! Dummy buffer for XIOS 586 REAL, DIMENSION(:), ALLOCATABLE :: zzero 587 INTEGER :: ierr_z 588 ! >> PC 589 582 590 CHARACTER (LEN=4) :: bb2 583 591 INTEGER, DIMENSION(nbp_lon*nbp_lat) :: ndex2d … … 613 621 CALL set_itau_iophy(itau_w) 614 622 623 ! << PC 624 ! Initialize dummy buffer 625 ALLOCATE(zzero(klon), STAT=ierr_z) 626 IF (ierr_z /= 0) CALL abort_physic("phys_output_write", "Alloc zzero failed", 1) 627 zzero(:) = 0.0 628 ! >> PC 629 615 630 ! IF (.NOT.vars_defined) THEN 616 631 iinitend = 1 … … 3097 3112 ENDIF 3098 3113 ENDIF !using_xios 3099 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 3114 3115 ! PC: TRACERS OUTPUT SECTION 3100 3116 IF (iflag_phytrac == 1 ) then 3101 3117 ! … … 3105 3121 IF(.NOT.tracers(iq)%isInPhysics) CYCLE 3106 3122 itr = itr + 1 3107 ! write(*,*) 'phys_output_write_mod 2370: itr=',itr3108 3123 !--3D fields 3109 3124 CALL histwrite_phy(o_trac(itr), tr_seri(:,:,itr)) … … 3121 3136 CALL histwrite_phy(o_trac_cum(itr), zx_tmp_fi2d) 3122 3137 ENDDO !--iq 3123 !--CO2 net fluxes 3124 CALL histwrite_phy(o_flx_co2_land, fco2_land) 3125 CALL histwrite_phy(o_flx_co2_ocean, fco2_ocean) 3126 CALL histwrite_phy(o_flx_co2_ocean_cor, fco2_ocean_cor) 3127 CALL histwrite_phy(o_flx_co2_land_cor, fco2_land_cor) 3128 CALL histwrite_phy(o_flx_co2_ff, fco2_ff) 3129 CALL histwrite_phy(o_flx_co2_bb, fco2_bb) 3138 ! PC: CO2 FLUXES 3139 ! !--CO2 net fluxes 3140 ! CALL histwrite_phy(o_flx_co2_land, fco2_land) 3141 ! CALL histwrite_phy(o_flx_co2_ocean, fco2_ocean) 3142 ! CALL histwrite_phy(o_flx_co2_ocean_cor, fco2_ocean_cor) 3143 ! CALL histwrite_phy(o_flx_co2_land_cor, fco2_land_cor) 3144 ! CALL histwrite_phy(o_flx_co2_ff, fco2_ff) 3145 ! CALL histwrite_phy(o_flx_co2_bb, fco2_bb) 3146 !--CO2 net fluxes 3147 ! PC 3148 IF (ALLOCATED(fco2_land)) THEN 3149 CALL histwrite_phy(o_flx_co2_land, fco2_land) 3150 END IF 3151 3152 IF (ALLOCATED(fco2_ocean)) THEN 3153 CALL histwrite_phy(o_flx_co2_ocean, fco2_ocean) 3154 END IF 3155 3156 IF (ALLOCATED(fco2_ocean_cor)) THEN 3157 CALL histwrite_phy(o_flx_co2_ocean_cor, fco2_ocean_cor) 3158 END IF 3159 3160 IF (ALLOCATED(fco2_land_cor)) THEN 3161 CALL histwrite_phy(o_flx_co2_land_cor, fco2_land_cor) 3162 END IF 3163 3164 IF (ALLOCATED(fco2_ff)) THEN 3165 CALL histwrite_phy(o_flx_co2_ff, fco2_ff) 3166 END IF 3167 3168 IF (ALLOCATED(fco2_bb)) THEN 3169 CALL histwrite_phy(o_flx_co2_bb, fco2_bb) 3170 END IF 3171 3172 IF (ALLOCATED(co2_send)) THEN 3173 CALL histwrite_phy(o_co2_send, co2_send) 3174 END IF 3175 3176 ! PC 3130 3177 3131 3178 ELSE IF (type_trac == 'inco') THEN … … 3151 3198 ENDDO !--iq 3152 3199 !--CO2 net fluxes 3153 CALL histwrite_phy(o_flx_co2_land, fco2_land) 3154 CALL histwrite_phy(o_flx_co2_ocean, fco2_ocean) 3155 CALL histwrite_phy(o_flx_co2_ocean_cor, fco2_ocean_cor) 3156 CALL histwrite_phy(o_flx_co2_land_cor, fco2_land_cor) 3157 CALL histwrite_phy(o_flx_co2_ff, fco2_ff) 3158 CALL histwrite_phy(o_flx_co2_bb, fco2_bb) 3159 3200 ! << PC 3201 IF (ALLOCATED(fco2_land)) THEN 3202 CALL histwrite_phy(o_flx_co2_land, fco2_land) 3203 END IF 3204 3205 IF (ALLOCATED(fco2_ocean)) THEN 3206 CALL histwrite_phy(o_flx_co2_ocean, fco2_ocean) 3207 ELSE 3208 CALL histwrite_phy(o_flx_co2_ocean, zzero) 3209 END IF 3210 3211 IF (ALLOCATED(fco2_ocean_cor)) THEN 3212 CALL histwrite_phy(o_flx_co2_ocean_cor, fco2_ocean_cor) 3213 END IF 3214 3215 IF (ALLOCATED(fco2_land_cor)) THEN 3216 CALL histwrite_phy(o_flx_co2_land_cor, fco2_land_cor) 3217 END IF 3218 3219 IF (ALLOCATED(fco2_ff)) THEN 3220 CALL histwrite_phy(o_flx_co2_ff, fco2_ff) 3221 END IF 3222 3223 IF (ALLOCATED(fco2_bb)) THEN 3224 CALL histwrite_phy(o_flx_co2_bb, fco2_bb) 3225 END IF 3226 ! >> PC 3160 3227 ELSE IF (ANY(type_trac==['lmdz','coag'])) THEN 3161 3228 itr = 0 … … 3333 3400 ENDDO 3334 3401 3402 ! << PC 3403 ! Clean up 3404 IF (ALLOCATED(zzero)) DEALLOCATE(zzero) 3405 ! >> PC 3406 3335 3407 IF (vars_defined) THEN 3336 3408 ! On synchronise les fichiers pour IOIPSL
Note: See TracChangeset
for help on using the changeset viewer.
