Skip to content

NOX: Copy vector size in NOX::LAPACK::Vector::operator=()

James Willenbring requested to merge etphipp:nox_lapack_vector_size into develop

Created by: etphipp

A NOX/LOCA user was seeing strange behavior when using the LAPACK interface, which I tracked down to inconsistent vector sizes because operator=() doesn't copy the vector's size. I guess this was technically incorrect usage on his part, but I don't see any reason why the following shouldn't work:

NOX::LAPACK::Vector x; x = NOX::LAPACK::Vector(100);

With this change, this will now work as expected.

Merge request reports

Loading