Skip to content
Snippets Groups Projects
Commit 25273f20 authored by Marcel Koch's avatar Marcel Koch
Browse files

add initialization of corners

parent 399eb99c
No related branches found
No related tags found
No related merge requests found
...@@ -504,6 +504,12 @@ def define_element_corners(name): ...@@ -504,6 +504,12 @@ def define_element_corners(name):
n_corners = get_form().ufl_cell().num_vertices() n_corners = get_form().ufl_cell().num_vertices()
temporary_variable(name, shape_impl = ('fv', 'fv'), shape = (n_corners, local_dimension())) temporary_variable(name, shape_impl = ('fv', 'fv'), shape = (n_corners, local_dimension()))
iname = "i_corner"
domain(iname, n_corners)
from dune.perftool.generation import instruction
instruction(code="{0}[{1}] = {2}.corner({3});".format(name, iname, name_cell_geometry(Restriction.NONE), iname),
assignees=frozenset({name}),
within_inames=frozenset({iname}), within_inames_is_final=True)
def name_element_corners(): def name_element_corners():
......
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