Skip to content

Commit

Permalink
Convert cmfmc_dp to kg m-2 s-1 within ZM scheme for consistent units …
Browse files Browse the repository at this point in the history
…with snapshot
  • Loading branch information
jimmielin committed Jan 30, 2025
1 parent 4d4ca68 commit ffeb80b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions schemes/sima_diagnostics/zm_diagnostics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ subroutine zm_diagnostics_run(ncol, pver, pverp, ideep, cpair, prec, cape, gravi
end do
call history_out_field('FREQZM ',freqzm)

! Convert from hPa s-1 to kg m-2 s-1
mcon(:ncol,:pverp) = mcon(:ncol,:pverp) * 100._kind_phys/gravit

call history_out_field('CMFMC_DP', mcon)


Expand Down
2 changes: 1 addition & 1 deletion schemes/sima_diagnostics/zm_diagnostics.meta
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
intent = in
[ mcon ]
standard_name = atmosphere_convective_mass_flux_due_to_deep_convection
units = hPa s-1
units = kg m-2 s-1
type = real | kind = kind_phys
dimensions = (horizontal_loop_extent,vertical_interface_dimension)
intent = inout
Expand Down
3 changes: 3 additions & 0 deletions schemes/zhang_mcfarlane/zm_convr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,9 @@ subroutine zm_convr_run( ncol ,pver , &
rliq(:ncol) = rliq(:ncol) /1000._kind_phys
rice(:ncol) = rice(:ncol) /1000._kind_phys

! Convert mass flux from reported mb s-1 to kg m-2 s-1
mcon(:ncol,:pverp) = mcon(:ncol,:pverp) * 100._kind_phys / gravit

return
end subroutine zm_convr_run

Expand Down
2 changes: 1 addition & 1 deletion schemes/zhang_mcfarlane/zm_convr.meta
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
intent = in
[ mcon ]
standard_name = atmosphere_convective_mass_flux_due_to_deep_convection
units = hPa s-1
units = kg m-2 s-1
type = real | kind = kind_phys
dimensions = (horizontal_loop_extent,vertical_interface_dimension)
intent = out
Expand Down

0 comments on commit ffeb80b

Please sign in to comment.