ROL: Explicitly uses GlobalOrdinal=int with Tpetra, doesn't need to #1585
Labels
CLOSED_DUE_TO_INACTIVITY
Issue or PR has been closed by the GitHub Actions bot due to inactivity.
MARKED_FOR_CLOSURE
Issue or PR is marked for auto-closure by the GitHub Actions bot.
pkg: ROL
@trilinos/rol
Line 292 of
rol/example/PDE-OPT/TOOLS/assembler.hpp
(in Trilinos develop) explicitly callsTpetra::createOneToOne<int,int>
. This forces use ofGlobalOrdinal = int
. See #74 for why we don't want this.The line is easy to fix: just do this:
That is, let
createOneToOne
deduce its template parameters on its own. It can do so by looking at the input argument.There are a few other places in the file that force this constraint, e.g., line 231:
(replace
int
withGO
and defineGO
asTpetra::Map<>::global_ordinal_type
).The text was updated successfully, but these errors were encountered: