Skip to content

Commit 28c4567

Browse files
committed
fixed compil error
1 parent ea5cafd commit 28c4567

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Drivers/Dense/NlpDenseConsEx1Driver.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ using namespace axom;
1919
using namespace hiop;
2020

2121
static bool self_check(size_type n, double obj_value);
22+
#ifdef HIOP_USE_AXOM
2223
static bool do_load_checkpoint_test(const size_type& mesh_size,
2324
const double& ratio,
2425
const double& obj_val_expected);
25-
26+
#endif
2627
static bool parse_arguments(int argc, char **argv, size_type& n, double& distortion_ratio, bool& self_check)
2728
{
2829
n = 20000; distortion_ratio=1.; self_check=false; //default options
@@ -162,6 +163,7 @@ static bool self_check(size_type n, double objval)
162163
return true;
163164
}
164165

166+
#ifdef HIOP_USE_AXOM
165167
/**
166168
* An illustration on how to use load_state_from_sidre_group API method of HiOp's algorithm class.
167169
*
@@ -171,7 +173,6 @@ static bool do_load_checkpoint_test(const size_type& mesh_size,
171173
const double& ratio,
172174
const double& obj_val_expected)
173175
{
174-
#ifdef HIOP_USE_AXOM
175176
//Pretend this is new job and recreate the HiOp objects.
176177
DenseConsEx1 problem(mesh_size, ratio);
177178
hiop::hiopNlpDenseConstraints nlp(problem);
@@ -211,8 +212,6 @@ static bool do_load_checkpoint_test(const size_type& mesh_size,
211212
if(obj_val != obj_val_expected) {
212213
return false;
213214
}
214-
215-
#endif
216-
217215
return true;
218216
}
217+
#endif // HIOP_USE_AXOM

0 commit comments

Comments
 (0)