Release SPHLite 0.8.2
This commit is contained in:
@@ -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")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user