Skip to content

Commit

Permalink
ADD: shortcut inv.setInterfaceConstraint (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Günther committed Mar 26, 2024
1 parent c924854 commit 11f4ddc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pygimli/frameworks/inversion.py
Expand Up @@ -508,6 +508,19 @@ def setInterRegionConstraint(self, region1, region2, strength):
self.fop.regionManager().setInterRegionConstraint(
region1, region2, strength)

def setInterfaceConstraint(self, marker, strength):
"""Set regularization strength on specific interface.
Parameters
----------
marker : int
Boundary marker of the interface
strength : float
weighting factor for roughness across boundary
"""
self.fop.regionManager().setInterfaceConstraint(
marker, strength)

def setConstraintWeights(self, cWeight):
"""Set weighting factors for the invidual rows of the C matrix."""
self.inv.setCWeight(cWeight)
Expand Down

0 comments on commit 11f4ddc

Please sign in to comment.