[petsc-users] MatCreateComposite question

Barry Smith bsmith at mcs.anl.gov
Thu Dec 13 13:40:41 CST 2012


On Dec 13, 2012, at 12:55 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> That's because the check isn't firing in optimized mode.
> 
> Barry, should MatCreate_Composite() set mat->preallocated = TRUE because preallocation is implicit for composite matrices, or should the user/MatCreateComposite() be responsible for calling MatSetUp()?

  I am fine with having it click to mat->preallocated automatically for now.

  Barry

> 
> 
> On Thu, Dec 13, 2012 at 10:47 AM, Nachiket Gokhale <gokhalen at gmail.com> wrote:
> Sorry for replying to my own question, but it seems to be working in optimized mode, but not in Debug mode, which is strange.  -Nachiket
> 



More information about the petsc-users mailing list