Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(pf_encap_t), | intent(in), | target | :: | x | ||
integer, | intent(in) | :: | n | |||
integer, | intent(in), | optional | :: | flags |
function get_array3d(x,n,flags) result(r)
class(pf_encap_t), target,intent(in) :: x
integer, intent(in) :: n
integer, intent(in ), optional :: flags
real(pfdp), pointer :: r(:,:,:)
select type (x)
type is (ndsysarray)
r(1:x%arr_shape(1),1:x%arr_shape(2),1:x%arr_shape(3)) => x%flatarray(x%ndof*(n-1)+1:x%ndof*n)
end select
end function get_array3d