Fetches a pointer to the val array describing the Dirichlet or Neumann BC of a given variable on a given region.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(bc_set), | intent(in) | :: | this |
Boundary conditions utility |
||
| character(len=*), | intent(in) | :: | region |
Region name |
||
| character(len=*), | intent(in) | :: | var |
Variable name |
||
| real(kind=wp), | intent(inout), | pointer | :: | val(:,:,:) |
Pointer |
impure subroutine bc_set_GetBCPointer(this,region,var,val) !> Fetches a pointer to the val array describing the Dirichlet or ! Neumann BC of a given variable on a given region. class(bc_set), intent(in) :: this !! Boundary conditions utility character(len=*), intent(in) :: region !! Region name character(len=*), intent(in) :: var !! Variable name real(wp), pointer, intent(inout):: val(:,:,:) !! Pointer ! Work variable integer :: ind_reg integer :: ind_var if (associated(val)) val => null() ind_reg = this%GetRegionIndex(region) ind_var = this%region(ind_reg)%GetBCIndex(var) val => this%region(ind_reg)%BC(ind_var)%val return end subroutine bc_set_GetBCPointer