[Trilinos-Users] How to copy data from one Epetra_FEVector
Williams, Alan B
william at sandia.gov
Wed Dec 19 10:16:27 MST 2007
You should be able to do it with an Epetra_Import object.
Something like this:
Epetra_FEVector& source = ...
Epetra_FEVector& target = ...
Epetra_Import importer(target.Map(), source.Map());
target.Import(source, importer, Insert);
From: trilinos-users-bounces at software.sandia.gov
[mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Davood
Sent: Wednesday, December 19, 2007 10:03 AM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] How to copy data from one
I have two vectors ( Epetra_FEVectors of equal lengths)
constructed under different conditions and from different maps.
What I need is an efficient way to copy the data from one
vector to another. Note that I cannot construct the second
vector using a copy type constructor from the first one. What I
need is only the data from the first vector.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Trilinos-Users