Commit e1e8d2d4 authored by Jean-Matthieu's avatar Jean-Matthieu

KernelGen SplitCK - PsiDerivative is not needed

parent b5c45ca7
Pipeline #164769 failed with stage
......@@ -61,6 +61,7 @@ class ConfigurationParametersModel(AbstractModelBaseClass):
self.context["lShiSize"] = -1
self.context["gradQSize"] = -1
self.context["PSiSize"] = -1
self.context["PSiDerivativeSize"] = -1
if self.context["isLinear"]:
if(self.context["useSplitCKScalar"]):
# Linear + split CK
......@@ -93,6 +94,7 @@ class ConfigurationParametersModel(AbstractModelBaseClass):
self.context["gradQSize"] = nVarPad*(nDof**nDim)*nDim
if self.context["usePointSources"]:
self.context["PSiSize"] = (nDof+1)*(nDof**nDim)*nVarPad
self.context["PSiDerivativeSize"] = self.context["PSiSize"]
else:
# nonlinear
self.context["lQiSize"] = nDataPad*(nDof**(nDim+1))
......
......@@ -98,6 +98,8 @@ namespace {{namespaceName}} {
{% if PSiSize > 0 %}
constexpr int getPSiShift() {return {{shift}};}
{% set shift = shift+PSiSize %}
{% endif %}
{% if PSiDerivativeSize > 0 %}
constexpr int getPSderivativesShift() {return {{shift}};} //same size as PSi
{% set shift = shift+PSiSize %}
{% endif %}
......
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