Skip to content
Snippets Groups Projects
Commit 68639762 authored by Porrmann, Maik's avatar Porrmann, Maik
Browse files

remove bitset from messageType. resolves prev Error

parent 258eeabd
No related branches found
No related tags found
No related merge requests found
......@@ -858,12 +858,12 @@ namespace Dune
private:
class VertexDataHandle:
public CommDataHandleIF<VertexDataHandle,
std::tuple<FieldMatrix<D, dim, dim>, std::bitset<2 * dim>>>
std::tuple<FieldMatrix<D, dim, dim>, bool, bool>>
{
using VertexData = std::tuple<FieldMatrix<D, dim, dim>, std::bitset<2 * dim>>;
using VertexData = std::tuple<FieldMatrix<D, dim, dim>, bool, bool>;
public:
VertexDataHandle(IndexSet const &indexSet, VertexDataVector data)
VertexDataHandle(IndexSet const &indexSet, VertexDataVector &data)
: indexSet_(indexSet), vertexData_(data)
{
}
......@@ -884,10 +884,11 @@ namespace Dune
assert(Entity::mydimension == 0);
auto ii = indexSet_.index(entity);
auto &[dir, bools, indices] = vertexData_[ii];
auto const &[dir, bools, indices] = vertexData_[ii];
if ((bools[0] && !bools[2]) || (bools[1] && !bools[3]))
std::cout << "Gather bools: " << bools << std::endl;
messageBuffer.write(VertexData{dir, bools});
// << " directions: " << dir << std::endl;
messageBuffer.write(VertexData{dir, bools[2], bools[3]});
}
template <class MessageBuffer, class Entity>
......
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