.true. only for a bottom-drag variant with a real kernel
(BDRAG_LINEAR / BDRAG_QUADRATIC). BDRAG_INVALID returns
.false.. The single gate validate_config consumes (PR-6).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | code |
pure function bdrag_variant_is_implemented(code) result(ok) !! `.true.` only for a bottom-drag variant with a real kernel !! (`BDRAG_LINEAR` / `BDRAG_QUADRATIC`). `BDRAG_INVALID` returns !! `.false.`. The single gate `validate_config` consumes (PR-6). integer, intent(in) :: code logical :: ok ok = (code == BDRAG_LINEAR) .or. (code == BDRAG_QUADRATIC) end function bdrag_variant_is_implemented