Skip to content
Snippets Groups Projects
Commit cb253ae7 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[parallel] fix tests and headercheck without mpi

parent c7dc049b
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,17 @@ bool operator!=(const No_Comm& lhs, const No_Comm& rhs) ...@@ -29,6 +29,17 @@ bool operator!=(const No_Comm& lhs, const No_Comm& rhs)
return !(lhs == rhs); return !(lhs == rhs);
} }
// CollectiveCommunication<No_Comm> is also missing a comparison operator (CollectiveCommunication<MPI_Comm> does not
// have a comparison operator either, but it has a conversion operator to MPI_Comm which does have operator==)
bool operator==(const CollectiveCommunication<No_Comm>& /*lhs*/, const CollectiveCommunication<No_Comm>& /*rhs*/)
{
return true;
}
bool operator!=(const CollectiveCommunication<No_Comm>& lhs, const CollectiveCommunication<No_Comm>& rhs)
{
return !(lhs == rhs);
}
} // namespace Dune } // namespace Dune
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
# include <dune/pybindxi/stl.h> # include <dune/pybindxi/stl.h>
#endif #endif
#include <dune/xt/common/parallel/communicator.hh>
namespace Dune { namespace Dune {
namespace XT { namespace XT {
namespace Common { namespace Common {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment