Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
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
Service Desk
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
dune-fem
dune-fem-dg
Commits
c8bc92b9
Commit
c8bc92b9
authored
4 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[feature][testdg] Enabled threaded testing.
parent
5037a1d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!29
Fix threading with python.
Pipeline
#34476
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pydemo/euler/testdg.py
+6
-3
6 additions, 3 deletions
pydemo/euler/testdg.py
with
6 additions
and
3 deletions
pydemo/euler/testdg.py
+
6
−
3
View file @
c8bc92b9
# import mpi4py.rc
# mpi4py.rc.threaded = False
import
os
# set number of threads to be used for thread parallel version
os
.
environ
[
'
OMP_NUM_THREADS
'
]
=
'
4
'
from
dune.fem
import
parameter
from
dune.femdg.testing
import
run
...
...
@@ -14,6 +16,7 @@ dim = 2
gamma
=
1.4
parameter
.
append
({
"
fem.verboserank
"
:
-
1
})
#parameter.append({"fem.threads.verbose": True})
primitive
=
lambda
Model
,
uh
:
{
"
pressure
"
:
Model
.
toPrim
(
uh
)[
2
]}
parameters
=
{
"
fem.ode.odesolver
"
:
"
EX
"
,
...
...
@@ -40,7 +43,7 @@ Model.exact = None
run
(
Model
,
startLevel
=
0
,
polOrder
=
2
,
limiter
=
"
default
"
,
primitive
=
primitive
,
saveStep
=
0.16
,
subsamp
=
2
,
dt
=
None
,
threading
=
Fals
e
,
grid
=
"
alucube
"
,
space
=
"
dgonb
"
,
dt
=
None
,
threading
=
Tru
e
,
grid
=
"
alucube
"
,
space
=
"
dgonb
"
,
parameters
=
parameters
)
# print(str(parameter))
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