[petsc-users] MatGetSubMatrix for a Nested matrix
Jed Brown
jed at jedbrown.org
Tue Aug 12 12:17:48 CDT 2014
Khai Hong Pham <khaipham at utexas.edu> writes:
> Thank you for your information, Matt. I'm using both nested matrix and
> nested vector. Is the nested vector good to use ?
VecNest is far worse than MatNest. Do not use it under any
circumstances. Less than 1% of people that think they have run out of
options and absolutely must use VecNest have any business using it.
Always make your code work without MatNest first. Check that the
answers make sense, then profile to see where memory and time is spent.
If you are preconditioning with fieldsplit and excessive memory and time
is spent in MatGetSubMatrix(), use -prefix_mat_type nest as an
optimization.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140812/6bf90e91/attachment.pgp>
More information about the petsc-users
mailing list