Skip to content
Snippets Groups Projects
Commit db22f46d authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[!338] Use a different template parameter for the linearization point

Merge branch 'feature/linearizationpoint-template-parameter' into 'master'

ref:extensions/dune-codegen Last backport from diss branch.

See merge request [extensions/dune-codegen!338]

  [extensions/dune-codegen!338]: gitlab.dune-project.org/extensions/dune-codegen/merge_requests/338
parents b4428bb9 7c76d935
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,10 @@ def type_coefficientcontainer():
return "X"
def type_linearizationpointcontainer():
return "Z"
def name_jacobian(restriction1, restriction2):
# Restrictions may only differ if NONE
if (restriction1 == Restriction.NONE) or (restriction2 == Restriction.NONE):
......
......@@ -9,6 +9,7 @@ from dune.codegen.pdelab.argument import (name_accumulation_variable,
name_coefficientcontainer,
type_coefficientcontainer,
name_applycontainer,
type_linearizationpointcontainer,
)
from dune.codegen.pdelab.spaces import (name_testfunctionspace,
type_testfunctionspace,
......@@ -293,8 +294,9 @@ def nonlinear_jacobian_apply_volume_templates():
lfsut = type_trialfunctionspace()
lfsvt = type_testfunctionspace()
cct = type_coefficientcontainer()
lpt = type_linearizationpointcontainer()
avt = type_accumulation_variable()
return (geot, lfsut, cct, cct, lfsvt, avt)
return (geot, lfsut, cct, lpt, lfsvt, avt)
def nonlinear_jacobian_apply_volume_args():
......@@ -312,8 +314,9 @@ def nonlinear_jacobian_apply_boundary_templates():
lfsut = type_trialfunctionspace()
lfsvt = type_testfunctionspace()
cct = type_coefficientcontainer()
lpt = type_linearizationpointcontainer()
avt = type_accumulation_variable()
return (geot, lfsut, cct, cct, lfsvt, avt)
return (geot, lfsut, cct, lpt, lfsvt, avt)
def nonlinear_jacobian_apply_boundary_args():
......@@ -331,8 +334,9 @@ def nonlinear_jacobian_apply_skeleton_templates():
lfsut = type_trialfunctionspace()
lfsvt = type_testfunctionspace()
cct = type_coefficientcontainer()
lpt = type_linearizationpointcontainer()
avt = type_accumulation_variable()
return (geot, lfsut, cct, cct, lfsvt, lfsut, cct, cct, lfsvt, avt, avt)
return (geot, lfsut, cct, lpt, lfsvt, lfsut, cct, lpt, lfsvt, avt, avt)
def nonlinear_jacobian_apply_skeleton_args():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment