STK IO 'class Ioss::Region' has no member named 'mesh_type'
Created by: marchdf
My current build of Trilinos breaks on the following error:
[ 91%] Building CXX object packages/stk/stk_io/stk_io/CMakeFiles/stk_io.dir/InputFile.cpp.o
In file included from /home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_mesh/stk_mesh/base/BucketConnectivity.hpp:39:0,
from /home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_mesh/stk_mesh/base/Bucket.hpp:40,
from /home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_mesh/stk_mesh/base/FieldBase.hpp:39,
from /home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:44:
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp: In constructor ‘stk::io::InputFile::InputFile(Teuchos::RCP<Ioss::Region>)’:
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:137:33: error: ‘class Ioss::Region’ has no member named ‘mesh_type’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_util/stk_util/environment/ReportHandler.hpp:227:12: note: in definition of macro ‘ThrowGenericCond’
if ( !(expr) ) { \
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:137:7: note: in expansion of macro ‘ThrowErrorMsgIf’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:137:54: error: ‘Ioss::MeshType’ has not been declared
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_util/stk_util/environment/ReportHandler.hpp:227:12: note: in definition of macro ‘ThrowGenericCond’
if ( !(expr) ) { \
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:137:7: note: in expansion of macro ‘ThrowErrorMsgIf’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:138:39: error: ‘class Ioss::Region’ has no member named ‘mesh_type_string’
"Mesh type is '" << m_region->mesh_type_string() << "' which is not supported. "
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_util/stk_util/environment/ReportHandler.hpp:229:46: note: in definition of macro ‘ThrowGenericCond’
stk_util_internal_throw_require_oss << message; \
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:137:7: note: in expansion of macro ‘ThrowErrorMsgIf’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp: In member function ‘void stk::io::InputFile::create_ioss_region()’:
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:155:28: error: ‘class Ioss::Region’ has no member named ‘mesh_type’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_util/stk_util/environment/ReportHandler.hpp:227:12: note: in definition of macro ‘ThrowGenericCond’
if ( !(expr) ) { \
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:155:2: note: in expansion of macro ‘ThrowErrorMsgIf’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:155:49: error: ‘Ioss::MeshType’ has not been declared
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_util/stk_util/environment/ReportHandler.hpp:227:12: note: in definition of macro ‘ThrowGenericCond’
if ( !(expr) ) { \
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:155:2: note: in expansion of macro ‘ThrowErrorMsgIf’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:156:34: error: ‘class Ioss::Region’ has no member named ‘mesh_type_string’
"Mesh type is '" << m_region->mesh_type_string() << "' which is not supported. "
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_util/stk_util/environment/ReportHandler.hpp:229:46: note: in definition of macro ‘ThrowGenericCond’
stk_util_internal_throw_require_oss << message; \
^
/home/mhenryde/nalu-dist/Trilinos/packages/stk/stk_io/stk_io/InputFile.cpp:155:2: note: in expansion of macro ‘ThrowErrorMsgIf’
ThrowErrorMsgIf(m_region->mesh_type() != Ioss::MeshType::UNSTRUCTURED,
^
make[2]: *** [packages/stk/stk_io/stk_io/CMakeFiles/stk_io.dir/InputFile.cpp.o] Error 1
make[1]: *** [packages/stk/stk_io/stk_io/CMakeFiles/stk_io.dir/all] Error 2
make: *** [all] Error 2
I tried the master (hash: f0350316) and develop (hash: d2e490d3) branches.
I am using GCC 5.2 and openmpi on NREL's Peregrine machine. This same build/config worked two weeks ago. This is my cmake line:
cmake \
-DCMAKE_INSTALL_PREFIX=$trilinos_install_dir \
-DTrilinos_ENABLE_CXX11=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
-DTrilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
-DTpetra_INST_DOUBLE:BOOL=ON \
-DTpetra_INST_INT_LONG:BOOL=ON \
-DTpetra_INST_COMPLEX_DOUBLE=OFF \
-DTrilinos_ENABLE_TESTS:BOOL=OFF \
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=OFF \
-DTrilinos_ALLOW_NO_PACKAGES:BOOL=OFF \
-DTPL_ENABLE_MPI=ON \
-DMPI_BASE_DIR:PATH=$mpi_base_dir \
-DTPL_ENABLE_SuperLU=ON \
-DSuperLU_INCLUDE_DIRS:PATH=$superlu_inc_dir \
-DSuperLU_LIBRARY_DIRS:PATH=$superlu_lib_dir \
-DTrilinos_ENABLE_Epetra:BOOL=ON \
-DTrilinos_ENABLE_Tpetra:BOOL=ON \
-DTrilinos_ENABLE_ML:BOOL=ON \
-DTrilinos_ENABLE_MueLu:BOOL=ON \
-DTrilinos_ENABLE_EpetraExt:BOOL=ON \
-DTrilinos_ENABLE_AztecOO:BOOL=ON \
-DTrilinos_ENABLE_Belos:BOOL=ON \
-DTrilinos_ENABLE_Ifpack2:BOOL=ON \
-DTrilinos_ENABLE_Amesos2:BOOL=ON \
-DTrilinos_ENABLE_Zoltan2:BOOL=ON \
-DTrilinos_ENABLE_Ifpack:BOOL=ON \
-DTrilinos_ENABLE_Amesos:BOOL=ON \
-DTrilinos_ENABLE_Zoltan:BOOL=ON \
-DTrilinos_ENABLE_STKMesh:BOOL=ON \
-DTrilinos_ENABLE_STKIO:BOOL=ON \
-DTrilinos_ENABLE_STKTransfer:BOOL=ON \
-DTrilinos_ENABLE_STKSearch:BOOL=ON \
-DTrilinos_ENABLE_STKUtil:BOOL=ON \
-DTrilinos_ENABLE_STKTopology:BOOL=ON \
-DTrilinos_ENABLE_STKUnit_test_utils=OFF \
-DTrilinos_ENABLE_Gtest:BOOL=ON \
-DTrilinos_ENABLE_STKClassic:BOOL=OFF \
-DTrilinos_ENABLE_SEACASExodus:BOOL=ON \
-DTrilinos_ENABLE_SEACASEpu:BOOL=ON \
-DTrilinos_ENABLE_SEACASExodiff:BOOL=ON \
-DTrilinos_ENABLE_SEACASNemspread:BOOL=ON \
-DTrilinos_ENABLE_SEACASNemslice:BOOL=ON \
-DTPL_ENABLE_Netcdf:STRING=ON \
-DTPL_Netcdf_LIBRARIES:PATH="${netcdf_install_dir}/lib/libnetcdf.a;${parallel_netcdf_install_dir}/lib/libpnetcdf.a;${hdf_install_dir}/lib/libhdf5_hl.a;${hdf_install_dir}/lib/libhdf5.a;${z_install_dir}/lib/libz.a" \
-DNetcdf_INCLUDE_DIRS:PATH="${netcdf_install_dir}/include;${parallel_netcdf_install_dir}/include" \
-DNetcdf_LIBRARY_DIRS:PATH="${netcdf_install_dir}/lib;${parallel_netcdf_install_dir}/lib" \
-DTPL_ENABLE_HDF5:STRING=ON \
-DHDF5_INCLUDE_DIRS:PATH="${hdf_install_dir}/include" \
-DTPL_HDF5_LIBRARIES:PATH="${hdf_install_dir}/lib/libhdf5_hl.a;${hdf_install_dir}/lib/libhdf5.a;${z_install_dir}/lib/libz.a" \
-DTPL_ENABLE_Zlib:STRING=ON \
-DZlib_INCLUDE_DIRS:PATH="${z_install_dir}/include" \
-DTPL_Zlib_LIBRARIES:PATH="${z_install_dir}/lib/libz.a" \
-DTPL_Netcdf_Enables_Netcdf4:BOOL=TRUE \
-DTPL_Netcdf_PARALLEL:BOOL=ON \
-DBoostLib_INCLUDE_DIRS:PATH="$boost_dir/include" \
-DBoostLib_LIBRARY_DIRS:PATH="$boost_dir/lib" \
-DTrilinos_ASSERT_MISSING_PACKAGES=OFF \
-DLAPACK_LIBRARY_DIRS=/nopt/nrel/apps/lapack/3.4.2-gcc \
$EXTRA_ARGS \
../
And here is the output from my Trilinos configure script. I checked the output and 'Ioss' is enabled.