Skip to content

Commit

Permalink
Convert _ASSERT to _FAIL for typekind check
Browse files Browse the repository at this point in the history
  • Loading branch information
darianboggs committed Jan 7, 2025
1 parent b79460d commit 2833972
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generic3g/actions/AccumulatorActionInterface.F90
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ subroutine get_accumulator_action(accumulation_type, typekind, action, rc)

integer :: status

_ASSERT(typekind == ESMF_TYPEKIND_R4, 'Unsupported typekind')
if(typekind /= ESMF_TYPEKIND_R4) then
_FAIL('Unsupported typekind')
end if

select case(accumulation_type)
case (SIMPLE_ACCUMULATION)
Expand Down

0 comments on commit 2833972

Please sign in to comment.