Skip to content

Commit

Permalink
Replace tabulations by spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Jan 2, 2025
1 parent 2d4de40 commit 6ba1cfe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 43 deletions.
29 changes: 9 additions & 20 deletions include/ddc/kernels/splines/constant_extrapolation_rule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,15 @@ struct ConstantExtrapolationRule<DimI>
*
* The boundary value will be the same as at the coordinate eval_pos given.
*
* @param[in] eval_pos
* Coordinate inside the domain where we will evaluate each points outside the domain.
* @param[in] eval_pos Coordinate inside the domain where we will evaluate each points outside the domain.
*/
explicit ConstantExtrapolationRule(ddc::Coordinate<DimI> eval_pos) : m_eval_pos(eval_pos) {}

/**
* @brief Get the value of the function on B-splines at a coordinate outside the domain.
*
* @param[in] pos
* The coordinate where we want to evaluate the function on B-splines.
* @param[in] spline_coef
* The coefficients of the function on B-splines.
* @param[in] pos The coordinate where we want to evaluate the function on B-splines.
* @param[in] spline_coef The coefficients of the function on B-splines.
*
* @return A double with the value of the function on B-splines evaluated at the coordinate.
*/
Expand Down Expand Up @@ -99,13 +96,9 @@ struct ConstantExtrapolationRule<DimI, DimNI>
* dimension off-interest (the complementary dimension of the boundary condition),
* because the evaluator can receive coordinates outside the domain in both dimension.
*
* @param[in] eval_pos
* Coordinate in the dimension given inside the domain where we will evaluate
* each points outside the domain.
* @param[in] eval_pos_not_interest_min
* The minimum coordinate inside the domain on the complementary dimension of the boundary condition.
* @param[in] eval_pos_not_interest_max
* The maximum coordinate inside the domain on the complementary dimension of the boundary condition.
* @param[in] eval_pos Coordinate in the dimension given inside the domain where we will evaluate each points outside the domain.
* @param[in] eval_pos_not_interest_min The minimum coordinate inside the domain on the complementary dimension of the boundary condition.
* @param[in] eval_pos_not_interest_max The maximum coordinate inside the domain on the complementary dimension of the boundary condition.
*/
explicit ConstantExtrapolationRule(
ddc::Coordinate<DimI> eval_pos,
Expand All @@ -125,9 +118,7 @@ struct ConstantExtrapolationRule<DimI, DimNI>
* No second and third parameters are needed in case of periodic splines on the
* dimension off-interest (the complementary dimension of the boundary condition).
*
* @param[in] eval_pos
* Coordinate in the dimension given inside the domain where we will evaluate
* each points outside the domain.
* @param[in] eval_pos Coordinate in the dimension given inside the domain where we will evaluate each points outside the domain.
*/
template <class DimNI_sfinae = DimNI, std::enable_if_t<DimNI_sfinae::PERIODIC, int> = 0>
explicit ConstantExtrapolationRule(ddc::Coordinate<DimI> eval_pos)
Expand All @@ -147,10 +138,8 @@ struct ConstantExtrapolationRule<DimI, DimNI>
* (if ddc::Coordinate<DimNI>(coord_extrap) @f$ < @f$ eval_pos_not_interest_min) or
* at eval_pos_not_interest_max (if ddc::Coordinate<DimNI>(coord_extrap) @f$ > @f$ eval_pos_not_interest_max).
*
* @param[in] coord_extrap
* The coordinates where we want to evaluate the function on B-splines
* @param[in] spline_coef
* The coefficients of the function on B-splines.
* @param[in] coord_extrap The coordinates where we want to evaluate the function on B-splines
* @param[in] spline_coef The coefficients of the function on B-splines.
*
*@return A double with the value of the function on B-splines evaluated at the coordinate.
*/
Expand Down
9 changes: 4 additions & 5 deletions include/ddc/kernels/splines/spline_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,11 +587,10 @@ void SplineBuilder<
{
// Special case: linear spline
// No need for matrix assembly
// (desactivated)
/*
if constexpr (bsplines_type::degree() == 1)
return;
*/
// (disabled)
// if constexpr (bsplines_type::degree() == 1) {
// return;
// }

if constexpr (Solver == ddc::SplineSolver::LAPACK) {
int upper_band_width;
Expand Down
26 changes: 8 additions & 18 deletions include/ddc/kernels/splines/spline_evaluator_2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1087,14 +1087,10 @@ class SplineEvaluator2D
* This function firstly deals with the boundary conditions and calls the SplineEvaluator2D::eval_no_bc function
* to evaluate.
*
* @param[in] coord_eval
* The 2D coordinate where we want to evaluate.
* @param[in] spline_coef
* The B-splines coefficients of the function we want to evaluate.
* @param[out] vals1
* A ChunkSpan with the not-null values of each function of the spline in the first dimension.
* @param[out] vals2
* A ChunkSpan with the not-null values of each function of the spline in the second dimension.
* @param[in] coord_eval The 2D coordinate where we want to evaluate.
* @param[in] spline_coef The B-splines coefficients of the function we want to evaluate.
* @param[out] vals1 A ChunkSpan with the not-null values of each function of the spline in the first dimension.
* @param[out] vals2 A ChunkSpan with the not-null values of each function of the spline in the second dimension.
*
* @return A double with the value of the function at the coordinate given.
*
Expand Down Expand Up @@ -1156,16 +1152,10 @@ class SplineEvaluator2D
/**
* @brief Evaluate the function or its derivative at the coordinate given.
*
* @param[in] coord_eval
* The coordinate where we want to evaluate.
* @param[in] splne_coef
* The B-splines coefficients of the function we want to evaluate.
* @tparam EvalType1
* A flag indicating if we evaluate the function or its derivative in the first dimension.
* The type of this object is either `eval_type` or `eval_deriv_type`.
* @tparam EvalType2
* A flag indicating if we evaluate the function or its derivative in the second dimension.
* The type of this object is either `eval_type` or `eval_deriv_type`.
* @param[in] coord_eval The coordinate where we want to evaluate.
* @param[in] splne_coef The B-splines coefficients of the function we want to evaluate.
* @tparam EvalType1 A flag indicating if we evaluate the function or its derivative in the first dimension. The type of this object is either `eval_type` or `eval_deriv_type`.
* @tparam EvalType2 A flag indicating if we evaluate the function or its derivative in the second dimension. The type of this object is either `eval_type` or `eval_deriv_type`.
*/
template <class EvalType1, class EvalType2, class Layout, class... CoordsDims>
KOKKOS_INLINE_FUNCTION double eval_no_bc(
Expand Down

0 comments on commit 6ba1cfe

Please sign in to comment.