diff --git a/applications/test/LduMatrix/LduMatrixTest3.C b/applications/test/LduMatrix/LduMatrixTest3.C index 39b8a069bb..f13692ec05 100644 --- a/applications/test/LduMatrix/LduMatrixTest3.C +++ b/applications/test/LduMatrix/LduMatrixTest3.C @@ -101,7 +101,7 @@ int main(int argc, char *argv[]) for (int corr=0; corr::operator*= *sourcePtr_ *= sf; } - if (upperPtr_) + // Non-uniform scaling causes a symmetric matrix + // to become asymmetric + if (symmetric() || asymmetric()) { - Field& upper = *upperPtr_; + Field& upper = this->upper(); + Field& lower = this->lower(); const unallocLabelList& l = lduAddr().lowerAddr(); + const unallocLabelList& u = lduAddr().upperAddr(); for (register label face=0; face& lower = *lowerPtr_; - - const unallocLabelList& u = lduAddr().upperAddr(); for (register label face=0; face