Skip to content

Commit

Permalink
default version of enthalpy fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterHjortLauritzen committed Jul 29, 2024
1 parent 7e73102 commit 8ac1716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/physics/cam/check_energy.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,9 @@ subroutine enthalpy_adjustment(ncol, lchnk, state, cam_in, pbuf, ztodt, itim_old
!
! state%te_cur(:ncol,dyn_te_idx) holds te_endphys(:ncol)
!
state%te_cur(:ncol,dyn_te_idx) = state%te_cur(:ncol,dyn_te_idx)+ztodt*enthalpy_flux_tot(:ncol)
! ocnfrac: for now apply fixer
!
state%te_cur(:ncol,dyn_te_idx) = state%te_cur(:ncol,dyn_te_idx)+ztodt*enthalpy_flux_tot(:ncol)*cam_in%ocnfrac(:ncol)
call pbuf_set_field(pbuf, teout_idx, state%te_cur(:,dyn_te_idx), (/1,itim_old/),(/pcols,1/))
!
! the amount of total energy we need energy fixer to fix (associated with enthalpy flux)
Expand Down

0 comments on commit 8ac1716

Please sign in to comment.