Skip to content

Commit

Permalink
Merge pull request #92 from simpeg/master
Browse files Browse the repository at this point in the history
merge fix in fields size to removeSrcType
  • Loading branch information
lheagy committed May 7, 2015
2 parents 6f487e1 + 4bda4b6 commit f832418
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SimPEG/Problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ def _getField(self, name, ind):
assert hasattr(self, func), 'The alias field function is a string, but it does not exist in the Fields class.'
func = getattr(self, func)
out = func(self._fields[alias][:,ind], srcII)

if out.shape[1] == 1:
if out.shape[0] == out.size:
out = Utils.mkvc(out)
return out

Expand Down

0 comments on commit f832418

Please sign in to comment.