Skip to content
Snippets Groups Projects
Commit aaf88717 authored by Markus Holzer's avatar Markus Holzer
Browse files

test

parent 777bdfaa
No related branches found
No related tags found
1 merge request!275WIP: Revamp the type system
......@@ -79,7 +79,7 @@ def test_strided(instruction_set, dtype):
ast = ps.create_kernel(update_rule, config=config)
assert len(warn) == 0
# ps.show_code(ast)
ps.show_code(ast)
func = ast.compile()
ref_config = pystencils.config.CreateKernelConfig(default_number_float=type_string)
ref_func = ps.create_kernel(update_rule, config=ref_config).compile()
......@@ -92,6 +92,9 @@ def test_strided(instruction_set, dtype):
func(g=dst, f=arr)
ref_func(g=ref, f=arr)
print("dst: ", dst)
print("np array: ", arr)
np.testing.assert_almost_equal(dst[1:-1, 1:-1], ref[1:-1, 1:-1], 13 if dtype == 'double' else 5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment