finalize_bc_set Subroutine

public subroutine finalize_bc_set(bc)

Safely deallocates the boundary condition patch array.

Arguments

Type IntentOptional Attributes Name
type(bc_set_t), intent(inout) :: bc

Source Code

   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