Skip to content
Snippets Groups Projects
Commit 3c391614 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

precompute: complain if subst rule not found

parent f65ebfd7
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -379,7 +379,12 @@ def precompute(kernel, subst_use, sweep_inames=[], within=None,
from loopy.kernel.data import parse_tag
default_tag = parse_tag(default_tag)
subst = kernel.substitutions[subst_name]
try:
subst = kernel.substitutions[subst_name]
except KeyError:
raise LoopyError("substitution rule '%s' not found"
% subst_name)
c_subst_name = subst_name.replace(".", "_")
# }}}
......
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