Rows a stagger moves per column: ng (T, u) or ng+1 (v, corner:
the fold-line row is always sent, the receiver uses it only where
recv_cls == FOLD_ROW_WEST).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | stagger |
|
||
| integer, | intent(in) | :: | ng |
Ghost width. |
pure integer function fold_stagger_nrows(stagger, ng) result(nrow) !! Rows a stagger moves per column: `ng` (T, u) or `ng+1` (v, corner: !! the fold-line row is always sent, the receiver uses it only where !! `recv_cls == FOLD_ROW_WEST`). integer, intent(in) :: stagger !! `FOLD_STAG_*` stagger. integer, intent(in) :: ng !! Ghost width. if (stagger == FOLD_STAG_V .or. stagger == FOLD_STAG_CORNER) then nrow = ng + 1 else nrow = ng end if end function fold_stagger_nrows