Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #4616

Closed
Open
Created Mar 13, 2019 by James Willenbring@jmwilleMaintainer

Thyra_TpetraVectorSpace to expose getter for underlying Tpetra object

Created by: bartgol

@trilinos/tpetra @trilinos/thyra

Expectations

I want to be able to extract the underlying Tpetra map from a vector space

Current Behavior

You can't.

Motivation and Context

The Tpetra adapter offer the possibility to extract the Tpetra object for Vector, MultiVector, and LinearOp. However, such capability does not exist for VectorSpace. This is unfortunate. For (Multi)Vector, one can survive without this capability (at least on host), since there are methods in parent classes that allow extraction of local data or subviews. However, there is no Thyra equivalent of Global ID and Local ID, so one needs to get the underlying map from Thyra, in order to access that information.

Possible Solution

Simply add a method like this (copied and adapted from other adapters):

  /** \brief Get the embedded non-const Tpetra::Vector. */
  RCP<const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> >
  getConstTpetraMap() const;

I can set up a quick PR for this, if the proposed addition is deemed reasonable. I can also add a quick check in the tpetra adapters tests.

Assignee
Assign to
Time tracking