Switched to multithreading

This commit is contained in:
Edgar P. Burkhart 2022-03-15 11:37:59 +01:00
parent d55ae54d32
commit 64e5cac36f
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 20 additions and 23 deletions

View file

@ -31,6 +31,9 @@ class ReadSwash:
return self.read_nohead(path).reshape((self._n_t, self._n_x))[0, :]
return self.read_nohead(path).reshape((self._n_t, self._n_x))
def read_const(self, path):
return self.read_scalar(path, const=True)
def read_vector(self, path):
return self.read_nohead(path).reshape((self._n_t, 2, self._n_x))