Skip to content

Commit

Permalink
Fixing bug in write out.
Browse files Browse the repository at this point in the history
  • Loading branch information
grosenkj committed Apr 8, 2016
1 parent 083742c commit 90b0301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimPEG/Directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def endIter(self):
mref = 0
mx = self.reg.Wx * ( self.reg.mapping * (self.invProb.curModel - mref) )
phi_mx = 0.5 * mx.dot(mx)
if self.prob.mesh.dim < 2:
if self.prob.mesh.dim >= 2:
my = self.reg.Wy * ( self.reg.mapping * (self.invProb.curModel - mref) )
phi_my = 0.5 * my.dot(my)
else:
Expand Down

0 comments on commit 90b0301

Please sign in to comment.