[Trilinos-Users] get epetra_map from epetra_multivector

Bartlett, Roscoe A. bartlettra at ornl.gov
Mon Mar 18 07:29:02 MDT 2013


Because of the closed Epetra handle layer, I believe you can't dynamically cast from Epetra_BlockMap to Epetra_Map.

-Ross


> -----Original Message-----
> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-
> bounces at software.sandia.gov] On Behalf Of Baker, Christopher G.
> Sent: Monday, March 18, 2013 8:51 AM
> To: Sunghwan Choi; trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] get epetra_map from epetra_multivector
> 
> Because it is possible that any given Epetra_MultiVector object was
> constructed from a Epetra_BlockMap that is not an Epetra_Map, it is not
> possible for Epetra_MultiVector to give you an Epetra_Map. However, if you
> know that the map given to the multivector was an Epetra_Map, then you
> can dynamically cast it to one.
> 
> Why is it that you want to have the Epetra_Map object?
> 
> Chris
> 
> From: Sunghwan Choi
> <sunghwanchoi91 at gmail.com<mailto:sunghwanchoi91 at gmail.com>>
> Date: Monday, March 18, 2013 8:21 AM
> To: "trilinos-users at software.sandia.gov<mailto:trilinos-
> users at software.sandia.gov>" <trilinos-
> users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>>
> Subject: [Trilinos-Users] get epetra_map from epetra_multivector
> 
> Hi,
> I want to find the methods, which get Epetra_Map from Epetra_MultiVector.
> I currently used .Map() such as
> 
> Epetra_MultiVector_object.Map()
> 
> This returns not Epetra_Map but Epetra_BlockMap. Then I should change
> Epetra_BlockMap to Epetra_Map. As far as I know, it is impossible.
> Please help me.
> 
> Sincerely
> Sunghwan Choi
> 
> 
> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users





More information about the Trilinos-Users mailing list