Bugfix: Initialise sumMagToDiag result to zero. Henrik Rusche
This commit is contained in:
parent
f87887df69
commit
378b24ba22
1 changed files with 2 additions and 0 deletions
|
@ -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++)
|
||||
|
|
Reference in a new issue