From e41dd2c3801547bfa697b439261e75111e442191 Mon Sep 17 00:00:00 2001 From: Julien J Tierny Date: Tue, 12 Sep 2023 17:14:21 +0200 Subject: [PATCH] clang-format 14 --- .../ImplicitTriangulation.cpp | 8 ++++--- .../ImplicitTriangulation.h | 22 +++++++------------ 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/core/base/implicitTriangulation/ImplicitTriangulation.cpp b/core/base/implicitTriangulation/ImplicitTriangulation.cpp index 17a2af321d..9a24f21b80 100644 --- a/core/base/implicitTriangulation/ImplicitTriangulation.cpp +++ b/core/base/implicitTriangulation/ImplicitTriangulation.cpp @@ -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 diff --git a/core/base/implicitTriangulation/ImplicitTriangulation.h b/core/base/implicitTriangulation/ImplicitTriangulation.h index a590479af0..f1216aa63d 100644 --- a/core/base/implicitTriangulation/ImplicitTriangulation.h +++ b/core/base/implicitTriangulation/ImplicitTriangulation.h @@ -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> &edges) const; virtual int getTetrahedronTriangle(const SimplexId &tetId, const int &id, - SimplexId &triangleId) const - = 0; + SimplexId &triangleId) const = 0; int getTetrahedronTriangles( std::vector> &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> &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 { @@ -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> &neighbors);