curModel in problem and combo maps no longer takes a mesh.

This commit is contained in:
rowanc1
2014-05-18 16:09:47 -07:00
parent 907e0eed47
commit be0be1e986
3 changed files with 23 additions and 4 deletions
+2
View File
@@ -6,6 +6,8 @@ class Model(np.ndarray):
def __new__(cls, input_array, mapping=None):
assert isinstance(mapping, IdentityMap), 'mapping must be a SimPEG.Mapping'
assert isinstance(input_array, np.ndarray), 'input_array must be a numpy array'
assert len(input_array.shape) == 1, 'input_array must be a 1D vector'
obj = np.asarray(input_array).view(cls)
obj._mapping = mapping
if not obj.size == mapping.nP: