Skip to content

Fix build of test-parallel-ug

Felix Gruber requested to merge bugfix/test-parallel-ug into master

While trying to build dune-grid, I got the following error when compiling test-parralel-ug.cc:

 72%] Building CXX object dune/grid/test/CMakeFiles/test-parallel-ug.dir/test-parallel-ug.cc.o
.../dune/grid/test/test-parallel-ug.cc: In member function ‘void DataExchange<MapperT>::gather(MessageBuffer&, const EntityType&) const’:
.../dune/grid/test/test-parallel-ug.cc:81:5: error: ‘dverb’ was not declared in this scope
   81 |     dverb << "Process "
      |     ^~~~~
...

To fix it, I've included <dune/common/stdstreams.hh>.

Surprisingly there was no build failure on the CI pipeline. The main difference that I see between the CI pipeline and my own build environment is that I don't have MPI. My assumption is that stdsteams.hh is included behind a MPI config flag in one of the already included header files, thus resulting in an error-free build as long as MPI is available.

Merge request reports

Loading