From 1cff5a636bb676df4b562689d3a8ade55ca2d5b0 Mon Sep 17 00:00:00 2001 From: nychiang Date: Thu, 29 Jun 2023 23:37:38 -0700 Subject: [PATCH] update --- src/Optimization/hiopHessianLowRank.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Optimization/hiopHessianLowRank.cpp b/src/Optimization/hiopHessianLowRank.cpp index 0790ad82e..38e501b1e 100644 --- a/src/Optimization/hiopHessianLowRank.cpp +++ b/src/Optimization/hiopHessianLowRank.cpp @@ -108,8 +108,8 @@ hiopHessianLowRank::hiopHessianLowRank(hiopNlpDenseConstraints* nlp, int max_mem #ifdef HIOP_USE_MPI buff_kxk_ = new double[nlp->m() * nlp->m()]; buff_2lxk_ = new double[nlp->m() * 2 * l_max_]; - buff1_lxlx3_ = new double[3*l_max_ * l_max_]; - buff2_lxlx3_ = new double[3*l_max_ * l_max_]; + buff1_lxlx3_ = new double[3 * l_max_ * l_max_]; + buff2_lxlx3_ = new double[3 * l_max_ * l_max_]; #else //not needed in non-MPI mode buff_kxk_ = nullptr; @@ -452,7 +452,7 @@ void hiopHessianLowRank::updateInternalBFGSRepresentation() B0DhInv.scale(sigma_); matTimesDiagTimesMatTrans_local(StB0DhInvYmL, *St_, B0DhInv, *Yt_); #ifdef HIOP_USE_MPI - memcpy(buff1_lxlx3_+l*l, StB0DhInvYmL.local_data(), buffsize); + memcpy(buff1_lxlx3_ + l * l, StB0DhInvYmL.local_data(), buffsize); #else //substract L StB0DhInvYmL.addMatrix(-1.0, *L_);