Skip to content

Commit

Permalink
Merge pull request #14 from CommerceGov/user/aja/diag_bugfix
Browse files Browse the repository at this point in the history
Bugfix: uo,vo diagnostics were registered on B grid
  • Loading branch information
Hallberg-NOAA committed Mar 3, 2015
2 parents 3573020 + bdb3c42 commit d4252ef
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ice_type.F90
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ module ice_type_mod
real, pointer, dimension(:,:) :: mi => NULL() ! The total ice+snow mass, in kg m-2.
! mi is needed for the wave model. It is introduced here,
! because flux_ice_to_ocean cannot handle 3D fields. This may be
! removed, if the information on ice thickness can be derived from
! eventually from h_ice outside the ice module.
! removed, if the information on ice thickness can be derived from
! eventually from h_ice outside the ice module.
integer, dimension(3) :: axes
type(coupler_3d_bc_type) :: ocean_fields ! array of fields used for additional tracers
type(coupler_2d_bc_type) :: ocean_fluxes ! array of fluxes used for additional tracers
Expand Down Expand Up @@ -1110,10 +1110,17 @@ subroutine ice_diagnostics_init(Ice, IST, G, diag, Time)
'Ice Limit heat flux', 'W/m^2', missing_value=missing)
IST%id_strna = register_SIS_diag_field('ice_model','STRAIN_ANGLE', diag%axesT1,Time, &
'strain angle', 'none', missing_value=missing)
IST%id_uo = register_SIS_diag_field('ice_model', 'UO', diag%axesB1, Time, &
if (IST%Cgrid_dyn) then
IST%id_uo = register_SIS_diag_field('ice_model', 'UO', diag%axesCu1, Time, &
'surface current - x component', 'm/s', missing_value=missing)
IST%id_vo = register_SIS_diag_field('ice_model', 'VO', diag%axesB1, Time, &
IST%id_vo = register_SIS_diag_field('ice_model', 'VO', diag%axesCv1, Time, &
'surface current - y component', 'm/s', missing_value=missing)
else
IST%id_uo = register_SIS_diag_field('ice_model', 'UO', diag%axesB1, Time, &
'surface current - x component', 'm/s', missing_value=missing)
IST%id_vo = register_SIS_diag_field('ice_model', 'VO', diag%axesB1, Time, &
'surface current - y component', 'm/s', missing_value=missing)
endif
IST%id_sw_vis = register_SIS_diag_field('ice_model','SW_VIS' ,diag%axesT1, Time, &
'visible short wave heat flux', 'W/m^2', missing_value=missing)
IST%id_sw_dir = register_SIS_diag_field('ice_model','SW_DIR' ,diag%axesT1, Time, &
Expand Down

0 comments on commit d4252ef

Please sign in to comment.