This routine append a array of points to growing array of points
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_grwPoints_type), | intent(inout) | :: | me |
Growing array of points in each dimension |
||
real(kind=rk), | intent(in) | :: | val(:,:) |
Array of points to append |
subroutine append_vectorPnt2grwPoints(me, val) !--------------------------------------------------------------------------- !> Growing array of points in each dimension type(tem_grwPoints_type), intent(inout) :: me !> Array of points to append real(kind=rk), intent(in) :: val(:,:) !--------------------------------------------------------------------------- ! Expect points in shape(n,3) if not terminate if (size(val,dim=2)/=3) then write(logUnit(1),*) 'Error: Appending array of points to 1D growing' write(logUnit(1),*) ' array. Expects shape (n,3)' call tem_abort() end if call append(me = me%coordX, val = val(:,1)) call append(me = me%coordY, val = val(:,2)) call append(me = me%coordZ, val = val(:,3)) end subroutine append_vectorPnt2grwPoints