Skip to content

Commit

Permalink
Xpetra: Fix return types in TpetraOperator
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Glusa <[email protected]>
  • Loading branch information
cgcgcg committed Oct 10, 2024
1 parent 81cf6ed commit f521d95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/xpetra/src/Operator/Xpetra_EpetraOperator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ class EpetraInverseOperator : public Operator<double, int, EpetraGlobalOrdinal,
//@{

//! The Map associated with the domain of this operator, which must be compatible with X.getMap().
virtual Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > getDomainMap() const {
virtual const Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > getDomainMap() const {
XPETRA_MONITOR("EpetraOperator::getDomainMap()");
return toXpetra<GlobalOrdinal, Node>(op_->OperatorDomainMap());
}

//! The Map associated with the range of this operator, which must be compatible with Y.getMap().
virtual Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > getRangeMap() const {
virtual const Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > getRangeMap() const {
XPETRA_MONITOR("EpetraOperator::getRangeMap()");
return toXpetra<GlobalOrdinal, Node>(op_->OperatorRangeMap());
}
Expand Down
8 changes: 4 additions & 4 deletions packages/xpetra/src/Operator/Xpetra_TpetraOperator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ class TpetraOperator<double, int, int, EpetraNode>
//@{

//! The Map associated with the domain of this operator, which must be compatible with X.getMap().
virtual Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getDomainMap() const {
virtual const Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getDomainMap() const {
return Teuchos::null;
}

//! The Map associated with the range of this operator, which must be compatible with Y.getMap().
virtual Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getRangeMap() const {
virtual const Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getRangeMap() const {
return Teuchos::null;
}

Expand Down Expand Up @@ -199,12 +199,12 @@ class TpetraOperator<double, int, long long, EpetraNode>
//@{

//! The Map associated with the domain of this operator, which must be compatible with X.getMap().
virtual Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getDomainMap() const {
virtual const Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getDomainMap() const {
return Teuchos::null;
}

//! The Map associated with the range of this operator, which must be compatible with Y.getMap().
virtual Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getRangeMap() const {
virtual const Teuchos::RCP<const Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> > getRangeMap() const {
return Teuchos::null;
}

Expand Down

0 comments on commit f521d95

Please sign in to comment.