Skip to content

Commit

Permalink
Minor optimizations in splines linear problem maker (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegouix authored Jul 2, 2024
1 parent b5b566f commit 8a78249
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ddc/kernels/splines/splines_linear_problem_maker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ class SplinesLinearProblemMaker
int const ku,
bool const pds)
{
if (2 * kl + ku + 1 >= n) {
return std::make_unique<SplinesLinearProblemDense<ExecSpace>>(n);
} else if (kl == ku && kl == 1 && pds) {
if (kl == ku && kl == 1 && pds) {
return std::make_unique<SplinesLinearProblemPDSTridiag<ExecSpace>>(n);
} else if (kl == ku && pds) {
return std::make_unique<SplinesLinearProblemPDSBand<ExecSpace>>(n, kl);
} else if (2 * kl + ku + 1 >= n) {
return std::make_unique<SplinesLinearProblemDense<ExecSpace>>(n);
} else {
return std::make_unique<SplinesLinearProblemBand<ExecSpace>>(n, kl, ku);
}
Expand Down

0 comments on commit 8a78249

Please sign in to comment.