Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ struct ClassifyDriverInteractionsFunc {
ONIKA_HOST_DEVICE_FUNC inline void operator()(PlaceholderInteraction& item, int sub_i, int sub_j) {
item.pair_.pi_.sub_ = sub_i;
item.pair_.pj_.sub_ = sub_j;
item.reset();
auto& container = interaction_classifier_accessor_.get_typed_accessor<IT>(item.type());
container.set(prefix_[item.type()]++, item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ __global__ __launch_bounds__(64, 10) void FillInteractionsPPKernel(
item.pair_.pj_.sub_ = j;
item.pair_.type_ = InteractionTypeId::VertexVertex;
item.pair_.swap_ = false;
item.reset();
interactions[InteractionTypeId::VertexVertex].set(prefix[0]++, item);
}
}
Expand All @@ -456,6 +457,7 @@ __global__ __launch_bounds__(64, 10) void FillInteractionsPPKernel(
item.pair_.pj_.sub_ = j;
item.pair_.type_ = InteractionTypeId::VertexEdge;
item.pair_.swap_ = false;
item.reset();
interactions[InteractionTypeId::VertexEdge].set(prefix[1]++, item);
}
}
Expand All @@ -468,6 +470,7 @@ __global__ __launch_bounds__(64, 10) void FillInteractionsPPKernel(
item.pair_.pj_.sub_ = j;
item.pair_.type_ = InteractionTypeId::VertexFace;
item.pair_.swap_ = false;
item.reset();
interactions[InteractionTypeId::VertexFace].set(prefix[2]++, item);
}
}
Expand All @@ -485,6 +488,7 @@ __global__ __launch_bounds__(64, 10) void FillInteractionsPPKernel(
item.pair_.pj_.sub_ = j;
item.pair_.type_ = InteractionTypeId::EdgeEdge;
item.pair_.swap_ = false;
item.reset();
interactions[InteractionTypeId::EdgeEdge].set(prefix[3]++, item);
}
}
Expand All @@ -506,6 +510,7 @@ __global__ __launch_bounds__(64, 10) void FillInteractionsPPKernel(
item.pair_.pi_.sub_ = j;
item.pair_.pj_.sub_ = i;
item.pair_.type_ = InteractionTypeId::VertexEdge;
item.reset();
interactions[InteractionTypeId::VertexEdge].set(prefix[1]++, item);
}
}
Expand All @@ -517,6 +522,7 @@ __global__ __launch_bounds__(64, 10) void FillInteractionsPPKernel(
item.pair_.pi_.sub_ = j;
item.pair_.pj_.sub_ = i;
item.pair_.type_ = InteractionTypeId::VertexFace;
item.reset();
interactions[InteractionTypeId::VertexFace].set(prefix[2]++, item);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/polyhedron/nbh_polyhedron.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class UpdateGridCellInteractionPolyhedron : public OperatorNode {
auto add_contact = [&manager](PlaceholderInteraction& item, int sub_i, int sub_j) -> void {
item.pair_.pi_.sub_ = sub_i;
item.pair_.pj_.sub_ = sub_j;
item.reset();
manager.add_item(item);
};

Expand Down
Loading