Safely deallocates the boundary condition patch array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(bc_set_t), | intent(inout) | :: | bc |
subroutine finalize_bc_set(bc) type(bc_set_t), intent(inout) :: bc if (allocated(bc%patches)) deallocate(bc%patches) bc%npatches = 0 end subroutine finalize_bc_set