Commit bec23910 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'cleanup/gitignore' into 'master'

[1p_1p] Ignore temporary grid files

See merge request !1121
parents a3cabb38 121734a0
#!/usr/bin/env python
from math import *
import os.path
import subprocess
import sys
......@@ -20,6 +21,10 @@ for i in range(2, len(sys.argv)):
# loop over the different permeability ratios
for permIndex in range(0, len(k)):
# check whether executable exists
if not os.path.isfile(execName):
sys.exit(77)
# remove the old log file
subprocess.call(['rm', execName + '.log'])
print("Removed old log file (" + execName + '.log' + ")!")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment