Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
c57673c9
Commit
c57673c9
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Plain Diff
Merge branch 'cherry-pick-
bec8d3f4
' into 'releases/3.0'
Merge branch 'fix/facet-1p-convtest-parallel' into 'master' See merge request
!1447
parents
e66c2a35
ed1b3872
No related branches found
No related tags found
1 merge request
!1447
Merge branch 'fix/facet-1p-convtest-parallel' into 'master'
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/multidomain/facet/1p_1p/analytical/convergencetest.py
+7
-7
7 additions, 7 deletions
test/multidomain/facet/1p_1p/analytical/convergencetest.py
with
7 additions
and
7 deletions
test/multidomain/facet/1p_1p/analytical/convergencetest.py
+
7
−
7
View file @
c57673c9
...
@@ -5,10 +5,10 @@ import os.path
...
@@ -5,10 +5,10 @@ import os.path
import
subprocess
import
subprocess
import
sys
import
sys
if
len
(
sys
.
argv
)
>
5
or
len
(
sys
.
argv
)
<
3
:
if
len
(
sys
.
argv
)
<
3
:
sys
.
stderr
.
write
(
"
Invalid number of arguments given. Please provide the following arguments (in this order):
\n\
sys
.
stderr
.
write
(
"
Invalid number of arguments given. Please provide the following arguments (in this order):
\n\
- the name of the executable (either test_facetcoupling_tpfa_1p1p or test_facetcoupling_box_1p1p)
\n\
- the name of the executable (either test_facetcoupling_tpfa_1p1p or test_facetcoupling_box_1p1p)
\n\
-
between one and thre
e fracture permeabilities you want to
conside
r
"
)
-
th
e fracture permeabilities you want to
perform the convergence test fo
r
"
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
# name of the executable
# name of the executable
...
@@ -41,7 +41,7 @@ for permIndex in range(0, len(k)):
...
@@ -41,7 +41,7 @@ for permIndex in range(0, len(k)):
sys
.
exit
(
1
)
sys
.
exit
(
1
)
# write a temporary geo-file using num elements
# 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
"
lines
[
0
]
=
"
numElemsPerSide =
"
+
str
(
int
(
cells
))
+
"
;
\n
"
for
line
in
lines
:
for
line
in
lines
:
tmpGeoFile
.
write
(
line
)
tmpGeoFile
.
write
(
line
)
...
@@ -49,17 +49,17 @@ for permIndex in range(0, len(k)):
...
@@ -49,17 +49,17 @@ for permIndex in range(0, len(k)):
geoFile
.
close
()
geoFile
.
close
()
tmpGeoFile
.
close
()
tmpGeoFile
.
close
()
subprocess
.
call
([
'
gmsh
'
,
'
-2
'
,
'
grids/
tmp
.geo
'
])
subprocess
.
call
([
'
gmsh
'
,
'
-2
'
,
"
grids/
"
+
execName
+
"
.geo
"
])
subprocess
.
call
([
'
./
'
+
execName
,
'
params.input
'
,
subprocess
.
call
([
'
./
'
+
execName
,
'
params.input
'
,
'
-Vtk.OutputName
'
,
execName
,
'
-Vtk.OutputName
'
,
execName
,
'
-Grid.File
'
,
'
grids/
tmp
.msh
'
,
'
-Grid.File
'
,
"
grids/
"
+
execName
+
"
.msh
"
,
'
-Grid.NumElemsPerSide
'
,
str
(
int
(
cells
)),
'
-Grid.NumElemsPerSide
'
,
str
(
int
(
cells
)),
'
-LowDim.SpatialParams.Permeability
'
,
str
(
k
[
permIndex
]),
'
-LowDim.SpatialParams.Permeability
'
,
str
(
k
[
permIndex
]),
'
-Problem.OutputFileName
'
,
execName
+
'
.log
'
])
'
-Problem.OutputFileName
'
,
execName
+
'
.log
'
])
# remove geo and msh file
# remove geo and msh file
subprocess
.
call
([
'
rm
'
,
'
grids/
tmp
.geo
'
])
subprocess
.
call
([
'
rm
'
,
"
grids/
"
+
execName
+
"
.geo
"
])
subprocess
.
call
([
'
rm
'
,
'
grids/
tmp
.msh
'
])
subprocess
.
call
([
'
rm
'
,
"
grids/
"
+
execName
+
"
.msh
"
])
# check the rates and append them to the log file
# check the rates and append them to the log file
logfile
=
open
(
execName
+
'
.log
'
,
"
r+
"
)
logfile
=
open
(
execName
+
'
.log
'
,
"
r+
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment