Return .true. if a box has children
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mg_box_t), | intent(in) | :: | box |
elemental logical function mg_has_children(box) type(mg_box_t), intent(in) :: box ! Boxes are either fully refined or not, so we only need to check one of the ! children mg_has_children = (box%children(1) /= mg_no_box) end function mg_has_children