Skip to content

Commit

Permalink
change function namel; remive pnnl ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nychiang committed Jun 6, 2024
1 parent 49094a9 commit e9f8cc5
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 192 deletions.
152 changes: 0 additions & 152 deletions .gitlab/pnnl-ci.yml

This file was deleted.

16 changes: 8 additions & 8 deletions src/Interface/hiopInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,14 @@ class hiopInterfaceBase
* can be then used in host memory space (without the need to rely on or use Umpire).
*
*/
virtual bool ws_iterate_callback(const double* x,
const double* z_L,
const double* z_U,
const double* yc,
const double* yd,
const double* s,
const double* v_L,
const double* v_U)
virtual bool iterate_full_callback(const double* x,
const double* z_L,
const double* z_U,
const double* yc,
const double* yd,
const double* s,
const double* v_L,
const double* v_U)
{
return true;
}
Expand Down
48 changes: 24 additions & 24 deletions src/Optimization/hiopNlpFormulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1271,14 +1271,14 @@ bool hiopNlpFormulation::user_callback_iterate(int iter,
return bret;
}

bool hiopNlpFormulation::user_callback_ws_iterate(hiopVector& x,
hiopVector& z_L,
hiopVector& z_U,
hiopVector& y_c,
hiopVector& y_d,
hiopVector& s,
hiopVector& v_L,
hiopVector& v_U)
bool hiopNlpFormulation::user_callback_full_iterate(hiopVector& x,
hiopVector& z_L,
hiopVector& z_U,
hiopVector& y_c,
hiopVector& y_d,
hiopVector& s,
hiopVector& v_L,
hiopVector& v_U)
{
assert(x.get_size()==n_vars_);
assert(y_c.get_size() == n_cons_eq_);
Expand Down Expand Up @@ -1316,23 +1316,23 @@ bool hiopNlpFormulation::user_callback_ws_iterate(hiopVector& x,
hiopVectorPar vu_host(n_cons_ineq_, vec_distrib_, comm_);
v_U.copy_to_vectorpar(zu_host);

bret = interface_base.ws_iterate_callback(x_host.local_data_const(),
zl_host.local_data_const(),
zu_host.local_data_const(),
yc_host.local_data_const(),
yd_host.local_data_const(),
s_host.local_data_const(),
vl_host.local_data_const(),
vu_host.local_data_const());
bret = interface_base.iterate_full_callback(x_host.local_data_const(),
zl_host.local_data_const(),
zu_host.local_data_const(),
yc_host.local_data_const(),
yd_host.local_data_const(),
s_host.local_data_const(),
vl_host.local_data_const(),
vu_host.local_data_const());
} else {
bret = interface_base.ws_iterate_callback(x.local_data_const(),
z_L.local_data_const(),
z_U.local_data_const(),
y_c.local_data_const(),
y_d.local_data_const(),
s.local_data_const(),
v_L.local_data_const(),
v_U.local_data_const());
bret = interface_base.iterate_full_callback(x.local_data_const(),
z_L.local_data_const(),
z_U.local_data_const(),
y_c.local_data_const(),
y_d.local_data_const(),
s.local_data_const(),
v_L.local_data_const(),
v_U.local_data_const());
}
return bret;
}
Expand Down
16 changes: 8 additions & 8 deletions src/Optimization/hiopNlpFormulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ class hiopNlpFormulation
int ls_trials);

virtual
bool user_callback_ws_iterate(hiopVector& x,
hiopVector& z_L,
hiopVector& z_U,
hiopVector& y_c,
hiopVector& y_d,
hiopVector& s,
hiopVector& v_L,
hiopVector& v_U);
bool user_callback_full_iterate(hiopVector& x,
hiopVector& z_L,
hiopVector& z_U,
hiopVector& y_c,
hiopVector& y_d,
hiopVector& s,
hiopVector& v_L,
hiopVector& v_U);

virtual
bool user_force_update(int iter,
Expand Down

0 comments on commit e9f8cc5

Please sign in to comment.