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

Do not double-define namespace variable

parent 67f11ec1
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,8 @@ def read_ufl(uflfile):
# Read the given ufl file and execute it
uflcode = read_ufl_file(uflfile)
namespace = {}
namespace = globals()
try:
namespace = globals()
exec("from dune.perftool.ufl.execution import *\n" + uflcode, namespace)
except:
import os
......
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