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

Fix reuse of grid function in skeleton case

parent 275517e4
No related branches found
No related tags found
No related merge requests found
...@@ -158,6 +158,9 @@ def localoperator_basename(form_ident): ...@@ -158,6 +158,9 @@ def localoperator_basename(form_ident):
def name_gridfunction_member(coeff, restriction, diffOrder=0): def name_gridfunction_member(coeff, restriction, diffOrder=0):
# We reuse the grid function for volume integrals in skeleton integrals
if restriction == Restriction.NEGATIVE:
restriction = Restriction.NONE
restr = "_n" if restriction == Restriction.POSITIVE else "" restr = "_n" if restriction == Restriction.POSITIVE else ""
name = "local_gridfunction_coeff{}_diff{}{}".format(coeff.count(), diffOrder, restr) name = "local_gridfunction_coeff{}_diff{}{}".format(coeff.count(), diffOrder, restr)
define_gridfunction_member(name, coeff, restriction, diffOrder) define_gridfunction_member(name, coeff, restriction, diffOrder)
......
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