[Trilinos-Users] Deep copy bug?

Nico Schlömer nico.schloemer at ua.ac.be
Tue Mar 2 14:49:35 MST 2010


Hi all,

the bug is found.
It was essentially caused by the fact that the two NOX::Abstract::Vector's
on the left-hand side and the right hand side of the assignment where not
of the same length().
Rather than cowardly bailing out, this caused unpredictable behavior: In
some situations, part of the vector would be copied over (which is what we
wanted and which caused the bug to go unnoticed for a rather long time),
sometimes the vector on the left-hand side of the assignment would be left
untouched.

Should there be a length()-compliance test in the vector assignment
methods? I'll forward this to the respective code maintainers anyway.

Cheers,
Nico




More information about the Trilinos-Users mailing list