λ python test_rounding.py
Libsmoldyn 'bounds' error in smolAddPanel: drawing slices and stacks need to be positive
Traceback (most recent call last):
File "C:\tools\msys64\home\dilaw\Work\GITHUB\Smoldyn\tests\test_rounding.py", line 8, in <module>
test = s.addSurface("test", panels=[d1])
File "C:\Python310\lib\site-packages\smoldyn\smoldyn.py", line 2088, in addSurface
return Surface(simulation=super(), name=name, panels=panels)
File "C:\Python310\lib\site-packages\smoldyn\smoldyn.py", line 955, in __init__
self._addToSmoldyn()
File "C:\Python310\lib\site-packages\smoldyn\smoldyn.py", line 975, in _addToSmoldyn
assert k == _smoldyn.ErrorCode.ok, f"Failed to add panel {self.name}, {k}"
AssertionError: Failed to add panel test, ErrorCode.bounds
Following snippets throws bound error in libsmoldyn but only on Win and OSX. It works fine on Linux.
Here is error output
Reported by Philips Luthert over email.