Skip to content

Attempting to create Ifpack2 conditioner gets me errors about "incompatible cv-qualifiers" #13924

Answered by jjramsey
jjramsey asked this question in Q&A
Discussion options

You must be logged in to vote

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 already Teuchos::RCP<TpMatrix>.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jjramsey
Comment options

Answer selected by jjramsey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants