Hello Matt,

On Thu, Oct 15, 2015 at 12:18 PM, Matthew Knepley <[email protected]> wrote:

>
> The bad design decision is using a storage format designed for high speed
> MatMult() to use for data interchange. You should be
> using the API for value insertion rather than some storage format.
>

Ok, noted. Instead of using CreateMatSeqAIJWithArrays, I have also tried
setting up the Mat passed into the ComputeMatrix function, using
MatSetValue where the cols and values are referred to values in the CSR
format, but I still get the same error. It looks like the Mat is not
preallocated properly in the DM, even when I use DMDACreate3d.

Could you suggest what I can do to resolve this?

Thanks,
K.N.Ramachandran
Ph: 814-441-4279

Reply via email to