Commit 83003c8a authored by Jean-Matthieu Gallard's avatar Jean-Matthieu Gallard
Browse files

KernelGen - fix missing namespace for legacy transpose functions

parent 197ff2eb
......@@ -11,6 +11,10 @@
* For the full license text, see LICENSE.txt
**/ #}
{% for namespaceName in codeNamespaceList %}
namespace {{namespaceName}} {
{% endfor %}
template<int nVar, int leadingDimSize>
inline void AoS2SoA(const double* const restrict AoS, double* restrict SoA) {
for(int n=0; n<nVar; n++) {
......@@ -52,4 +56,8 @@ inline void SoA2AoS_rest(const double* const restrict SoA, double* restrict AoS)
AoS[n+leadingDimSize*p] = SoA[p+{{vectSize}}*n];
}
}
}
\ No newline at end of file
}
{% for namespaceName in codeNamespaceList %}
}
{% endfor %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment