Commit dc1dc29c authored by Dennis Gläser's avatar Dennis Gläser

[test][facet][1pconvergence] use executable-specifig grid file names

When running the tests in parallel the box- and tpfa-specific tests were
using and overwriting the same grid file, which lead to invalid grids
during the convergence tests.
parent b5f03cb4
......@@ -41,7 +41,7 @@ for permIndex in range(0, len(k)):
sys.exit(1)
# write a temporary geo-file using num elements
tmpGeoFile = open("grids/tmp.geo", 'w')
tmpGeoFile = open("grids/" + execName + ".geo", 'w')
lines[0] = "numElemsPerSide = " + str(int(cells)) + ";\n"
for line in lines:
tmpGeoFile.write(line)
......@@ -49,17 +49,17 @@ for permIndex in range(0, len(k)):
geoFile.close()
tmpGeoFile.close()
subprocess.call(['gmsh', '-2', 'grids/tmp.geo'])
subprocess.call(['gmsh', '-2', "grids/" + execName + ".geo"])
subprocess.call(['./' + execName, 'params.input',
'-Vtk.OutputName', execName,
'-Grid.File', 'grids/tmp.msh',
'-Grid.File', "grids/" + execName + ".msh",
'-Grid.NumElemsPerSide', str(int(cells)),
'-LowDim.SpatialParams.Permeability', str(k[permIndex]),
'-Problem.OutputFileName', execName + '.log'])
# remove geo and msh file
subprocess.call(['rm', 'grids/tmp.geo'])
subprocess.call(['rm', 'grids/tmp.msh'])
subprocess.call(['rm', "grids/" + execName + ".geo"])
subprocess.call(['rm', "grids/" + execName + ".msh"])
# check the rates and append them to the log file
logfile = open(execName + '.log', "r+")
......
Markdown is supported
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