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

Called by

proc~~finalize_bc_set~~CalledByGraph proc~finalize_bc_set mod_bc::finalize_bc_set proc~build_bc_set mod_bc::build_bc_set proc~build_bc_set->proc~finalize_bc_set program~lowmach_react_hex lowmach_react_hex program~lowmach_react_hex->proc~finalize_bc_set program~lowmach_react_hex->proc~build_bc_set

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