Skip to content
Snippets Groups Projects
Commit 71cf89ea authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix use of function pugs function adapter

parent 8985538b
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
template <typename T> template <typename T>
class MeshTransformation; class MeshTransformation;
template <typename OutputType, typename... InputType> template <typename OutputType, typename InputType>
class MeshTransformation<OutputType(InputType...)> : public PugsFunctionAdapter<OutputType(InputType...)> class MeshTransformation<OutputType(InputType)> : public PugsFunctionAdapter<OutputType(InputType)>
{ {
static constexpr size_t Dimension = OutputType::Dimension; static constexpr size_t Dimension = OutputType::Dimension;
using Adapter = PugsFunctionAdapter<OutputType(InputType...)>; using Adapter = PugsFunctionAdapter<OutputType(InputType)>;
public: public:
static inline std::shared_ptr<Mesh<Connectivity<Dimension>>> static inline std::shared_ptr<Mesh<Connectivity<Dimension>>>
...@@ -36,7 +36,7 @@ class MeshTransformation<OutputType(InputType...)> : public PugsFunctionAdapter< ...@@ -36,7 +36,7 @@ class MeshTransformation<OutputType(InputType...)> : public PugsFunctionAdapter<
Array<ExecutionPolicy> context_list = Adapter::getContextList(expression); 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()); NodeValue<OutputType> xr(given_mesh.connectivity());
using execution_space = typename Kokkos::DefaultExecutionSpace::execution_space; using execution_space = typename Kokkos::DefaultExecutionSpace::execution_space;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment