TrilinosCouplings scaling/example_Poisson2D_p2_tpetra.cpp failes to build in serial
Created by: bartlettroscoe
Next Action Status
The example scaling/example_Poisson2D_p2_tpetra.cpp was never intended for non-MPI builds so was marked with "COMM mpi".
CC: @trilinos/framework
Description:
I am trying to build all of the ST Trilinos packages in several different build configurations as part of setting up a standard SEMS Dev Env (see #158 (closed)) and the TrilinosCouplings file:
examples/scaling/example_Poisson2D_p2_tpetra.cpp
does not build in a serial build of the code. When you configure and build with:
$ cd Trilinos/
$ mkdir BUILD/
$ cd BUILD/
$ cmake \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
-DTrilinos_ENABLE_DEBUG=ON \
-DTrilinos_ENABLE_TESTS=ON \
-DTrilinos_ENABLE_TrilinosCouplings=ON \
..
$ make
you get the build failure:
[100%] Building CXX object packages/trilinoscouplings/examples/scaling/CMakeFiles/TrilinosCouplings_Example_Poisson2D_p2_tpetra.dir/example_Poisson2D_p2_tpetra.cpp.o
/home/rabartl/Trilinos.base/Trilinos/packages/trilinoscouplings/examples/scaling/example_Poisson2D_p2_tpetra.cpp: In function ‘int main(int, char**)’:
/home/rabartl/Trilinos.base/Trilinos/packages/trilinoscouplings/examples/scaling/example_Poisson2D_p2_tpetra.cpp:1200:46: error: ‘uCoeff’ was not declared in this scope
ArrayRCP<const scalar_type> uCoeffData = uCoeff.getData(0);
^
make[2]: *** [packages/trilinoscouplings/examples/scaling/CMakeFiles/TrilinosCouplings_Example_Poisson2D_p2_tpetra.dir/example_Poisson2D_p2_tpetra.cpp.o] Error 1
make[1]: *** [packages/trilinoscouplings/examples/scaling/CMakeFiles/TrilinosCouplings_Example_Poisson2D_p2_tpetra.dir/all] Error 2
make: *** [all] Error 2
Since TrilinosCouplings has not been building in a long time (see #19), I am sure that this error went unnoticed.