Skip to content

Commit

Permalink
v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorWilliams committed Oct 10, 2022
1 parent 55f075d commit 069e171
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 22 deletions.
28 changes: 20 additions & 8 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,28 @@ Changelog
.. Meta
.. ~~~~
Unreleased
-------------------------------
Added
~~~~~
Changed
~~~~~~~
Removed
~~~~~~~
Bugfixes
~~~~~~~~
Meta
~~~~


.. Version is specified in vcpkg.json, index.rst and version.hpp
Unreleased
Version 0.5.0
-------------------------------

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.


Added
~~~~~

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

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

Meta
~~~~


Version 0.4.0
--------------

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.


Added
~~~~~

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



Changed
~~~~~~~

Expand All @@ -89,7 +102,6 @@ Bugfixes

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


Version 0.3.0
------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Welcome to the libFLY API reference this serves as information for developers to

api/utility.rst
api/system.rst
api/io.rst
api/neighbour.rst
api/io.rst
api/potential.rst
api/minimise.rst
api/saddle.rst
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OpenFLY 0.4.0
OpenFLY 0.4.x-dev
===================================

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion include/libfly/saddle/find.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace fly::saddle {
/**
* @brief Number of simultaneous SP searches per new environment.
*/
int batch_size = 10;
int batch_size = std::min(max_failed_searches, num_threads);
/**
* @brief Fraction of distance between initial position and SP that dimer is displaced along its axis before minimisation.
*/
Expand Down
2 changes: 1 addition & 1 deletion include/libfly/saddle/rotor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* \file rotor.hpp
*
* @brief Class to orient a dimer.
* @brief Class to orient a dimer, exposes part of the ``Dimer`` classes implementation for re-use.
*/

namespace fly::saddle {
Expand Down
4 changes: 2 additions & 2 deletions include/libfly/system/VoS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ namespace fly::system {
using vector::emplace_back;

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

/**
* @brief Provides an emplace_back with explicit ``matrix_t`` parameters.
* @brief Provides an emplace_back with explicit ``matrix_t &&`` parameters.
*/
decltype(auto) emplace_back(typename T::matrix_t &&...args) { return vector::emplace_back(std::move(args)...); }
};
Expand Down
25 changes: 19 additions & 6 deletions include/libfly/utility/spline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ namespace fly {
/**
* @brief Interpolate tabulated function.
*
* \rst
*
* .. warning::
* This silently clamps ``x`` inside the tabulated region.
*
* \endrst
*
* @param x Point to interpolate ``f``.
* @return ``f(x)`` The interpolated value of the function at ``x``.
*/
Expand All @@ -65,6 +72,13 @@ namespace fly {
/**
* @brief Interpolate tabulated function's gradient.
*
* \rst
*
* .. warning::
* This silently clamps ``x`` inside the tabulated region.
*
* \endrst
*
* @param x Point to interpolate ``f'``.
* @return ``f'(x)`` The interpolated gradient of the function at ``x``.
*/
Expand All @@ -78,6 +92,9 @@ namespace fly {
*
* \rst
*
* .. warning::
* This silently clamps ``x`` inside the tabulated region.
*
* .. note::
* This may not be continuous or smooth.
*
Expand Down Expand Up @@ -105,13 +122,9 @@ namespace fly {
//
ASSERT(x >= 0, "x={}, not less than zero", x);

auto i = static_cast<std::size_t>(x * m_inv_dx);

// Could clamp this value:

i = std::min(i, m_spines.size() - 1);
auto i = std::min(static_cast<std::size_t>(x * m_inv_dx), m_spines.size() - 1);

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

return {x - static_cast<double>(i) * m_dx, m_spines[i]};
}
Expand Down
2 changes: 1 addition & 1 deletion include/libfly/utility/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
*/

#define FLY_VERSION_MAJOR 0 ///< The major version umber.
#define FLY_VERSION_MINOR 4 ///< The minor version umber.
#define FLY_VERSION_MINOR 5 ///< The minor version umber.
#define FLY_VERSION_PATCH 0 ///< The patch umber.
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openfly",
"version-semver": "0.4.0",
"version-semver": "0.5.0",
"dependencies": [
{
"name": "fmt",
Expand Down

0 comments on commit 069e171

Please sign in to comment.