diff --git a/python/dune/perftool/options.py b/python/dune/perftool/options.py index d6761605aaaaf6527dc2a08be44267a317201fbd..cfff4f26d6cbd192571ae96d9d528948a9238b59 100644 --- a/python/dune/perftool/options.py +++ b/python/dune/perftool/options.py @@ -30,6 +30,8 @@ def get_form_compiler_arguments(): help="maximal allowed l2 error squared of difference between numerical solution and interpolation of exact solution (NOTE: requires --exact-solution-expression)" ) parser.add_argument("--interactive", action="store_true", help="whether the optimization process should be guided interactively (also useful for debugging)") + parser.add_argument("--print-transformations", action="store_true", help="print out dot files after ufl tree transformations") + parser.add_argument("--print-transformations-dir", type=str, help="place where to put dot files (can be omitted)") # These are the options that I deemed necessary in uflpdelab # parser.add_argument("--param-class-file", type=str, help="The filename for the generated parameter class header") diff --git a/python/dune/perftool/ufl/transformations/__init__.py b/python/dune/perftool/ufl/transformations/__init__.py index 19577bb36f6e15478eb3783817df0be92eb2758e..d4bd87f862e7ca12611daea6a6cdb4523b0f287f 100644 --- a/python/dune/perftool/ufl/transformations/__init__.py +++ b/python/dune/perftool/ufl/transformations/__init__.py @@ -20,7 +20,7 @@ class UFLTransformationWrapper(object): # Write out a dot file from dune.perftool.options import get_option - if get_option("print_transformations", True): + if get_option("print_transformations", False): import os dir = get_option("print_transformations_dir", os.getcwd())