Commit 460a2b5a authored by Jean-Matthieu Gallard's avatar Jean-Matthieu Gallard
Browse files

KernelGen AoSoA2 - Bugfix memset

parent 25793596
......@@ -606,9 +606,9 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral{{nameSuffix}}(
//recompute lFhi in y
{% if usePointSources %}
std::copy_n(PSi, {{nDof3D*nDof*nVar*nDofPad}}, lFhi); //start with the pointsource values
std::copy_n(PSi, {{nDof3D*nVar*nDof2Pad}}, lFhi); //start with the pointsource values
{%else%}
std::memset(lFhi, 0, {{nDof3D*nDof*nVar*nDofPad}}*sizeof(double));
std::memset(lFhi, 0, {{nDof3D*nVar*nDof2Pad}}*sizeof(double));
{% endif %}
{% if useFlux %}
//call flux in y
......
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