Skip to content

Commit fa86482

Browse files
adding back a line that was mistakenly deleted in a previous commit (#166)
1 parent d6bfc15 commit fa86482

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/fv_diagnostics.F90

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ module fv_diagnostics_mod
118118
use time_manager_mod, only: time_type, get_date, get_time
119119
use mpp_domains_mod, only: domain2d, mpp_update_domains, DGRID_NE, NORTH, EAST
120120
use diag_manager_mod, only: diag_axis_init, register_diag_field, &
121-
register_static_field, send_data, diag_grid_init
121+
register_static_field, send_data, diag_grid_init, &
122+
diag_field_add_attribute
122123
use fv_arrays_mod, only: fv_atmos_type, fv_grid_type, fv_diag_type, fv_grid_bounds_type, &
123124
R_GRID
124125
use fv_mapz_mod, only: E_Flux, moist_cv, moist_cp, mappm
@@ -534,6 +535,9 @@ subroutine fv_diag_init(Atm, axes, Time, npx, npy, npz, p_ref)
534535
'latitude', 'degrees_N' )
535536
id_area = register_static_field ( trim(field), 'area', axes(1:2), &
536537
'cell area', 'm**2' )
538+
if (id_area > 0) then
539+
call diag_field_add_attribute (id_area, 'cell_methods', 'area: sum')
540+
endif
537541
id_dx = register_static_field( trim(field), 'dx', (/id_xt,id_y/), &
538542
'dx', 'm')
539543
id_dy = register_static_field( trim(field), 'dy', (/id_x,id_yt/), &

0 commit comments

Comments
 (0)