10.12., 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit beacaa66 authored by Jean-Matthieu Gallard's avatar Jean-Matthieu Gallard

KernelGen - minor bugfix

parent 3f57cdaa
......@@ -137,7 +137,7 @@ class ConfigurationParametersModel(AbstractModelBaseClass):
self.context["BndFaceSize"] = nDataPad*(nDof*nDof3D)
self.context["BndFaceTotalSize"] = 2*nDim*self.context["BndFaceSize"]
self.context["BndFluxSize"] = nVarPad*(nDof*nDof3D)
self.context["BndFluxTotalSize"] = 2*nDim*nVarPad*self.context["BndFluxSize"]
self.context["BndFluxTotalSize"] = 2*nDim*self.context["BndFluxSize"]
elif self.context["kernelType"] == "fv":
# shortcut
......
......@@ -492,7 +492,7 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral{{nameSuffix}}(
{{ m.matmul('gradQ_x_sck_vect', 'dudx_by_dx', 'lQhi', 'gradQ', '0', '0', '0') | indent(4) }}{##}
for (int yz = 0; yz < {{nDof*nDof3D}}; yz++) {
solver.{{solverName}}::nonConservativeProduct_x_vect(lQhi+{{idx(0,yz,0,0)}}, {% if nPar != 0 %}lPi+{{idxLPi(0,yz,0,0)}}{% else %}nullptr{%endif%}, gradQ+{{idx(0,yz,0,0)}}, tmpArray);
#pragma omp simd aligned(lQi_next,tmpArray:ALIGNMENT)
#pragma omp simd aligned(lFhi,tmpArray:ALIGNMENT)
for (int nx = 0; nx < {{nVar*nDofPad}}; nx++) {
lFhi[{{idx(0,yz,0,nx)}}] += tmpArray[nx];
}
......@@ -550,7 +550,7 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral{{nameSuffix}}(
//call ncp in y
for (int yz = 0; yz < {{nDof*nDof3D}}; yz++) {
solver.{{solverName}}::nonConservativeProduct_y_vect(lQhi+{{idx(0,yz,0,0)}}, {% if nPar != 0 %}lPi+{{idxLPi(0,yz,0,0)}}{% else %}nullptr{%endif%}, gradQ+{{idx(0,yz,0,0)}}, tmpArray);
#pragma omp simd aligned(lQi_next,tmpArray:ALIGNMENT)
#pragma omp simd aligned(lFhi,tmpArray:ALIGNMENT)
for (int nx = 0; nx < {{nVar*nDofPad}}; nx++) {
lFhi[{{idx(0,yz,0,nx)}}] += tmpArray[nx];
}
......@@ -608,7 +608,7 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral{{nameSuffix}}(
//call ncp in z
for (int yz = 0; yz < {{nDof*nDof3D}}; yz++) {
solver.{{solverName}}::nonConservativeProduct_z_vect(lQhi+{{idx(0,yz,0,0)}}, {% if nPar != 0 %}lPi+{{idxLPi(0,yz,0,0)}}{% else %}nullptr{%endif%}, gradQ+{{idx(0,yz,0,0)}}, tmpArray);
#pragma omp simd aligned(lQi_next,tmpArray:ALIGNMENT)
#pragma omp simd aligned(lFhi,tmpArray:ALIGNMENT)
for (int nx = 0; nx < {{nVar*nDofPad}}; nx++) {
lFhi[{{idx(0,yz,0,nx)}}] += tmpArray[nx];
}
......
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