Skip to content

Commit

Permalink
fixed compil error
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpetra committed Sep 23, 2024
1 parent ea5cafd commit 28c4567
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Drivers/Dense/NlpDenseConsEx1Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ using namespace axom;
using namespace hiop;

static bool self_check(size_type n, double obj_value);
#ifdef HIOP_USE_AXOM
static bool do_load_checkpoint_test(const size_type& mesh_size,
const double& ratio,
const double& obj_val_expected);

#endif
static bool parse_arguments(int argc, char **argv, size_type& n, double& distortion_ratio, bool& self_check)
{
n = 20000; distortion_ratio=1.; self_check=false; //default options
Expand Down Expand Up @@ -162,6 +163,7 @@ static bool self_check(size_type n, double objval)
return true;
}

#ifdef HIOP_USE_AXOM
/**
* An illustration on how to use load_state_from_sidre_group API method of HiOp's algorithm class.
*
Expand All @@ -171,7 +173,6 @@ static bool do_load_checkpoint_test(const size_type& mesh_size,
const double& ratio,
const double& obj_val_expected)
{
#ifdef HIOP_USE_AXOM
//Pretend this is new job and recreate the HiOp objects.
DenseConsEx1 problem(mesh_size, ratio);
hiop::hiopNlpDenseConstraints nlp(problem);
Expand Down Expand Up @@ -211,8 +212,6 @@ static bool do_load_checkpoint_test(const size_type& mesh_size,
if(obj_val != obj_val_expected) {
return false;
}

#endif

return true;
}
#endif // HIOP_USE_AXOM

0 comments on commit 28c4567

Please sign in to comment.