Skip to content

Commit

Permalink
Xpetra EpetraCrsGraph: Fix getLocalGraphHost
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Feb 1, 2022
1 parent e0ce0a4 commit 3b44c8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/xpetra/src/CrsGraph/Xpetra_EpetraCrsGraph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class EpetraCrsGraphT
typename local_graph_type::HostMirror getLocalGraphHost () const {
TEUCHOS_TEST_FOR_EXCEPTION(true, Xpetra::Exceptions::NotImplemented,
"Xpetra::EpetraCrsGraph only available for GO=int or GO=long long with EpetraNode (Serial or OpenMP depending on configuration)");
TEUCHOS_UNREACHABLE_RETURN((local_graph_type()));
TEUCHOS_UNREACHABLE_RETURN((local_graph_type::HostMirror()));
}
#else
#ifdef __GNUC__
Expand Down Expand Up @@ -1203,10 +1203,10 @@ class EpetraCrsGraphT<long long, EpetraNode>

#ifdef HAVE_XPETRA_KOKKOS_REFACTOR
#ifdef HAVE_XPETRA_TPETRA
local_graph_type getLocalGraphHost () const {
typename local_graph_type::HostMirror getLocalGraphHost () const {
TEUCHOS_TEST_FOR_EXCEPTION(true, Xpetra::Exceptions::NotImplemented,
"Epetra does not support Kokkos::StaticCrsGraph!");
TEUCHOS_UNREACHABLE_RETURN((local_graph_type()));
TEUCHOS_UNREACHABLE_RETURN((local_graph_type::HostMirror()));
}
#else
#ifdef __GNUC__
Expand Down

0 comments on commit 3b44c8e

Please sign in to comment.