.true. when the COMPILED NZ_STACK_MAX covers nz layers.
Callers that get .false. must refuse the run — the overflow is
a silent thread-local-storage overrun, not a crash.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nz |
pure function nz_stack_is_sufficient(nz) result(ok) !! `.true.` when the COMPILED `NZ_STACK_MAX` covers `nz` layers. !! Callers that get `.false.` must refuse the run — the overflow is !! a silent thread-local-storage overrun, not a crash. integer, intent(in) :: nz logical :: ok ok = nz_stack_required(nz) <= NZ_STACK_MAX end function nz_stack_is_sufficient