Skip to content

Commit 169a149

Browse files
committed
use run instead of Popen
1 parent 19ab8d0 commit 169a149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydiva2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,15 +1025,15 @@ def make(self, divadir, datafile=None, paramfile=None, contourfile=None, outputf
10251025
logger.error("File {0} doesn't exist".format(contourfile))
10261026
logger.error("Execution stopped")
10271027
return
1028-
"""
1028+
10291029
# Check for mesh
10301030
if os.path.exists(divafiles.mesh) and os.path.exists(divafiles.meshtopo):
10311031
logger.info("Mesh already exists")
10321032
else:
10331033
Diva2DMesh().make(divadir,
10341034
contourfile=divafiles.contour,
10351035
paramfile=divafiles.parameter)
1036-
"""
1036+
10371037

10381038
calcprocess = subprocess.run("./divacalc", cwd=divadirs.diva2d,
10391039
stdout=subprocess.PIPE, shell=True)

0 commit comments

Comments
 (0)