[petsc-users] [petsc-maint #107932] run a simple example ex19 in src/snes/examples/tutorials
Jed Brown
jedbrown at mcs.anl.gov
Fri Mar 16 11:09:48 CDT 2012
2012/3/16 Xiangze Zeng <zengshixiangze at 163.com>
> I replace MATAIJCUSP with MATMPIAIJCUSP. It works well. The attachments
> are the outputs of log_summary.
> MATAIJCUSP is used for serial matrices?
>
MATAIJCUSP automatically chooses MATSEQAIJCUSP if on serial communicator
and MATMPIAIJCUSP if on a parallel communicator. Practically speaking,
either will work, but when you run in serial, there is more overhead going
through the MPIAIJCUSP container and fewer preconditioners will be
available. So it's better to call bath MatSeqAIJSetPreallocation() and
MatMPIAIJSetPreallocation().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120316/437a1566/attachment.htm>
More information about the petsc-users
mailing list