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
8af1c51c
Commit
8af1c51c
authored
10 months ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix][Python] Use FemThreadPoolExecutor instead of ThreadPoolExecutor.
parent
81db091d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#72135
passed
8 months ago
Stage: test
Changes
1
Pipelines
69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/dune/femdg/_operators.py
+2
-2
2 additions, 2 deletions
python/dune/femdg/_operators.py
with
2 additions
and
2 deletions
python/dune/femdg/_operators.py
+
2
−
2
View file @
8af1c51c
...
...
@@ -21,7 +21,7 @@ from dune.source.cplusplus import SourceWriter, ListWriter, StringWriter
from
ufl
import
SpatialCoordinate
,
TestFunction
,
TrialFunction
,
as_vector
,
dx
,
grad
,
inner
,
FacetNormal
from
dune.femdg.patch
import
transform
from
concurrent.futures
import
ThreadPoolExecutor
from
dune.fem.utility
import
Fem
ThreadPoolExecutor
# limiter can be ScalingLimiter or FV based limiter with FV type reconstructions for troubled cells
def
createLimiter
(
domainSpace
,
rangeSpace
=
None
,
bounds
=
[
1e-12
,
1.
],
limiter
=
'
scaling
'
):
...
...
@@ -126,7 +126,7 @@ def femDGModels(Model, space, initialTime=0):
virtualize
=
False
# use multi-processing to build models
with
ThreadPoolExecutor
(
max_workers
=
2
)
as
executor
:
with
Fem
ThreadPoolExecutor
(
max_workers
=
2
)
as
executor
:
advModel
=
executor
.
submit
(
conservationlaw
,
space
.
gridView
,
advModel
,
modelPatch
=
transform
(
Model
,
space
,
t
,
"
Adv
"
),
virtualize
=
virtualize
)
...
...
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