@@ -196,45 +196,45 @@ void hiopIterate::setEqualityDualsToConstant(const double& v)
196
196
yd->setToConstant (v);
197
197
}
198
198
199
- double hiopIterate::normOneOfBoundDuals () const
200
- {
201
- #ifdef HIOP_DEEPCHECKS
202
- assert (zl->matchesPattern (nlp->get_ixl ()));
203
- assert (zu->matchesPattern (nlp->get_ixu ()));
204
- assert (vl->matchesPattern (nlp->get_idl ()));
205
- assert (vu->matchesPattern (nlp->get_idu ()));
206
- #endif
207
- // work locally with all the vectors. This will result in only one MPI_Allreduce call instead of two.
208
- double nrm1 = zl->onenorm_local () + zu->onenorm_local ();
209
- #ifdef HIOP_USE_MPI
210
- double nrm1_global;
211
- int ierr = MPI_Allreduce (&nrm1, &nrm1_global, 1 , MPI_DOUBLE, MPI_SUM, nlp->get_comm ());
212
- assert (MPI_SUCCESS == ierr);
213
- nrm1 = nrm1_global;
214
- #endif
215
- nrm1 += vl->onenorm_local () + vu->onenorm_local ();
216
- return nrm1;
217
- }
199
+ // double hiopIterate::normOneOfBoundDuals() const
200
+ // {
201
+ // #ifdef HIOP_DEEPCHECKS
202
+ // assert(zl->matchesPattern(nlp->get_ixl()));
203
+ // assert(zu->matchesPattern(nlp->get_ixu()));
204
+ // assert(vl->matchesPattern(nlp->get_idl()));
205
+ // assert(vu->matchesPattern(nlp->get_idu()));
206
+ // #endif
207
+ // // work locally with all the vectors. This will result in only one MPI_Allreduce call instead of two.
208
+ // double nrm1 = zl->onenorm_local() + zu->onenorm_local();
209
+ // #ifdef HIOP_USE_MPI
210
+ // double nrm1_global;
211
+ // int ierr = MPI_Allreduce(&nrm1, &nrm1_global, 1, MPI_DOUBLE, MPI_SUM, nlp->get_comm());
212
+ // assert(MPI_SUCCESS == ierr);
213
+ // nrm1 = nrm1_global;
214
+ // #endif
215
+ // nrm1 += vl->onenorm_local() + vu->onenorm_local();
216
+ // return nrm1;
217
+ // }
218
218
219
- double hiopIterate::normOneOfEqualityDuals () const
220
- {
221
- #ifdef HIOP_DEEPCHECKS
222
- assert (zl->matchesPattern (nlp->get_ixl ()));
223
- assert (zu->matchesPattern (nlp->get_ixu ()));
224
- assert (vl->matchesPattern (nlp->get_idl ()));
225
- assert (vu->matchesPattern (nlp->get_idu ()));
226
- #endif
227
- // work locally with all the vectors. This will result in only one MPI_Allreduce call instead of two.
228
- double nrm1 = zl->onenorm_local () + zu->onenorm_local ();
229
- #ifdef HIOP_USE_MPI
230
- double nrm1_global;
231
- int ierr = MPI_Allreduce (&nrm1, &nrm1_global, 1 , MPI_DOUBLE, MPI_SUM, nlp->get_comm ());
232
- assert (MPI_SUCCESS == ierr);
233
- nrm1 = nrm1_global;
234
- #endif
235
- nrm1 += vl->onenorm_local () + vu->onenorm_local () + yc->onenorm_local () + yd->onenorm_local ();
236
- return nrm1;
237
- }
219
+ // double hiopIterate::normOneOfEqualityDuals() const
220
+ // {
221
+ // #ifdef HIOP_DEEPCHECKS
222
+ // assert(zl->matchesPattern(nlp->get_ixl()));
223
+ // assert(zu->matchesPattern(nlp->get_ixu()));
224
+ // assert(vl->matchesPattern(nlp->get_idl()));
225
+ // assert(vu->matchesPattern(nlp->get_idu()));
226
+ // #endif
227
+ // // work locally with all the vectors. This will result in only one MPI_Allreduce call instead of two.
228
+ // double nrm1 = zl->onenorm_local() + zu->onenorm_local();
229
+ // #ifdef HIOP_USE_MPI
230
+ // double nrm1_global;
231
+ // int ierr = MPI_Allreduce(&nrm1, &nrm1_global, 1, MPI_DOUBLE, MPI_SUM, nlp->get_comm());
232
+ // assert(MPI_SUCCESS == ierr);
233
+ // nrm1 = nrm1_global;
234
+ // #endif
235
+ // nrm1 += vl->onenorm_local() + vu->onenorm_local() + yc->onenorm_local() + yd->onenorm_local();
236
+ // return nrm1;
237
+ // }
238
238
239
239
// void hiopIterate::normOneOfDuals(double& nrm1Eq, double& nrm1Bnd) const
240
240
// {
0 commit comments