Skip to content

Commit

Permalink
addresed reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpetra committed Sep 25, 2024
1 parent 28c4567 commit 27d15f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,15 @@ if(HIOP_USE_RAJA)
endif()

if(HIOP_USE_AXOM)
find_package(AXOM CONFIG
PATHS ${AXOM_DIR} ${AXOM_DIR}/lib/cmake/
REQUIRED)
target_link_libraries(hiop_tpl INTERFACE axom)
message(STATUS "Found AXOM pkg-config: ${AXOM_CONFIG}")
if(HIOP_USE_MPI)
find_package(AXOM CONFIG
PATHS ${AXOM_DIR} ${AXOM_DIR}/lib/cmake/
REQUIRED)
target_link_libraries(hiop_tpl INTERFACE axom)
message(STATUS "Found AXOM pkg-config: ${AXOM_CONFIG}")
elseif(HIOP_USE_MPI)
message(FATAL_ERROR "Error: HIOP_USE_MPI is required when HIOP_USE_AXOM is ON")
endif()
endif()


Expand Down
2 changes: 1 addition & 1 deletion src/Optimization/hiopAlgFilterIPM.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Group; // forward declaration

namespace hiop
{

class hiopAlgFilterIPMBase {
public:
hiopAlgFilterIPMBase(hiopNlpFormulation* nlp_, const bool within_FR = false);
Expand Down
1 change: 0 additions & 1 deletion src/Optimization/hiopKKTLinSys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,6 @@ bool hiopKKTLinSys::compute_directions_w_IR(const hiopResidual* resid, hiopItera
bool bret = bicgIR_->solve(dir, resid);

nlp_->runStats.kkt.nIterRefinInner += bicgIR_->get_sol_num_iter();
//nlp_->runStats.kkt.tmSolveInner.stop();
if(!bret) {
nlp_->log->printf(hovWarning, "%s", bicgIR_->get_convergence_info().c_str());

Expand Down

0 comments on commit 27d15f2

Please sign in to comment.