Skip to content

Commit 1cff5a6

Browse files
committed
update
1 parent d8fcaa3 commit 1cff5a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Optimization/hiopHessianLowRank.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ hiopHessianLowRank::hiopHessianLowRank(hiopNlpDenseConstraints* nlp, int max_mem
108108
#ifdef HIOP_USE_MPI
109109
buff_kxk_ = new double[nlp->m() * nlp->m()];
110110
buff_2lxk_ = new double[nlp->m() * 2 * l_max_];
111-
buff1_lxlx3_ = new double[3*l_max_ * l_max_];
112-
buff2_lxlx3_ = new double[3*l_max_ * l_max_];
111+
buff1_lxlx3_ = new double[3 * l_max_ * l_max_];
112+
buff2_lxlx3_ = new double[3 * l_max_ * l_max_];
113113
#else
114114
//not needed in non-MPI mode
115115
buff_kxk_ = nullptr;
@@ -452,7 +452,7 @@ void hiopHessianLowRank::updateInternalBFGSRepresentation()
452452
B0DhInv.scale(sigma_);
453453
matTimesDiagTimesMatTrans_local(StB0DhInvYmL, *St_, B0DhInv, *Yt_);
454454
#ifdef HIOP_USE_MPI
455-
memcpy(buff1_lxlx3_+l*l, StB0DhInvYmL.local_data(), buffsize);
455+
memcpy(buff1_lxlx3_ + l * l, StB0DhInvYmL.local_data(), buffsize);
456456
#else
457457
//substract L
458458
StB0DhInvYmL.addMatrix(-1.0, *L_);

0 commit comments

Comments
 (0)