ndarray_setval Subroutine

public subroutine ndarray_setval(this, val, flags)

The following are the base subroutines that all encapsulations must provide

Subroutine to set array to a scalare value.

Arguments

Type IntentOptional AttributesName
class(ndarray), intent(inout) :: this
real(kind=pfdp), intent(in) :: val
integer, intent(in), optional :: flags

Contents

Source Code


Source Code

  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