[Trilinos-Users] How to copy data from one Epetra_FEVector toanother

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
Epetra_FEVector toanother
	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...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20071219/cf42eb3e/attachment.html

More information about the Trilinos-Users mailing list