The following are the base subroutines that all encapsulations must provide
Subroutine to set array to a scalare value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ndarray), | intent(inout) | :: | this | |||
real(kind=pfdp), | intent(in) | :: | val | |||
integer, | intent(in), | optional | :: | flags |
subroutine ndarray_setval(this, val, flags)
class(ndarray), intent(inout) :: this
real(pfdp), intent(in ) :: val
integer, intent(in ), optional :: flags
this%flatarray = val
end subroutine ndarray_setval