Skip to content
Snippets Groups Projects
Commit 4d5675ff authored by Natalie Beams's avatar Natalie Beams
Browse files

give option of limiting iterations of refiner when creating qbx object

parent 3e531b74
No related branches found
No related tags found
No related merge requests found
...@@ -248,7 +248,7 @@ class QBXLayerPotentialSource(LayerPotentialSource): ...@@ -248,7 +248,7 @@ class QBXLayerPotentialSource(LayerPotentialSource):
+ (group.nelements,)) + (group.nelements,))
@memoize_method @memoize_method
def with_refinement(self, target_order=None): def with_refinement(self, target_order=None, maxiter=3):
""" """
:returns: a tuple ``(lpot_src, cnx)``, where ``lpot_src`` is a :returns: a tuple ``(lpot_src, cnx)``, where ``lpot_src`` is a
:class:`QBXLayerPotentialSource` and ``cnx`` is a :class:`QBXLayerPotentialSource` and ``cnx`` is a
...@@ -262,7 +262,7 @@ class QBXLayerPotentialSource(LayerPotentialSource): ...@@ -262,7 +262,7 @@ class QBXLayerPotentialSource(LayerPotentialSource):
if target_order is None: if target_order is None:
target_order = self.density_discr.groups[0].order target_order = self.density_discr.groups[0].order
lpot, connection = refiner(self, lpot, connection = refiner(self,
InterpolatoryQuadratureSimplexGroupFactory(target_order)) InterpolatoryQuadratureSimplexGroupFactory(target_order), maxiter=maxiter)
return lpot, connection return lpot, connection
@property @property
......
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