Skip to content

Commit a57ff63

Browse files
committed
[ci] fix windows test
1 parent a988ff7 commit a57ff63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iso2mesh/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,22 +1388,22 @@ def meshrefine(node, elem, *args, **kwargs):
13881388
moreopt += opt["moreopt"]
13891389

13901390
if elem.shape[1] == 3 and not setquality:
1391-
status = os.system(
1391+
status, cmdout = subprocess.getstatusoutput(
13921392
f'"{mcpath("gtsrefine", exesuff)}" {moreopt} < "{mwpath("pre_refine.gts")}" > "{mwpath("post_refine.gts")}"'
13931393
)
13941394
if status:
13951395
raise RuntimeError("gtsrefine command failed")
13961396
newnode, newelem = readgts(mwpath("post_refine.gts"))
13971397
newface = newelem
13981398
elif elem.shape[1] == 3:
1399-
status = os.system(
1399+
status, cmdout = subprocess.getstatusoutput(
14001400
f'"{mcpath("tetgen1.5", exesuff)}" {moreopt} -p -A "{mwpath("pre_refine.poly")}"'
14011401
)
14021402
if status:
14031403
raise RuntimeError("tetgen command failed")
14041404
newnode, newelem, newface = readtetgen(mwpath("pre_refine.1"))
14051405
elif moreopt:
1406-
status = os.system(
1406+
status, cmdout = subprocess.getstatusoutput(
14071407
f'"{mcpath("tetgen", exesuff)}" {moreopt} -r "{mwpath("pre_refine.1")}"'
14081408
)
14091409
if status:

0 commit comments

Comments
 (0)