updates to problem

This commit is contained in:
rowanc1
2014-04-15 10:05:07 -07:00
parent 9b9ed41ec7
commit 36ca4937f2
3 changed files with 24 additions and 23 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
import Utils, Survey, numpy as np, scipy.sparse as sp
import Maps
import Maps, Mesh
class BaseProblem(object):
"""
@@ -18,6 +18,7 @@ class BaseProblem(object):
def __init__(self, mesh, mapping=None, **kwargs):
Utils.setKwargs(self, **kwargs)
assert isinstance(mesh, Mesh.BaseMesh), "mesh must be a SimPEG.Mesh object."
self.mesh = mesh
self.mapping = mapping or Maps.IdentityMap(mesh)
self.mapping._assertMatchesPair(self.mapPair)