[Trilinos-Users] [EXTERNAL] How to use EpetraVector as a class member

Klinvex, Alicia Marie amklinv at sandia.gov
Thu Jul 27 09:57:36 EDT 2017


You should probably store a pointer to an EpetraVector.  (It’s up to you whether it’s a standard c pointer, a boost pointer, a Teuchos::RCP, etc.)

Best wishes,

From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] On Behalf Of ztdepyahoo
Sent: Thursday, July 27, 2017 9:45 AM
To: trilinos-users <trilinos-users at trilinos.org>
Subject: [EXTERNAL] [Trilinos-Users] How to use EpetraVector as a class member

Dear group:
   I want to use EpetraVector as a class member of my class  DistributionVecto, but i find that The EpetraVector does not has a default constructor without parameter. So the following code doesn't work.
 So how to resolve this problems?
 class DistributionVector

  EpetraVector  A;


ztdepyahoo at gmail.com<mailto:ztdepyahoo at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20170727/a482b640/attachment.html>

More information about the Trilinos-Users mailing list