Skip to content

Commit

Permalink
update changelog and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
svigerske committed Dec 14, 2024
1 parent 07d7c99 commit 66245ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ More detailed information about incremental changes can be found in the

## 3.14

### 3.14.17 (2024-xx-yy)
### 3.14.17 (2024-12-14)

- Added `Ipopt::RegisterInterruptHandler()` and `Ipopt::UnregisterInterruptHandler()`
to `IpUtils.hpp` to wrap handling of interrupt signals.
Added parameter `checkinterrupt` (default false) to `AmplTNLP` constructor
to enable check for interrupt signal in `intermediate_callback`.
- The `ipopt` and `ipopt_sens` executables can now be interrupted by SIGINT/SIGHUP
(POSIX systems) or SIGINT/SIGTERM/SIGABRT (Windows systems).
- The `ipopt` and `ipopt_sens` executables and scalable problems C++ examples can now be
interrupted by SIGINT/SIGHUP (systems with sigaction()) or SIGINT/SIGTERM/SIGABRT (Windows systems).
- New option `mumps_mpi_communicator` to specify the MPI communicator when using
an MPI-enabled build of MUMPS [#790, by Alex Tyler Chapman].
- Updated build system to current autotools versions; initial support for icx/ifx and flang
- Removed use of `vsprintf` and `sprintf`. Added `IpoptData::Append_info_string(std::string,double)`.
- Removed use of `strcpy`, `strncpy`, `strdup`, and `sscanf`.
- Use `fopen_s` and `getenv_s` instead of `fopen` and `getenv`, respectively, if available.
- Using `fopen_s` and `getenv_s` instead of `fopen` and `getenv`, respectively, if available.
- Added workaround for using Pardiso from Intel MKL 2025.0.1 [#799].
This requires checking the MKL version at runtime and can be disabled by defining `IPOPT_NO_MKLVERSIONCHECK`.

Expand Down
2 changes: 1 addition & 1 deletion examples/ScalableProblems/solve_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ int main(
app->Options()->SetNumericValue("max_wall_time", runtime);
#endif

Ipopt::RegisterInterruptHandler(NULL, &tnlp->interrupted_);
Ipopt::RegisterInterruptHandler(NULL, &tnlp->interrupted_, 5);

status = app->OptimizeTNLP(GetRawPtr(tnlp));

Expand Down
6 changes: 3 additions & 3 deletions src/Common/IpUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ IPOPTLIB_EXPORT Number WallclockTime();

/** register handler for interrupt signals
*
* On POSIX systems, catches SIGHUP and SIGINT signals.
* On Windows, catches SIGTERM, SIGABRT, SIGBREAK, and SIGINT signals.
* On systems with sigaction(), catches SIGHUP and SIGINT signals.
* Otherwise, catches SIGTERM, SIGABRT, SIGINT signals via signal().
*
* @return whether registering the handler was successful
* @since 3.14.17
Expand All @@ -116,7 +116,7 @@ IPOPTLIB_EXPORT bool RegisterInterruptHandler(

/** unregister previously registered handler for interrupt signals
*
* @return whether registering the handler was successful
* @return whether unregistering the handler was successful
* @since 3.14.17
*/
IPOPTLIB_EXPORT bool UnregisterInterruptHandler(void);
Expand Down

0 comments on commit 66245ce

Please sign in to comment.