Closed MalachiTimothyPhillips closed 8 months ago
Automatic mention of the @trilinos/ifpack2 team
@MalachiTimothyPhillips Can you check your version of Trilinos? I think I fixed that here: https://github.com/trilinos/Trilinos/commit/523e2a54d75dad2eacfc836a67e6a41742e84ae5
@MalachiTimothyPhillips Can you check your version of Trilinos? I think I fixed that here: 523e2a5
I do not have a specific SHA to point to since we build from a tarball "snapshot" of master via spack, but it does seem those changes are present.
packages/ifpack2/src/Ifpack2_Parameters.cpp
:
// Additive Schwarz preconditioner
params.set("schwarz: compute condest", false); // mfh 24 Mar 2015: for backwards compatibility ONLY
params.set("schwarz: combine mode", "ZERO"); // use string mode for this
params.set("schwarz: use reordering", true);
params.set("schwarz: filter singletons", false);
params.set("schwarz: overlap level", 0);
params.set("schwarz: num iterations", 1);
params.set("subdomain solver name", "");
Teuchos::ParameterList dummyListSubdomain;
params.set("subdomain solver parameters",dummyListSubdomain);
params.sublist("subdomain solver parameters").disableRecursiveValidation();
If it helps, the app code usage resembles:
Teuchos::RCP<Stratimikos::DefaultLinearSolverBuilder> strat =
Teuchos::rcp(new Stratimikos::DefaultLinearSolverBuilder("",
"",
"",
"linear-solver-params-file",
"extra-linear-solver-params",
"linear-solver-params-used-file"));
Stratimikos::enableMueLu<double, LocalOrdinal, GlobalOrdinal, Node>(*strat);
Teko::addToStratimikosBuilder(strat);
// preconditioner_parameters is read from the XML file
Teuchos::RCP<Teko::InverseLibrary> invLib =
Teko::InverseLibrary::buildFromParameterList(preconditioner_parameters, strat);
// throws in this call
Teuchos::RCP<Teko::InverseFactory> inverse = invLib->getInverseFactory(myInverseFactory);
Ok, lemme see if I can reproduce this.
Ok, lemme see if I can reproduce this.
If it helps, I did manage to trace the SHA we are using to de68716d971f08d995548a6bdc37f205dbf2ba50. Let me know if you need me to create a reproducer on my end -- this is currently routed through SIERRA.
Marking as closed. Next time I should do a clean build to verify 🤦 .
Thanks, @cgcgcg!
Nice! Issue fixed without any code changes :-P
@MalachiTimothyPhillips This was through the SIERRA build process?
Automatic mention of the @trilinos/ifpack2 team
@MalachiTimothyPhillips This was through the SIERRA build process?
It is -- the first build was before a Trilinos integration including the changes in 523e2a5. The "regular" build process did not seem to catch the change. Altering the compiler flags or forcing a rebuild resolved the issue.
@trilinos/Teko @cgcgcg
It seems as if there are several Ifpack2 settings that are missing from Teko.
For example,
schwarz: num iterations
is missing.In other words, if I use the following settings:
I encounter this error:
I am not sure why I am seeing this issue -- at first glance, it looks like Teko should be getting the settings from the Ifpack2 adapter https://github.com/trilinos/Trilinos/blob/9665b8ef28ce53e3a47ad2243fdcb33b73ff49f4/packages/ifpack2/adapters/thyra/Thyra_Ifpack2PreconditionerFactory_def.hpp#L321.