Fixing bug in write out.

This commit is contained in:
GudniRos
2016-04-08 09:40:26 -07:00
parent 083742cb40
commit 90b0301408
+1 -1
View File
@@ -222,7 +222,7 @@ class SaveOutputDictEveryIteration(_SaveEveryIteration):
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: