[Trilinos-Users] run time changing matrix

Williams, Alan B william at sandia.gov
Mon May 4 11:49:02 MDT 2009


Lucia,

The structure of an Epetra matrix can't change after FillComplete has been called.

We have some applications which require changing the structure of the matrix, and we destroy and recreate the matrix when that is necessary.

If your structural changes are minor, and the number of rows stays constant, it may be possible to pad your matrix a little bit and store zeros for elements that are not in use.

Alan


> -----Original Message-----
> From: trilinos-users-bounces at software.sandia.gov 
> [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf 
> Of Lucia Mirabella
> Sent: Thursday, April 30, 2009 5:35 PM
> To: trilinos-users at software.sandia.gov
> Subject: [Trilinos-Users] run time changing matrix
> 
> Hello,
> 
> I need to use in my code an Epetra_FECrsMatrix that changes 
> during the 
> execution of the code. In particular the pattern of the 
> matrix may vary 
> at different time steps, increasing or decreasing the number 
> of non-zero 
> elements. In general this number is quite small.
> 
> Could you please suggest me the most efficient way (in terms 
> of memory 
> usage and CPU time to solve the linear system) to implement 
> this feature?
> 
> Thank you,
> 
> Lucia
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
> 


More information about the Trilinos-Users mailing list