Skip to content

Commit 2cb6d2d

Browse files
committed
Renamed coeffs() into sides()
1 parent f0e7fd4 commit 2cb6d2d

File tree

1 file changed

+29
-36
lines changed

1 file changed

+29
-36
lines changed

include/boundary.hpp

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ class BoundaryCore<Spline, /* parDim */ 1> : public utils::Serializable,
101101
[](const auto &...bspline) {
102102
return std::make_tuple(bspline.clone()...);
103103
},
104-
other.coeffs())
105-
: other.coeffs()) {}
104+
other.sides())
105+
: other.sides()) {}
106106

107107
/// @brief Constructor
108108
explicit BoundaryCore(const std::array<int64_t, 1> &,
@@ -165,13 +165,13 @@ class BoundaryCore<Spline, /* parDim */ 1> : public utils::Serializable,
165165
return std::get<s - 1>(bdr_);
166166
}
167167

168-
/// @brief Returns a constant reference to the array of
169-
/// coefficients for all boundary segments.
170-
inline constexpr auto &coeffs() const { return bdr_; }
168+
/// @brief Returns a constant reference to the tuple of boundary
169+
/// sides.
170+
inline constexpr auto &sides() const { return bdr_; }
171171

172-
/// @brief Returns a non-constant reference to the array of
173-
/// coefficients for all boundary segments.
174-
inline constexpr auto &coeffs() { return bdr_; }
172+
/// @brief Returns a non-constant reference to the tuple of boundary
173+
/// sides.
174+
inline constexpr auto &sides() { return bdr_; }
175175

176176
/// @brief Returns the total number of coefficients
177177
inline int64_t ncumcoeffs() const {
@@ -285,8 +285,8 @@ class BoundaryCore<Spline, /* parDim */ 2> : public utils::Serializable,
285285
[](const auto &...bspline) {
286286
return std::make_tuple(bspline.clone()...);
287287
},
288-
other.coeffs())
289-
: other.coeffs()) {}
288+
other.sides())
289+
: other.sides()) {}
290290

291291
/// @brief Constructor
292292
explicit BoundaryCore(const std::array<int64_t, 2> &ncoeffs,
@@ -396,13 +396,11 @@ class BoundaryCore<Spline, /* parDim */ 2> : public utils::Serializable,
396396
return std::get<s - 1>(bdr_);
397397
}
398398

399-
/// @brief Returns a constant reference to the array of
400-
/// coefficients for all boundary segments.
401-
inline constexpr auto &coeffs() const { return bdr_; }
399+
/// @brief Returns a constant reference to the tuple of boundary sides
400+
inline constexpr auto &sides() const { return bdr_; }
402401

403-
/// @brief Returns a non-constant reference to the array of
404-
/// coefficients for all boundary segments.
405-
inline constexpr auto &coeffs() { return bdr_; }
402+
/// @brief Returns a non-constant reference to the tuple of boundary sides
403+
inline constexpr auto &sides() { return bdr_; }
406404

407405
/// @brief Returns the total number of coefficients
408406
inline int64_t ncumcoeffs() const {
@@ -539,8 +537,8 @@ class BoundaryCore<Spline, /* parDim */ 3> : public utils::Serializable,
539537
[](const auto &...bspline) {
540538
return std::make_tuple(bspline.clone()...);
541539
},
542-
other.coeffs())
543-
: other.coeffs()) {}
540+
other.sides())
541+
: other.sides()) {}
544542

545543
/// @brief Constructor
546544
explicit BoundaryCore(const std::array<int64_t, 3> &ncoeffs,
@@ -699,13 +697,11 @@ class BoundaryCore<Spline, /* parDim */ 3> : public utils::Serializable,
699697
return std::get<s - 1>(bdr_);
700698
}
701699

702-
/// @brief Returns a constant reference to the array of
703-
/// coefficients for all boundary segments.
704-
inline constexpr auto &coeffs() const { return bdr_; }
700+
/// @brief Returns a constant reference to the tuple of boundary sides
701+
inline constexpr auto &sides() const { return bdr_; }
705702

706-
/// @brief Returns a non-constant reference to the array of
707-
/// coefficients for all boundary segments.
708-
inline constexpr auto &coeffs() { return bdr_; }
703+
/// @brief Returns a non-constant reference to the tuple of sides
704+
inline constexpr auto &sides() { return bdr_; }
709705

710706
/// @brief Returns the total number of coefficients
711707
inline int64_t ncumcoeffs() const {
@@ -867,8 +863,8 @@ class BoundaryCore<Spline, /* parDim */ 4> : public utils::Serializable,
867863
[](const auto &...bspline) {
868864
return std::make_tuple(bspline.clone()...);
869865
},
870-
other.coeffs())
871-
: other.coeffs()) {}
866+
other.sides())
867+
: other.sides()) {}
872868

873869
/// @brief Constructor
874870
explicit BoundaryCore(const std::array<int64_t, 4> &ncoeffs,
@@ -1062,13 +1058,11 @@ class BoundaryCore<Spline, /* parDim */ 4> : public utils::Serializable,
10621058
return std::get<s - 1>(bdr_);
10631059
}
10641060

1065-
/// @brief Returns a constant reference to the array of
1066-
/// coefficients for all boundary segments.
1067-
inline constexpr auto &coeffs() const { return bdr_; }
1061+
/// @brief Returns a constant reference to the tuple of boundary sides
1062+
inline constexpr auto &sides() const { return bdr_; }
10681063

1069-
/// @brief Returns a non-constant reference to the array of
1070-
/// coefficients for all boundary segments.
1071-
inline constexpr auto &coeffs() { return bdr_; }
1064+
/// @brief Returns a non-constant reference to the tuple of boundary sides
1065+
inline constexpr auto &ides() { return bdr_; }
10721066

10731067
/// @brief Returns the total number of coefficients
10741068
inline int64_t ncumcoeffs() const {
@@ -1708,9 +1702,8 @@ class BoundaryCommon : public Boundary_, public BoundaryCore {
17081702
template <typename BoundaryCore_, size_t... Is>
17091703
inline bool isequal_(std::index_sequence<Is...>,
17101704
const BoundaryCommon<BoundaryCore_> &other) const {
1711-
return (
1712-
(std::get<Is>(BoundaryCore::bdr_) == std::get<Is>(other.coeffs())) &&
1713-
...);
1705+
return ((std::get<Is>(BoundaryCore::bdr_) == std::get<Is>(other.sides())) &&
1706+
...);
17141707
}
17151708

17161709
public:
@@ -1737,7 +1730,7 @@ class BoundaryCommon : public Boundary_, public BoundaryCore {
17371730
BoundaryCore::spline_type::value_type rtol,
17381731
BoundaryCore::spline_type::value_type atol) const {
17391732
return ((std::get<Is>(BoundaryCore::bdr_)
1740-
.isclose(std::get<Is>(other.coeffs()))) &&
1733+
.isclose(std::get<Is>(other.sides()))) &&
17411734
...);
17421735
}
17431736

0 commit comments

Comments
 (0)