Skip to content

Commit

Permalink
Fix SIMD doctests, and run SIMD doctests at each commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Etienne committed Aug 3, 2023
1 parent b357375 commit 76357c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SIMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def lookup_rational(arg):
return arg

if map_sym_to_rat is None:
expr, map_sym_to_rat = cse_preprocess(expr)
cse_preprocessed_expr_list, map_sym_to_rat = cse_preprocess(expr)
expr = cse_preprocessed_expr_list[0]

map_rat_to_sym = {map_sym_to_rat[v]:v for v in map_sym_to_rat}

Expand Down
2 changes: 1 addition & 1 deletion UnitTesting/run_NRPy_UnitTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ add_test WeylScal4NRPy/tests/test_WeylScal4NRPy.py
# TODO: add your tests here
echo "Starting doctest unit tests!"
failed_unittest=0
for file in expr_tree.py indexedexp.py loop.py functional.py finite_difference_helpers.py assert_equal.py sugar.py; do
for file in expr_tree.py indexedexp.py loop.py functional.py finite_difference_helpers.py assert_equal.py sugar.py SIMD.py; do
echo Running doctest on file: $file
$PYTHONEXEC -m doctest $file
if [ $? == 1 ]
Expand Down

0 comments on commit 76357c9

Please sign in to comment.