Subroutine to print the array to the screen (mainly for debugging purposes)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ndarray), | intent(inout) | :: | this | |||
integer, | intent(in), | optional | :: | flags |
subroutine ndarray_eprint(this,flags)
class(ndarray), intent(inout) :: this
integer, intent(in ), optional :: flags
! Just print the first few values
print *, this%flatarray(1:10)
end subroutine ndarray_eprint