diff --git a/include/ddc/discrete_domain.hpp b/include/ddc/discrete_domain.hpp index dafb17d8c..925e0edac 100644 --- a/include/ddc/discrete_domain.hpp +++ b/include/ddc/discrete_domain.hpp @@ -264,10 +264,9 @@ class DiscreteDomain<> KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteDomain() = default; - // Construct a DiscreteDomain from a reordered copy of `domain` - template - KOKKOS_FUNCTION constexpr explicit DiscreteDomain( - [[maybe_unused]] DiscreteDomain const& domain) + /// Construct a DiscreteDomain by copies and merge of domains + template && ...)>> + KOKKOS_FUNCTION constexpr explicit DiscreteDomain([[maybe_unused]] DDoms const&... domains) { } diff --git a/tests/splines/batched_2d_spline_builder.cpp b/tests/splines/batched_2d_spline_builder.cpp index 9d5e42e10..0c35261d7 100644 --- a/tests/splines/batched_2d_spline_builder.cpp +++ b/tests/splines/batched_2d_spline_builder.cpp @@ -189,8 +189,7 @@ void Batched2dSplineTest() // The following line creates a discrete domain over all dimensions (DDims...) where we immediately // remove the dimensions DDimI1 and DDimI2. ddc::remove_dims_of_t, DDimI1, DDimI2> const dom_vals_tmp( - ddc::DiscreteDomain( - ddc::DiscreteDomain(DElem(0), DVect(ncells))...)); + ddc::DiscreteDomain(DElem(0), DVect(ncells))...); ddc::DiscreteDomain const dom_vals(dom_vals_tmp, interpolation_domain1, interpolation_domain2); diff --git a/tests/splines/batched_spline_builder.cpp b/tests/splines/batched_spline_builder.cpp index 3165c00a7..ae5966dda 100644 --- a/tests/splines/batched_spline_builder.cpp +++ b/tests/splines/batched_spline_builder.cpp @@ -186,8 +186,7 @@ void BatchedSplineTest() // The following line creates a discrete domain over all dimensions (DDims...) where we immediately // remove the dimension DDimI. ddc::remove_dims_of_t, DDimI> const dom_vals_tmp( - ddc::DiscreteDomain( - ddc::DiscreteDomain(DElem(0), DVect(ncells))...)); + ddc::DiscreteDomain(DElem(0), DVect(ncells))...); ddc::DiscreteDomain const dom_vals(dom_vals_tmp, interpolation_domain); #if defined(BC_HERMITE) diff --git a/tests/splines/extrapolation_rule.cpp b/tests/splines/extrapolation_rule.cpp index a91eac67a..14bd04b99 100644 --- a/tests/splines/extrapolation_rule.cpp +++ b/tests/splines/extrapolation_rule.cpp @@ -177,8 +177,7 @@ void ExtrapolationRuleSplineTest() // The following line creates a discrete domain over all dimensions (DDims...) where we immediately // remove the dimensions DDimI1 and DDimI2. ddc::remove_dims_of_t, DDimI1, DDimI2> const dom_vals_tmp( - ddc::DiscreteDomain( - ddc::DiscreteDomain(DElem(0), DVect(ncells))...)); + ddc::DiscreteDomain(DElem(0), DVect(ncells))...); ddc::DiscreteDomain const dom_vals(dom_vals_tmp, interpolation_domain); // Create a SplineBuilder over BSplines and batched along other dimensions using some boundary conditions