-
I'm trying to initialize a preconditioner Ifpack2::Factory precondFactory;
Teuchos::RCP<Ifpack2::Preconditioner<Sc_type, LO_type, GO_type> >
precond = precondFactory.create(precondType, Kglobal); where Teuchos::RCP<TpMatrix> Kglobal(new TpMatrix(graph)); and The mess of errors that I get when I try to compile looks like this:
What jumps out at me from this mess is Any idea what's going on and how I might fix it? @trilinos/ifpack2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could try with
|
Beta Was this translation helpful? Give feedback.
Actually, what I found allowed things to at least compile was this:
Teuchos::RCP<Ifpack2::Preconditioner<Sc_type, LO_type, GO_type> > precond = precondFactory.create(precondType, Teuchos::rcp_implicit_cast<const TpMatrix>(Kglobal));
Again, note that the type of
Kglobal
was alreadyTeuchos::RCP<TpMatrix>
.