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

Introduce a vectorization error

parent 171b1962
No related branches found
No related tags found
No related merge requests found
......@@ -15,3 +15,7 @@ class PerftoolCodegenError(PerftoolError):
class PerftoolLoopyError(PerftoolError):
pass
class PerftoolVectorizationError(PerftoolCodegenError):
pass
\ No newline at end of file
......@@ -18,7 +18,7 @@ from dune.perftool.sumfact.tabulation import (BasisTabulationMatrixArray,
quadrature_points_per_direction,
set_quadrature_points,
)
from dune.perftool.error import PerftoolError
from dune.perftool.error import PerftoolVectorizationError
from dune.perftool.options import get_option
from dune.perftool.tools import add_to_frozendict, round_to_multiple
......@@ -33,7 +33,7 @@ import math
@generator_factory(item_tags=("vecinfo", "dryrundata"), cache_key_generator=lambda o, n: o)
def _cache_vectorization_info(old, new):
if new is None:
raise PerftoolError("Vectorization info for sum factorization kernel was not gathered correctly!")
raise PerftoolVectorizationError("Vectorization info for sum factorization kernel was not gathered correctly!")
return new
......
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