Piro: No-MPI ("SERIAL") build fails due to use of `MPI_Comm`
Created by: mhoemmen
@trilinos/piro
Trilinos' no-MPI ("SERIAL") build fails with the following build error:
/scratch/trilinos/workspace/trilinos-folder/Trilinos_generic_nightly@2/SERIAL_Release_gcc_4.9.3__DEV/Trilinos/packages/piro/test/MockModelEval_A_Tpetra.hpp:86:32: error: ‘MPI_Comm’ does not name a type
MockModelEval_A_Tpetra(const MPI_Comm appComm);
It's not legal to use MPI_*
types if MPI is not enabled.
Possible Solution
- Protect use of
MPI_*
types with the appropriate macro, or - use a wrapper like
Teuchos::Comm
.