.true. iff the closure is LMIX_LEITH_BIHARM and smag_ah is
on — both would fill nu4_face_* and smag_ah runs last, so it
would silently overwrite the Leith-biharmonic fill (we do not
max-combine biharmonic closures). Drives a fail-loud guard.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | code | |||
| logical, | intent(in) | :: | smag_ah |
pure function lateral_closure_conflicts_smag_ah(code, smag_ah) result(conflict) !! `.true.` iff the closure is `LMIX_LEITH_BIHARM` and `smag_ah` is !! on — both would fill `nu4_face_*` and `smag_ah` runs last, so it !! would silently overwrite the Leith-biharmonic fill (we do not !! max-combine biharmonic closures). Drives a fail-loud guard. integer, intent(in) :: code logical, intent(in) :: smag_ah logical :: conflict conflict = (code == LMIX_LEITH_BIHARM) .and. smag_ah end function lateral_closure_conflicts_smag_ah