Release SPHLite 0.8.2

This commit is contained in:
Codex
2026-07-05 17:00:13 +08:00
parent 0044ab67ad
commit 3934dc213b
73 changed files with 11818 additions and 259 deletions
+6
View File
@@ -95,6 +95,9 @@ class SPHLite:
self.lib.sphlite_write_output.argtypes = [ctypes.c_int, ctypes.c_double]
self.lib.sphlite_write_output.restype = ctypes.c_int
self.lib.sphlite_write_vtu.argtypes = [ctypes.c_char_p]
self.lib.sphlite_write_vtu.restype = ctypes.c_int
self.lib.sphlite_write_restart.argtypes = [ctypes.c_char_p]
self.lib.sphlite_write_restart.restype = ctypes.c_int
@@ -403,6 +406,9 @@ class SPHLite:
def write_output(self, step: int = 0, time: float = 0.0) -> None:
self._check(self.lib.sphlite_write_output(int(step), float(time)))
def write_vtu(self, filename: str | Path) -> None:
self._check(self.lib.sphlite_write_vtu(str(filename).encode("utf-8")))
def write_restart(self, filename: str | Path) -> None:
self._check(self.lib.sphlite_write_restart(str(filename).encode("utf-8")))