[Trilinos-Users] Anasazi getSolusion

Hoemmen, Mark mhoemme at sandia.gov
Mon Mar 25 15:38:21 MDT 2013


On Mar 25, 2013, at 12:00 PM, <trilinos-users-request at software.sandia.gov>
 wrote:
> Message: 5
> Date: Mon, 25 Mar 2013 23:16:54 +0900
> From: "Sunghwan Choi" <sunghwanchoi91 at gmail.com>
> Subject: [Trilinos-Users] Anasazi getSolusion
> To: trilinos-users at software.sandia.gov
> Message-ID: <025401ce2963$6a2a20d0$3e7e6270$@gmail.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi,
> 
> I want to get eigenvector from the class which contains eigensolver. 
> If I put Teuchos::RCP<Epetra_MultiVector> as argument and do below codes
> 
> ////////make object of solution class
> 
> Anasazi::Eigensolution<double, Epetra_MultiVector> sol =
> MyProblem->getSolution();
> 
> //////// eigenvector is argument of this function
> 
> eigenvector =  (sol.Evecs);
> 
> Epetra_MultiVector is not copied as far as I tested. I don't know how to
> copy eigenvector to other class 

RCP is just a pointer.  Epetra_MultiVector has a copy constructor and an assignment operator (operator=).

mfh


More information about the Trilinos-Users mailing list