Skip to content

Commit

Permalink
clang-format 14
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-tierny committed Sep 12, 2023
1 parent 6492cf3 commit e41dd2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
8 changes: 5 additions & 3 deletions core/base/implicitTriangulation/ImplicitTriangulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3155,9 +3155,11 @@ int ttk::ImplicitTriangulation::preconditionDistributedCells() {
localBBox_z_max{this->localGridOffset_[2]};

#ifdef TTK_ENABLE_OPENMP
#pragma omp parallel for reduction( \
min : localBBox_x_min, localBBox_y_min, localBBox_z_min) \
reduction(max : localBBox_x_max, localBBox_y_max, localBBox_z_max)
#pragma omp parallel for reduction( \
min \
: localBBox_x_min, localBBox_y_min, localBBox_z_min) \
reduction(max \
: localBBox_x_max, localBBox_y_max, localBBox_z_max)
#endif
for(SimplexId lcid = 0; lcid < nLocCells; ++lcid) {
// only keep non-ghost cells
Expand Down
22 changes: 8 additions & 14 deletions core/base/implicitTriangulation/ImplicitTriangulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,33 +110,29 @@ namespace ttk {

virtual int getTetrahedronEdge(const SimplexId &tetId,
const int &id,
SimplexId &edgeId) const
= 0;
SimplexId &edgeId) const = 0;

int getTetrahedronEdges(std::vector<std::vector<SimplexId>> &edges) const;

virtual int getTetrahedronTriangle(const SimplexId &tetId,
const int &id,
SimplexId &triangleId) const
= 0;
SimplexId &triangleId) const = 0;

int getTetrahedronTriangles(
std::vector<std::vector<SimplexId>> &triangles) const;

virtual int getTetrahedronNeighbor(const SimplexId &tetId,
const int &localNeighborId,
SimplexId &neighborId) const
= 0;
SimplexId &neighborId) const = 0;

virtual SimplexId getTetrahedronNeighborNumber(const SimplexId &tetId) const
= 0;
virtual SimplexId
getTetrahedronNeighborNumber(const SimplexId &tetId) const = 0;

int getTetrahedronNeighbors(std::vector<std::vector<SimplexId>> &neighbors);

virtual int getTetrahedronVertex(const SimplexId &tetId,
const int &localVertexId,
SimplexId &vertexId) const
= 0;
SimplexId &vertexId) const = 0;

SimplexId getTriangleEdgeNumberInternal(
const SimplexId & /*triangleId*/) const override {
Expand All @@ -159,12 +155,10 @@ namespace ttk {

virtual int getTriangleNeighbor(const SimplexId &triangleId,
const int &localNeighborId,
SimplexId &neighborId) const
= 0;
SimplexId &neighborId) const = 0;

virtual SimplexId
getTriangleNeighborNumber(const SimplexId &triangleId) const
= 0;
getTriangleNeighborNumber(const SimplexId &triangleId) const = 0;

int getTriangleNeighbors(std::vector<std::vector<SimplexId>> &neighbors);

Expand Down

0 comments on commit e41dd2c

Please sign in to comment.