[petsc-dev] MatSetValues with v=0
Jed Brown
jed at jedbrown.org
Wed Apr 16 09:02:46 CDT 2014
Eric Chamberland <Eric.Chamberland at giref.ulaval.ca> writes:
> I have a new question now : what would be the fastest way to do the
> first assembly: with INSERT_VALUES or ADD_VALUES? Right now we are
> doing ADD_VALUES but I imagine it have to hold all the "0" which will be
> "added" later... maybe "INSERT_VALUES" will forget about overlapping
> values??...
It makes no difference.
> Anyway, the code I am rewriting now will hold all the non-zeros for
> each "block" of similar lines... so I don't have overlapping
> values... in sequential... but in parallel I think I will have
> some... Anyway, any pros/cons between INSERT_VALUES or ADD_VALUES for
> this first assembly?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140416/3941f05f/attachment.sig>
More information about the petsc-dev
mailing list