Skip to content

Commit bfcbcd6

Browse files
Update devito/ir/iet/visitors.py
Co-authored-by: Ed Caunt <[email protected]>
1 parent c616bdc commit bfcbcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devito/ir/iet/visitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def visit_PointerCast(self, o):
508508
elif isinstance(o.obj, DeviceMap):
509509
v = f._C_field_dmap
510510
else:
511-
raise AssertionError('rvalue is not a recognised type')
511+
raise TypeError('rvalue is not a recognised type')
512512

513513
rvalue = f'({cstr} {rshape}) {f._C_name}->{v}'
514514
else:

0 commit comments

Comments
 (0)