-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ifpack2: Error for factory create #4459
Comments
@freaklovesmango Try changing the definition of
|
@freaklovesmango Note that if you create the matrix with the row and column Map the same, then you're constraining the matrix to be block diagonal, where each block is an MPI process. |
@jhux2 I forgot to show this part of my code but I did include this.
@mhoemmen thanks but this was intended because it is symmetric and also I do not use MPI/ only one MPI process. Any other ideas maybe? I also edited my post with the notes followed by the error message. |
@freaklovesmango What are your LocalOrdinal and GlobalOrdinal types? Can you supply a self-contained example that reproduces the error? |
@freaklovesmango wrote:
Ah, I think I remember that conversation with you on GitHub. It's OK then :-) |
@jhux2 I defined them like this:
An example should roughly be like this:
|
@freaklovesmango You shouldn't have to call prec = factory.create (precName, Teuchos::rcp_const_cast (A)); |
@mhoemmen I tried without rcp which did not work. Also, the cast seems to be inappropriate...
I am not sure if I use the method properly? |
@freaklovesmango My bad, I forgot about the key detail of the cast: prec = factory.create (precName, Teuchos::rcp_const_cast<const crs_type> (A)); |
@mhoemmen It worked! Thank you! |
I wanted to use the Preconditioner from Ifpack2 for Belos and Tpetra but I got the following error
Edit: The following includes the notes:
My code is based on this example here: https://trilinos.org/docs/dev/packages/ifpack2/doc/html/classIfpack2_1_1Factory.html#aa19b22421fb0aeebe7a30d025b662aa6
This is (basically) my actual code:
The text was updated successfully, but these errors were encountered: