Skip to content

Commit

Permalink
Merge pull request #1070 from eve-le-guillou/fix_edgeToPosition
Browse files Browse the repository at this point in the history
[MPI] Fix int to SimplexId
  • Loading branch information
julien-tierny authored Oct 1, 2024
2 parents 6617ff5 + cb3a22e commit fac0085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/base/implicitTriangulation/ImplicitTriangulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ inline void ttk::ImplicitTriangulation::vertexToPosition(const SimplexId vertex,
inline void ttk::ImplicitTriangulation::edgeToPosition(const SimplexId edge,
const int k,
SimplexId p[3]) const {
const int e = (k) ? edge - esetshift_[k - 1] : edge;
const ttk::SimplexId e = (k) ? edge - esetshift_[k - 1] : edge;
p[0] = e % eshift_[2 * k];
p[1] = (e % eshift_[2 * k + 1]) / eshift_[2 * k];
p[2] = e / eshift_[2 * k + 1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ inline void

inline void ttk::PeriodicImplicitTriangulation::edgeToPosition(
const SimplexId edge, const int k, SimplexId p[3]) const {
const int e = (k) ? edge - esetshift_[k - 1] : edge;
const ttk::SimplexId e = (k) ? edge - esetshift_[k - 1] : edge;
p[0] = e % eshift_[2 * k];
p[1] = (e % eshift_[2 * k + 1]) / eshift_[2 * k];
p[2] = e / eshift_[2 * k + 1];
Expand Down

0 comments on commit fac0085

Please sign in to comment.