From 71cf89ea105b136eeec6feb57be891f165e1c121 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Fri, 26 Jun 2020 19:18:42 +0200 Subject: [PATCH] Fix use of function pugs function adapter --- src/language/modules/MeshModule.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/language/modules/MeshModule.cpp b/src/language/modules/MeshModule.cpp index 0803f1420..b9a657296 100644 --- a/src/language/modules/MeshModule.cpp +++ b/src/language/modules/MeshModule.cpp @@ -18,11 +18,11 @@ template <typename T> class MeshTransformation; -template <typename OutputType, typename... InputType> -class MeshTransformation<OutputType(InputType...)> : public PugsFunctionAdapter<OutputType(InputType...)> +template <typename OutputType, typename InputType> +class MeshTransformation<OutputType(InputType)> : public PugsFunctionAdapter<OutputType(InputType)> { static constexpr size_t Dimension = OutputType::Dimension; - using Adapter = PugsFunctionAdapter<OutputType(InputType...)>; + using Adapter = PugsFunctionAdapter<OutputType(InputType)>; public: static inline std::shared_ptr<Mesh<Connectivity<Dimension>>> @@ -36,7 +36,7 @@ class MeshTransformation<OutputType(InputType...)> : public PugsFunctionAdapter< Array<ExecutionPolicy> context_list = Adapter::getContextList(expression); - NodeValue<const OutputType> given_xr = given_mesh.xr(); + NodeValue<const InputType> given_xr = given_mesh.xr(); NodeValue<OutputType> xr(given_mesh.connectivity()); using execution_space = typename Kokkos::DefaultExecutionSpace::execution_space; -- GitLab