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
7692965d
Commit
7692965d
authored
6 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
set up things for multithreading
parent
b1e31625
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Latest features added to dune-fem-dg.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pydemo/euler/main.py
+5
-3
5 additions, 3 deletions
pydemo/euler/main.py
pydemo/euler/paramBase
+1
-1
1 addition, 1 deletion
pydemo/euler/paramBase
python/dune/femdg/testing.py
+3
-3
3 additions, 3 deletions
python/dune/femdg/testing.py
with
9 additions
and
7 deletions
pydemo/euler/main.py
+
5
−
3
View file @
7692965d
import
mpi4py.rc
mpi4py
.
rc
.
threaded
=
True
from
dune.fem
import
parameter
from
dune.femdg.testing
import
run
from
euler
import
sod
as
problem
#
from euler import vortex as problem
#
from euler import sod as problem
from
euler
import
vortex
as
problem
# from euler import leVeque as problem
# from euler import radialSod3 as problem
...
...
@@ -17,4 +19,4 @@ primitive=lambda Model,uh: {"pressure":Model.toPrim(uh)[2]}
run
(
*
problem
(),
startLevel
=
0
,
polOrder
=
2
,
limiter
=
"
default
"
,
primitive
=
primitive
,
saveStep
=
0.1
,
subsamp
=
2
,
dt
=
None
)
dt
=
None
,
nThreads
=
4
,
grid
=
"
yasp
"
)
This diff is collapsed.
Click to expand it.
pydemo/euler/paramBase
+
1
−
1
View file @
7692965d
...
...
@@ -6,7 +6,7 @@ fem.parallel.numberofthreads: 1
# write diagnostics file (
# 0 don't, 1 only speedup file, 2 write all runfiles
# 3 only write 0, others at end, 4 all files at end for scaling)
fem.parallel.diagnostics:
1
fem.parallel.diagnostics:
4
# if true non-blocking communication is enabled
femdg.nonblockingcomm: true
fem.threads.verbose: true
...
...
This diff is collapsed.
Click to expand it.
python/dune/femdg/testing.py
+
3
−
3
View file @
7692965d
...
...
@@ -9,9 +9,9 @@ from ufl import dot, SpatialCoordinate
def
run
(
Model
,
initial
,
x0
,
x1
,
N
,
endTime
,
name
,
exact
,
polOrder
,
limiter
=
"
default
"
,
startLevel
=
0
,
primitive
=
None
,
saveStep
=
None
,
subsamp
=
0
,
dt
=
None
):
dt
=
None
,
grid
=
"
yasp
"
,
nThreads
=
1
):
domain
=
cartesianDomain
(
x0
,
x1
,
N
,
periodic
=
[
False
,
False
])
grid
=
create
.
grid
(
"
alucube
"
,
domain
)
grid
=
create
.
grid
(
grid
,
domain
)
grid
.
hierarchicalGrid
.
globalRefine
(
startLevel
)
dimR
=
Model
.
dimension
t
=
0
...
...
@@ -20,7 +20,7 @@ def run(Model, initial, x0,x1,N, endTime, name, exact,
space
=
create
.
space
(
"
dgonb
"
,
grid
,
order
=
polOrder
,
dimrange
=
dimR
)
u_h
=
space
.
interpolate
(
initial
,
name
=
'
u_h
'
)
operator
=
createFemDGSolver
(
Model
,
space
,
limiter
=
limiter
)
operator
=
createFemDGSolver
(
Model
,
space
,
limiter
=
limiter
,
nThreads
=
nThreads
)
operator
.
applyLimiter
(
u_h
);
print
(
"
number of elements:
"
,
grid
.
size
(
0
),
flush
=
True
)
if
saveStep
is
not
None
:
...
...
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