This method can be used to reset all of the boundary elements boundary condition type to the desired value.
Note that ALL physical boundaries will be set to have this boundary condition
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Mesh2D_t), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | bcid |
subroutine ResetBoundaryConditionType_Mesh2D_t(this,bcid)
!! This method can be used to reset all of the boundary elements
!! boundary condition type to the desired value.
!!
!! Note that ALL physical boundaries will be set to have this boundary
!! condition
implicit none
class(Mesh2D_t),intent(inout) :: this
integer,intent(in) :: bcid
! Local
integer :: iSide,iEl,e2
do iEl = 1,this%nElem
do iSide = 1,4
e2 = this%sideInfo(3,iSide,iEl)
if(e2 == 0) then
this%sideInfo(5,iSide,iEl) = bcid
endif
enddo
enddo
call this%UpdateDevice()
endsubroutine ResetBoundaryConditionType_Mesh2D_t