region_obj_Init Subroutine

private pure subroutine region_obj_Init(this, name, xlo, xhi, dir, side)

Initializes a region

Type Bound

region_obj

Arguments

Type IntentOptional 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


Calls

proc~~region_obj_init~~CallsGraph proc~region_obj_init region_obj%region_obj_Init proc~hashtbl_obj_init hashtbl_obj%hashtbl_obj_Init proc~region_obj_init->proc~hashtbl_obj_init

Called by

proc~~region_obj_init~~CalledByGraph proc~region_obj_init region_obj%region_obj_Init proc~bc_set_add bc_set%bc_set_Add proc~bc_set_add->proc~region_obj_init proc~bc_set_read bc_set%bc_set_Read proc~bc_set_read->proc~bc_set_add

Source Code

    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