Bugfix: Initialise sumMagToDiag result to zero. Henrik Rusche

This commit is contained in:
Hrvoje Jasak 2016-06-10 10:25:12 +01:00
parent f87887df69
commit 378b24ba22

View file

@ -358,6 +358,8 @@ inline void sumMagToDiag
const TensorN<Cmpt, length>& t
)
{
result = VectorN<Cmpt, length>::zero;
for (register int i = 0; i < TensorN<Cmpt, length>::rowLength; i++)
{
for (register int j = 0; j < TensorN<Cmpt, length>::rowLength; j++)