Initializes a region
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(region_obj), | intent(inout) | :: | this |
A boundary region object |
||
| character(len=*), | intent(in) | :: | name |
Name of region |
||
| real(kind=wp), | intent(in) | :: | xlo(3) |
Position of low left corner |
||
| real(kind=wp), | intent(in) | :: | xhi(3) |
Position of high right corner |
||
| integer, | intent(in) | :: | dir |
Direction of normal |
||
| integer, | intent(in) | :: | side |
Side (left or right) of the cell |
pure subroutine region_obj_Init(this,name,xlo,xhi,dir,side) !> Initializes a region class(region_obj), intent(inout) :: this !! A boundary region object character(len=*), intent(in) :: name !! Name of region real(wp), intent(in) :: xlo(3) !! Position of low left corner real(wp), intent(in) :: xhi(3) !! Position of high right corner integer, intent(in) :: dir !! Direction of normal integer, intent(in) :: side !! Side (left or right) of the cell this%name = name this%xlo = xlo this%xhi = xhi this%dir = dir this%side = side call this%tbl%Initialize(BC_SET_HTBL_SIZE) return end subroutine region_obj_Init