<div dir="ltr">Hello Matt,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 12:18 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><span class=""></span><div>The bad design decision is using a storage format designed for high speed MatMult() to use for data interchange. You should be</div><div>using the API for value insertion rather than some storage format.</div></div></div></div></blockquote><div><br></div><div>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.<br><br></div><div>Could you suggest what I can do to resolve this?<br></div></div><br></div><div class="gmail_extra">Thanks,<br></div><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr">K.N.Ramachandran<br><div>Ph: 814-441-4279</div></div></div>
</div></div>