[petsc-users] How Efficiently copy matrices

behzad baghapour behzad.baghapour at gmail.com
Sat Oct 1 02:33:13 CDT 2011


Dear all,

I want to copy some elements of a calculated matrix (A) into another matrix
(B) with DIFFERENT_NONZERO_PATTERN.
How could I efficiently do this?
Is this should be done after or before matrix assembly of (A)?
Then, what is the sparse pattern of the matrix (A) after assembling and how
is the correct access into its elements?
Thanks,
Behzad

-- 
==================================
Behzad Baghapour
Ph.D. Candidate, Mechecanical Engineering
University of Tehran, Tehran, Iran
https://sites.google.com/site/behzadbaghapour
Fax: 0098-21-88020741
==================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111001/72c6fe08/attachment.htm>


More information about the petsc-users mailing list