directInit Module Subroutine

pure module subroutine directInit(this, array, dims)

Initializes the data based on an already flat array. Requires dimensions/shape to be explicitly passed

Arguments

Type IntentOptional Attributes Name
class(FlatNDData), intent(inout) :: this
real(kind=rk), intent(in), dimension(:) :: array
integer(kind=ik), intent(in), dimension(:) :: dims