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

Add reasonable subsampling to vtkwriters!

parent d38b66d8
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ def type_vtkwriter():
@preamble
def define_subsamplinglevel(name):
ini = name_initree()
return "int {} = {}.get<int>(\"vtk.subsamplinglevel\", 0);".format(name, ini)
return "int {} = {}.get<int>(\"vtk.subsamplinglevel\", {});".format(name, ini, max(get_trial_element().degree() - 1, 0))
def name_subsamplinglevel():
......
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