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

Use a different template parameter for the linearization point

parent 2e695e58
No related branches found
No related tags found
No related merge requests found
...@@ -117,6 +117,10 @@ def type_coefficientcontainer(): ...@@ -117,6 +117,10 @@ def type_coefficientcontainer():
return "X" return "X"
def type_linearizationpointcontainer():
return "Z"
def name_jacobian(restriction1, restriction2): def name_jacobian(restriction1, restriction2):
# Restrictions may only differ if NONE # Restrictions may only differ if NONE
if (restriction1 == Restriction.NONE) or (restriction2 == Restriction.NONE): if (restriction1 == Restriction.NONE) or (restriction2 == Restriction.NONE):
......
...@@ -9,6 +9,7 @@ from dune.codegen.pdelab.argument import (name_accumulation_variable, ...@@ -9,6 +9,7 @@ from dune.codegen.pdelab.argument import (name_accumulation_variable,
name_coefficientcontainer, name_coefficientcontainer,
type_coefficientcontainer, type_coefficientcontainer,
name_applycontainer, name_applycontainer,
type_linearizationpointcontainer,
) )
from dune.codegen.pdelab.spaces import (name_testfunctionspace, from dune.codegen.pdelab.spaces import (name_testfunctionspace,
type_testfunctionspace, type_testfunctionspace,
...@@ -293,8 +294,9 @@ def nonlinear_jacobian_apply_volume_templates(): ...@@ -293,8 +294,9 @@ def nonlinear_jacobian_apply_volume_templates():
lfsut = type_trialfunctionspace() lfsut = type_trialfunctionspace()
lfsvt = type_testfunctionspace() lfsvt = type_testfunctionspace()
cct = type_coefficientcontainer() cct = type_coefficientcontainer()
lpt = type_linearizationpointcontainer()
avt = type_accumulation_variable() avt = type_accumulation_variable()
return (geot, lfsut, cct, cct, lfsvt, avt) return (geot, lfsut, cct, lpt, lfsvt, avt)
def nonlinear_jacobian_apply_volume_args(): def nonlinear_jacobian_apply_volume_args():
...@@ -312,8 +314,9 @@ def nonlinear_jacobian_apply_boundary_templates(): ...@@ -312,8 +314,9 @@ def nonlinear_jacobian_apply_boundary_templates():
lfsut = type_trialfunctionspace() lfsut = type_trialfunctionspace()
lfsvt = type_testfunctionspace() lfsvt = type_testfunctionspace()
cct = type_coefficientcontainer() cct = type_coefficientcontainer()
lpt = type_linearizationpointcontainer()
avt = type_accumulation_variable() avt = type_accumulation_variable()
return (geot, lfsut, cct, cct, lfsvt, avt) return (geot, lfsut, cct, lpt, lfsvt, avt)
def nonlinear_jacobian_apply_boundary_args(): def nonlinear_jacobian_apply_boundary_args():
...@@ -331,8 +334,9 @@ def nonlinear_jacobian_apply_skeleton_templates(): ...@@ -331,8 +334,9 @@ def nonlinear_jacobian_apply_skeleton_templates():
lfsut = type_trialfunctionspace() lfsut = type_trialfunctionspace()
lfsvt = type_testfunctionspace() lfsvt = type_testfunctionspace()
cct = type_coefficientcontainer() cct = type_coefficientcontainer()
lpt = type_linearizationpointcontainer()
avt = type_accumulation_variable() 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(): 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