Fix: postProcess incorrect log path

This commit is contained in:
L-Nafaryus 2021-12-25 13:36:27 +05:00
parent 11b612a99f
commit 59e44dd08d
No known key found for this signature in database
GPG Key ID: C76D8DCD2727DBB7

View File

@ -18,7 +18,7 @@ class PostProcess(object):
def flowRate(self, patch: str):
func = "patchFlowRate(patch={})".format(patch)
filepath = path.join(self.path, "postProcessing", func, "0", "surfaceFieldValue.dat")
postProcess(func, cwd = self.path, logpath = self.path)
postProcess(func, cwd = self.path, logpath = path.join(self.path, "patchFlowRate.log"))
surfaceFieldValue = datReader(filepath)
return surfaceFieldValue["sum(phi)"][-1]