PyTrilinos: build fails when Epetra, NOX enabled, but not Ifpack
Created by: wfspotz
When PyTrilinos, Epetra, and NOX are enabled, but Ifpack is not, PyTrilinos should build without error. The
NOX.Epetra module should NOT be enabled, consistent with NOX.
The build fails because NOX does not enable
NOX::Epetra, but PyTrilinos tries to wrap these interfaces.
Motivation and Context
A user tried to build with this combination and ran into the failed build. PyTrilinos should be checking the
NOX_ENABLE_ABSTRACT_IMPLEMENTATION_EPETRA Cmake variable.
Definition of Done
Rework the PyTrilinos configuration logic to check
Test that the above-mentioned combination of packages builds cleanly
Test that the
NOX.Epetramodule is not enabled
Test that enabled PyTrilinos tests pass
Test that when proper packages ARE enabled, that
NOX.Epetradoes get enabled and that tests pass
N.B. Both AztecOO and Amesos have to be enabled for the last step to work.
Steps to Reproduce
- Write a cmake script that disables all packages except PyTrilinos, Epetra, and NOX
- Verify build failure