Skip to content
Snippets Groups Projects
Commit 8af1c51c authored by Robert K's avatar Robert K
Browse files

[bugfix][Python] Use FemThreadPoolExecutor instead of ThreadPoolExecutor.

parent 81db091d
No related branches found
No related tags found
No related merge requests found
Pipeline #72135 passed
......@@ -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 FemThreadPoolExecutor
# 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 FemThreadPoolExecutor(max_workers=2) as executor:
advModel = executor.submit( conservationlaw, space.gridView, advModel,
modelPatch=transform(Model,space,t,"Adv"),
virtualize=virtualize )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment