| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(bc_set), | intent(in) | :: | this |
Boundary conditions utility |
||
| character(len=*), | intent(in) | :: | region |
Region name |
||
| integer, | intent(out) | :: | side |
Side (=BC_LEFT,BC_RIGHT) |
||
| integer, | intent(out) | :: | dir |
Direction (=1,2,3,) |
pure subroutine bc_set_GetSideDirByRegion(this,region,side,dir) ! Finds the direction and side from a region given by name. class(bc_set), intent(in) :: this !! Boundary conditions utility character(len=*), intent(in) :: region !! Region name integer, intent(out) :: dir !! Direction (=1,2,3,) integer, intent(out) :: side !! Side (=BC_LEFT,BC_RIGHT) ! Work variable integer :: ind ind = this%GetRegionIndex(region) side = this%region(ind)%side dir = this%region(ind)%dir return end subroutine bc_set_GetSideDirByRegion