mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-05 10:00:23 +08:00
Generalize mapPair
This commit is contained in:
@@ -24,7 +24,7 @@ class BaseRegularization(object):
|
||||
Utils.setKwargs(self, **kwargs)
|
||||
self.mesh = mesh
|
||||
assert isinstance(mesh, Mesh.BaseMesh), "mesh must be a SimPEG.Mesh object."
|
||||
self.mapping = mapping or Maps.IdentityMap(mesh)
|
||||
self.mapping = mapping or self.mapPair(mesh)
|
||||
self.mapping._assertMatchesPair(self.mapPair)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user