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

Name the gridfunction space

parent 6a2fe082
No related branches found
No related tags found
No related merge requests found
......@@ -755,11 +755,20 @@ def print_matrix():
"Dune::printmatrix(std::cout, native(m),\"global stiffness matrix\",\"row\",9,1);"]
@preamble
def define_gfs_name(element):
gfs = name_gfs(element)
#TODO make something sensible here
return "{}.name(\"bla\");".format(gfs)
@preamble
def vtkoutput():
element = _form.coefficients()[0].element()
define_gfs_name(element)
include_file("dune/pdelab/gridfunctionspace/vtk.hh", filetag="driver")
vtkwriter = name_vtkwriter()
gfs = name_gfs(_form.coefficients()[0].element())
gfs = name_gfs(element)
vec = name_vector()
vtkfile = name_vtkfile()
dune_solve()
......
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