Skip to content

Commit

Permalink
fix restart problem with nitrogen flux history fields
Browse files Browse the repository at this point in the history
	modified:   src/physics/cam/cam_diagnostics.F90
	modified:   src/physics/cam/physpkg.F90
  • Loading branch information
fvitt committed Dec 26, 2024
1 parent 24e012d commit 82a3c9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/physics/cam/cam_diagnostics.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1906,13 +1906,6 @@ subroutine diag_export(cam_out)
call outfld('a2x_DSTDRY4', cam_out%dstdry4, pcols, lchnk)
end if

if (associated(cam_out%nhx_nitrogen_flx)) then
call outfld('a2x_NHXDEP', cam_out%nhx_nitrogen_flx, pcols, lchnk)
end if
if (associated(cam_out%noy_nitrogen_flx)) then
call outfld('a2x_NOYDEP', cam_out%noy_nitrogen_flx, pcols, lchnk)
end if

end subroutine diag_export

!#######################################################################
Expand Down
8 changes: 8 additions & 0 deletions src/physics/cam/physpkg.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,14 @@ subroutine tphysac (ztodt, cam_in, &

call clybry_fam_set( ncol, lchnk, map2chm, state%q, pbuf )

! output these here -- after updates by chem_timestep_tend or export_fields within the current time step
if (associated(cam_out%nhx_nitrogen_flx)) then
call outfld('a2x_NHXDEP', cam_out%nhx_nitrogen_flx, pcols, lchnk)
end if
if (associated(cam_out%noy_nitrogen_flx)) then
call outfld('a2x_NOYDEP', cam_out%noy_nitrogen_flx, pcols, lchnk)
end if

end subroutine tphysac

subroutine tphysbc (ztodt, state, &
Expand Down

0 comments on commit 82a3c9c

Please sign in to comment.