[Trilinos-Users] teuchos rcp delete

Bartlett, Roscoe A. bartlettra at ornl.gov
Tue Jan 15 13:08:12 MST 2013


A = Teuchos::null;

-Ross

From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Veltz Romain
Sent: Tuesday, January 15, 2013 3:05 PM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] teuchos rcp delete

Hello,

I have a big matrix Epetra_CrsMatrix I would like to get rid of.

Teuchos::RCP<Epetra_CrsMatrix> A = Teuchos::rcp(new Epetra_CrsMatrix(Copy,*Map,maxNbLR));

However I do not understand how to force Teuchos::rcp to do delete [] A.

Can anybody help me please?

Thank you,

Bests,

Romain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20130115/9936c2ef/attachment.html 


More information about the Trilinos-Users mailing list