[Trilinos-Users] fixing a CRS matrix sparsity pattern

Heroux, Michael A maherou at sandia.gov
Mon Mar 23 10:54:48 MDT 2015


Jeremy,

Probably the best thing to do is either pre-build the graph of the matrix, or retain a reference to it after building your first matrix.  You can then use the graph as the argument to the constructor, in which case the values are placed into the pre-built graph.

You can also zero out the values of the matrix (there is a method for inserting a single scalar value).  Then do the same process as above.

Mike

From: <Templeton>, Jeremy Templeton <jatempl at sandia.gov<mailto:jatempl at sandia.gov>>
Date: Monday, March 23, 2015 at 11:05 AM
To: "trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>" <trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>>
Subject: [Trilinos-Users] fixing a CRS matrix sparsity pattern

Hi there,

I have a CRS matrix whose values will change over the course of a computation, but whose sparsity pattern will not.  Is there an equivalent command to resumeFill I can use which will only allow value changes but not changes to the sparsity pattern?

Thanks,
Jeremy

--------------------------------------------------------
Jeremy A. Templeton, Ph.D.
Thermal/Fluid Sciences & Engineering
jatempl at sandia.gov<mailto:jatempl at sandia.gov>
http://tiny.sandia.gov/jatempl
925-294-1429





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150323/2ebb28b0/attachment.html>


More information about the Trilinos-Users mailing list