Skip to content

Commit 069e171

Browse files
committed
v0.5.0
1 parent 55f075d commit 069e171

File tree

9 files changed

+47
-22
lines changed

9 files changed

+47
-22
lines changed

ChangeLog.rst

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,28 @@ Changelog
1414
.. Meta
1515
.. ~~~~
1616
17+
Unreleased
18+
-------------------------------
19+
Added
20+
~~~~~
21+
Changed
22+
~~~~~~~
23+
Removed
24+
~~~~~~~
25+
Bugfixes
26+
~~~~~~~~
27+
Meta
28+
~~~~
29+
30+
1731
.. Version is specified in vcpkg.json, index.rst and version.hpp
1832
19-
Unreleased
33+
Version 0.5.0
2034
-------------------------------
35+
36+
This release introduce saddle-point finding and min->sp->min pathway finding. The concept of a generic potential was made more concrete to prevent a template explosion.
37+
38+
2139
Added
2240
~~~~~
2341

@@ -33,6 +51,7 @@ Changed
3351
- Generalised ``StepLBFGS``'s ``.newton_step()``.
3452
- ``Generic`` potential API + constructor changes
3553
- Unified minimiser, saddle finder and dimer return codes to follow C conventions (truthy on failure);
54+
- ``Spline`` methods clamp input.
3655

3756
Removed
3857
~~~~~~~
@@ -45,16 +64,12 @@ Bugfixes
4564
- Const-corrected ``Generic::gradient``.
4665
- Padded spline with terminator to fix-up floating point rounding errors.
4766

48-
Meta
49-
~~~~
50-
5167

5268
Version 0.4.0
5369
--------------
5470

5571
This release introduces generic potentials and the first concrete potential into openFLY, EAM. The EAM implementation includes support for analytic Hessians and is fully openMP parallelised. Additionally, an efficient parallel implementation of the LBFGS minimiser is included.
5672

57-
5873
Added
5974
~~~~~
6075

@@ -69,8 +84,6 @@ Added
6984
- New ``Hessian`` class.
7085
- ``Frozen`` property has a tag to enable GSD IO.
7186

72-
73-
7487
Changed
7588
~~~~~~~
7689

@@ -89,7 +102,6 @@ Bugfixes
89102

90103
- Box (Ortho and Triclinic, valid bounds now include zero).
91104

92-
93105
Version 0.3.0
94106
------------------------
95107

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Welcome to the libFLY API reference this serves as information for developers to
1010

1111
api/utility.rst
1212
api/system.rst
13-
api/io.rst
1413
api/neighbour.rst
14+
api/io.rst
1515
api/potential.rst
1616
api/minimise.rst
1717
api/saddle.rst

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OpenFLY 0.4.0
1+
OpenFLY 0.4.x-dev
22
===================================
33

44
.. toctree::

include/libfly/saddle/find.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace fly::saddle {
9696
/**
9797
* @brief Number of simultaneous SP searches per new environment.
9898
*/
99-
int batch_size = 10;
99+
int batch_size = std::min(max_failed_searches, num_threads);
100100
/**
101101
* @brief Fraction of distance between initial position and SP that dimer is displaced along its axis before minimisation.
102102
*/

include/libfly/saddle/rotor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* \file rotor.hpp
3030
*
31-
* @brief Class to orient a dimer.
31+
* @brief Class to orient a dimer, exposes part of the ``Dimer`` classes implementation for re-use.
3232
*/
3333

3434
namespace fly::saddle {

include/libfly/system/VoS.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ namespace fly::system {
6060
using vector::emplace_back;
6161

6262
/**
63-
* @brief Provides an emplace_back with explicit ``matrix_t`` parameters.
63+
* @brief Provides an emplace_back with explicit ``matrix_t const&`` parameters.
6464
*/
6565
decltype(auto) emplace_back(typename T::matrix_t const &...args) { return vector::emplace_back(args...); }
6666

6767
/**
68-
* @brief Provides an emplace_back with explicit ``matrix_t`` parameters.
68+
* @brief Provides an emplace_back with explicit ``matrix_t &&`` parameters.
6969
*/
7070
decltype(auto) emplace_back(typename T::matrix_t &&...args) { return vector::emplace_back(std::move(args)...); }
7171
};

include/libfly/utility/spline.hpp

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ namespace fly {
5454
/**
5555
* @brief Interpolate tabulated function.
5656
*
57+
* \rst
58+
*
59+
* .. warning::
60+
* This silently clamps ``x`` inside the tabulated region.
61+
*
62+
* \endrst
63+
*
5764
* @param x Point to interpolate ``f``.
5865
* @return ``f(x)`` The interpolated value of the function at ``x``.
5966
*/
@@ -65,6 +72,13 @@ namespace fly {
6572
/**
6673
* @brief Interpolate tabulated function's gradient.
6774
*
75+
* \rst
76+
*
77+
* .. warning::
78+
* This silently clamps ``x`` inside the tabulated region.
79+
*
80+
* \endrst
81+
*
6882
* @param x Point to interpolate ``f'``.
6983
* @return ``f'(x)`` The interpolated gradient of the function at ``x``.
7084
*/
@@ -78,6 +92,9 @@ namespace fly {
7892
*
7993
* \rst
8094
*
95+
* .. warning::
96+
* This silently clamps ``x`` inside the tabulated region.
97+
*
8198
* .. note::
8299
* This may not be continuous or smooth.
83100
*
@@ -105,13 +122,9 @@ namespace fly {
105122
//
106123
ASSERT(x >= 0, "x={}, not less than zero", x);
107124

108-
auto i = static_cast<std::size_t>(x * m_inv_dx);
109-
110-
// Could clamp this value:
111-
112-
i = std::min(i, m_spines.size() - 1);
125+
auto i = std::min(static_cast<std::size_t>(x * m_inv_dx), m_spines.size() - 1);
113126

114-
ASSERT(i < m_spines.size(), "x={} is outside tabulated region with i={}, len={}", x, i, m_spines.size());
127+
// ASSERT(i < m_spines.size(), "x={} is outside tabulated region with i={}, len={}", x, i, m_spines.size());
115128

116129
return {x - static_cast<double>(i) * m_dx, m_spines[i]};
117130
}

include/libfly/utility/version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
*/
2222

2323
#define FLY_VERSION_MAJOR 0 ///< The major version umber.
24-
#define FLY_VERSION_MINOR 4 ///< The minor version umber.
24+
#define FLY_VERSION_MINOR 5 ///< The minor version umber.
2525
#define FLY_VERSION_PATCH 0 ///< The patch umber.

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openfly",
3-
"version-semver": "0.4.0",
3+
"version-semver": "0.5.0",
44
"dependencies": [
55
{
66
"name": "fmt",

0 commit comments

Comments
 (0)