From 6eb2d5c7b0be9958dc24323aceee0004ecde3cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de> Date: Thu, 25 Aug 2016 13:12:33 +0200 Subject: [PATCH] Default: write no dot files --- python/dune/perftool/options.py | 2 ++ python/dune/perftool/ufl/transformations/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/dune/perftool/options.py b/python/dune/perftool/options.py index d6761605..cfff4f26 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 19577bb3..d4bd87f8 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()) -- GitLab