Skip to content

Commit

Permalink
Apply pre-commmit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nychiang authored and jaelynlitz committed Nov 21, 2023
1 parent 4ef7591 commit e733b76
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/scopflow/solver/hiop/scopflow_hiop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ bool SCOPFLOWHIOPInterface::eval_f_rterm(hiop::size_type idx, const int &n,
return true;
}

bool SCOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, double *x,
bool SCOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n,
double *x,
hiop::hiopVector &gradvec) {
(void)idx;
(void)n;
Expand Down Expand Up @@ -311,11 +312,11 @@ bool SCOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, d
}

hiop::size_type SCOPFLOWHIOPInterface::get_num_rterms() const {
return (hiop::size_type) scopflow->Nc - 1;
return (hiop::size_type)scopflow->Nc - 1;
}

hiop::size_type SCOPFLOWHIOPInterface::get_num_vars() const {
return (hiop::size_type) scopflow->opflow0->nx;
return (hiop::size_type)scopflow->opflow0->nx;
}

void SCOPFLOWHIOPInterface::get_solution(double *x) const {
Expand Down
3 changes: 2 additions & 1 deletion src/scopflow/solver/hiop/scopflow_hiop.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class SCOPFLOWHIOPInterface : public hiop::hiopInterfacePriDecProblem {
const double *hess,
const char *master_options_file);

bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x, double &rval);
bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x,
double &rval);
bool eval_grad_rterm(hiop::size_type idx, const int &n, double *x,
hiop::hiopVector &grad);

Expand Down
3 changes: 2 additions & 1 deletion src/sopflow/solver/hiop/sopflow_hiop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ bool SOPFLOWHIOPInterface::eval_f_rterm(hiop::size_type idx, const int &n,
return true;
}

bool SOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, double *x,
bool SOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n,
double *x,
hiop::hiopVector &gradvec) {
(void)idx;
(void)n;
Expand Down
3 changes: 2 additions & 1 deletion src/sopflow/solver/hiop/sopflow_hiop.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class SOPFLOWHIOPInterface : public hiop::hiopInterfacePriDecProblem {
const double *hess,
const char *master_options_file);

bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x, double &rval);
bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x,
double &rval);
bool eval_grad_rterm(hiop::size_type idx, const int &n, double *x,
hiop::hiopVector &grad);

Expand Down

0 comments on commit e733b76

Please sign in to comment.