Commit c749042e authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent 71ed8ec8
......@@ -94,7 +94,7 @@ class SumOperator(LinearOperator):
opsnew[i] = opsnew[i]._add(sum)
sum = 0.
break
if sum != 0:
if sum != 0 or len(opsnew) == 0:
# have to add the scaling operator at the end
opsnew.append(ScalingOperator(sum, lastdom))
negnew.append(False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment