#include <gpr/neb/RgsaddleClient.h>
Public Types | |
| using | Band = RgsaddleBand* |
| using | SellaMin = RgsaddleSellaMin* |
| using | SellaSaddle = RgsaddleSellaSaddle* |
| using | MinMode = RgsaddleMinMode* |
| using | Index1 = RgsaddleIndex1* |
| using | Irc = RgsaddleIrc* |
Public Member Functions | |
| RgsaddleClient () | |
| ~RgsaddleClient ()=default | |
| RgsaddleClient (const RgsaddleClient &)=delete | |
| RgsaddleClient & | operator= (const RgsaddleClient &)=delete |
| bool | load (const std::string &path={}) |
| bool | loaded () const noexcept |
| Band | bandCreate (const rgsaddle_band_config_t *cfg, int64_t n_images, int64_t n_atoms, const double *positions) |
| int | bandStep (Band band, rgsaddle_surface_fn surface, void *user, rgsaddle_report_t *out) |
| int | bandPositions (Band band, double *out) |
| int | bandSetPositions (Band band, const double *positions) |
| int | bandReset (Band band) |
| int | bandSetForceGate (Band band, rgsaddle_force_gate_t gate) |
| bool | hasBandExpPrecon () const noexcept |
| rgsaddle_band_set_exp_precon (ABI minor 22) is in the library. | |
| int | bandSetExpPrecon (Band band, double a, double c_stab, double mu, double r_cut_factor) |
| void | bandFree (Band band) |
| SellaMin | sellaMinCreate (const rgsaddle_sella_min_config_t *cfg, int64_t n_atoms, const double *position, const double *masses) |
| int | sellaMinStep (SellaMin sess, rgsaddle_surface_fn surface, void *user, rgsaddle_report_t *out) |
| int | sellaMinPosition (SellaMin sess, double *out) |
| void | sellaMinFree (SellaMin sess) |
| SellaSaddle | sellaSaddleCreate (const rgsaddle_sella_saddle_config_t *cfg, int64_t n_atoms, const double *position, const double *masses) |
| int | sellaSaddleStep (SellaSaddle sess, rgsaddle_surface_fn surface, void *user, rgsaddle_report_t *out) |
| int | sellaSaddlePosition (SellaSaddle sess, double *out) |
| void | sellaSaddleFree (SellaSaddle sess) |
| Index1 | index1Create (const rgsaddle_index1_config_t *cfg, int64_t n_atoms, const double *position, const double *hessian, const double *masses) |
| int | index1Step (Index1 sess, rgsaddle_surface_fn surface, void *user, rgsaddle_report_t *out) |
| int | index1Position (Index1 sess, double *out) |
| void | index1Free (Index1 sess) |
| bool | hasIndex1 () const noexcept |
| bool | hasSellaSaddle () const noexcept |
| MinMode | minModeCreate (const rgsaddle_minmode_config_t *cfg, int64_t n_atoms, const double *position, const double *mode) |
| int | minModeStep (MinMode sess, rgsaddle_surface_fn surface, void *user, rgsaddle_report_t *out) |
| int | minModePosition (MinMode sess, double *out) |
| int | minModeSetForceGate (MinMode sess, rgsaddle_force_gate_t gate) |
| void | minModeFree (MinMode sess) |
| bool | hasMinMode () const noexcept |
| bool | hasIrc () const noexcept |
| bool | hasIrcFromSurface () const noexcept |
| rgsaddle_irc_create_from_surface. The Lanczos kick needs it. | |
| bool | hasIrcControls () const noexcept |
| int | ircSetLengths (Irc session, double kick, double max_step, double min_step, int adaptive) |
| Irc | ircCreate (const rgsaddle_irc_config_t *cfg, int64_t n_atoms, const double *saddle, const double *masses, const double *mode) |
| Irc | ircCreateFromSurface (const rgsaddle_irc_config_t *cfg, int64_t n_atoms, const double *saddle, const double *masses, const double *seed, rgsaddle_surface_fn surface, void *user) |
| int | ircStep (Irc session, rgsaddle_surface_fn surface, void *user, rgsaddle_report_t *out) |
| int | ircPosition (const Irc session, double *out) |
| int | ircSetDirection (Irc session, int32_t direction) |
| int | ircReset (Irc session) |
| void | ircFree (Irc session) |
| const std::string & | lastMessage () const noexcept |
| bool | hasPathSeeds () const noexcept |
| int | idppFixedPath (int64_t n_images, int64_t n_atoms, const double *reactant, const double *product, const double *cell, const uint8_t *mask, int64_t max_iterations, double grad_tol, double max_move, double *out) |
| int | sidppAlternatingPath (bool inverse_distance, int64_t n_images, int64_t n_atoms, const double *reactant, const double *product, const double *cell, const uint8_t *mask, double alpha, int64_t short_iterations, int64_t final_iterations, double force_tol, double max_move, double spring, double *out) |
| rgsaddle_sidpp_alternating_path, or its inverse-distance variant. | |
| bool | hasKappaDimer () const noexcept |
| int | kappaDimerForce (const rgsaddle_kappa_config_t *config, int64_t dof, const double *gradient, const double *mode, int64_t n_excluded, const double *excluded, rgsaddle_hessian_fn hessian, void *user, double *force, rgsaddle_kappa_report_t *report) |
| bool | hasHessianBofill () const noexcept |
| rgsaddle_hessian_bofill is in the linked library. | |
| int | hessianBofill (int64_t n, const double *step, const double *dgradient, double *hessian) |
| Row-major n by n Hessian, updated only when the runtime accepts. | |
| uint32_t | abiMajor () const noexcept |
| uint32_t | abiMinor () const noexcept |
| int | orderOneSessionKind () const noexcept |
Static Public Attributes | |
| static constexpr uint32_t | kMinimumAbiMinor = 71 |
Call site for the linked librgsaddle. The library is a build dependency, so the symbols are bound at link time. load checks the ABI stamp and ignores a path.
Definition at line 24 of file RgsaddleClient.h.
| using gpr::neb::RgsaddleClient::Band = RgsaddleBand* |
Definition at line 38 of file RgsaddleClient.h.
| using gpr::neb::RgsaddleClient::Index1 = RgsaddleIndex1* |
Definition at line 77 of file RgsaddleClient.h.
| using gpr::neb::RgsaddleClient::Irc = RgsaddleIrc* |
Definition at line 106 of file RgsaddleClient.h.
| using gpr::neb::RgsaddleClient::MinMode = RgsaddleMinMode* |
Definition at line 41 of file RgsaddleClient.h.
| using gpr::neb::RgsaddleClient::SellaMin = RgsaddleSellaMin* |
Definition at line 39 of file RgsaddleClient.h.
| using gpr::neb::RgsaddleClient::SellaSaddle = RgsaddleSellaSaddle* |
Definition at line 40 of file RgsaddleClient.h.
| gpr::neb::RgsaddleClient::RgsaddleClient | ( | ) |
Definition at line 17 of file RgsaddleClient.cpp.
|
default |
|
delete |
|
inlinenodiscardnoexcept |
Definition at line 183 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
Definition at line 187 of file RgsaddleClient.h.
| RgsaddleClient::Band gpr::neb::RgsaddleClient::bandCreate | ( | const rgsaddle_band_config_t * | cfg, |
| int64_t | n_images, | ||
| int64_t | n_atoms, | ||
| const double * | positions ) |
Definition at line 90 of file RgsaddleClient.cpp.
| void gpr::neb::RgsaddleClient::bandFree | ( | Band | band | ) |
Definition at line 136 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::bandPositions | ( | Band | band, |
| double * | out ) |
Definition at line 105 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::bandReset | ( | Band | band | ) |
Definition at line 117 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::bandSetExpPrecon | ( | Band | band, |
| double | a, | ||
| double | c_stab, | ||
| double | mu, | ||
| double | r_cut_factor ) |
Per-image exponential metric on the band solver. Nonpositive a, c_stab, r_cut_factor take the dest defaults; mu <= 0 is estimated.
Definition at line 129 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::bandSetForceGate | ( | Band | band, |
| rgsaddle_force_gate_t | gate ) |
Definition at line 123 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::bandSetPositions | ( | Band | band, |
| const double * | positions ) |
Definition at line 111 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::bandStep | ( | Band | band, |
| rgsaddle_surface_fn | surface, | ||
| void * | user, | ||
| rgsaddle_report_t * | out ) |
Definition at line 98 of file RgsaddleClient.cpp.
|
inlinenodiscardnoexcept |
rgsaddle_band_set_exp_precon (ABI minor 22) is in the library.
Definition at line 52 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
rgsaddle_hessian_bofill is in the linked library.
Definition at line 176 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
Definition at line 85 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
rgsaddle_irc_create, rgsaddle_irc_step and rgsaddle_irc_set_direction are in the linked library.
Definition at line 109 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
rgsaddle_irc_set_lengths. Adaptive Morokuma, the separate kick length and the mass-weighted force gate are in the linked library.
Definition at line 120 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
rgsaddle_irc_create_from_surface. The Lanczos kick needs it.
Definition at line 114 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
Definition at line 166 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
Definition at line 101 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
The IDPP and alternating S-IDPP path seeds (ABI minor 71) are in the library.
Definition at line 147 of file RgsaddleClient.h.
|
inlinenodiscardnoexcept |
Definition at line 89 of file RgsaddleClient.h.
| int gpr::neb::RgsaddleClient::hessianBofill | ( | int64_t | n, |
| const double * | step, | ||
| const double * | dgradient, | ||
| double * | hessian ) |
Row-major n by n Hessian, updated only when the runtime accepts.
Definition at line 84 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::idppFixedPath | ( | int64_t | n_images, |
| int64_t | n_atoms, | ||
| const double * | reactant, | ||
| const double * | product, | ||
| const double * | cell, | ||
| const uint8_t * | mask, | ||
| int64_t | max_iterations, | ||
| double | grad_tol, | ||
| double | max_move, | ||
| double * | out ) |
rgsaddle_idpp_fixed_path. mask is NULL or one byte per atom, 1 for an atom held at the reactant coordinates. out holds n_images rows.
Definition at line 43 of file RgsaddleClient.cpp.
| RgsaddleClient::Index1 gpr::neb::RgsaddleClient::index1Create | ( | const rgsaddle_index1_config_t * | cfg, |
| int64_t | n_atoms, | ||
| const double * | position, | ||
| const double * | hessian, | ||
| const double * | masses ) |
Definition at line 197 of file RgsaddleClient.cpp.
| void gpr::neb::RgsaddleClient::index1Free | ( | Index1 | sess | ) |
Definition at line 221 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::index1Position | ( | Index1 | sess, |
| double * | out ) |
Definition at line 215 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::index1Step | ( | Index1 | sess, |
| rgsaddle_surface_fn | surface, | ||
| void * | user, | ||
| rgsaddle_report_t * | out ) |
Definition at line 208 of file RgsaddleClient.cpp.
| RgsaddleClient::Irc gpr::neb::RgsaddleClient::ircCreate | ( | const rgsaddle_irc_config_t * | cfg, |
| int64_t | n_atoms, | ||
| const double * | saddle, | ||
| const double * | masses, | ||
| const double * | mode ) |
Definition at line 259 of file RgsaddleClient.cpp.
| RgsaddleClient::Irc gpr::neb::RgsaddleClient::ircCreateFromSurface | ( | const rgsaddle_irc_config_t * | cfg, |
| int64_t | n_atoms, | ||
| const double * | saddle, | ||
| const double * | masses, | ||
| const double * | seed, | ||
| rgsaddle_surface_fn | surface, | ||
| void * | user ) |
Definition at line 269 of file RgsaddleClient.cpp.
| void gpr::neb::RgsaddleClient::ircFree | ( | Irc | session | ) |
Definition at line 304 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::ircPosition | ( | const Irc | session, |
| double * | out ) |
Definition at line 286 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::ircReset | ( | Irc | session | ) |
Definition at line 298 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::ircSetDirection | ( | Irc | session, |
| int32_t | direction ) |
Definition at line 292 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::ircSetLengths | ( | Irc | session, |
| double | kick, | ||
| double | max_step, | ||
| double | min_step, | ||
| int | adaptive ) |
Definition at line 309 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::ircStep | ( | Irc | session, |
| rgsaddle_surface_fn | surface, | ||
| void * | user, | ||
| rgsaddle_report_t * | out ) |
Definition at line 279 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::kappaDimerForce | ( | const rgsaddle_kappa_config_t * | config, |
| int64_t | dof, | ||
| const double * | gradient, | ||
| const double * | mode, | ||
| int64_t | n_excluded, | ||
| const double * | excluded, | ||
| rgsaddle_hessian_fn | hessian, | ||
| void * | user, | ||
| double * | force, | ||
| rgsaddle_kappa_report_t * | report ) |
Definition at line 72 of file RgsaddleClient.cpp.
|
inlinenodiscardnoexcept |
Definition at line 140 of file RgsaddleClient.h.
| bool gpr::neb::RgsaddleClient::load | ( | const std::string & | path = {} | ) |
Definition at line 26 of file RgsaddleClient.cpp.
|
inlinenodiscardnoexcept |
Definition at line 33 of file RgsaddleClient.h.
| RgsaddleClient::MinMode gpr::neb::RgsaddleClient::minModeCreate | ( | const rgsaddle_minmode_config_t * | cfg, |
| int64_t | n_atoms, | ||
| const double * | position, | ||
| const double * | mode ) |
Definition at line 226 of file RgsaddleClient.cpp.
| void gpr::neb::RgsaddleClient::minModeFree | ( | MinMode | sess | ) |
Definition at line 254 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::minModePosition | ( | MinMode | sess, |
| double * | out ) |
Definition at line 241 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::minModeSetForceGate | ( | MinMode | sess, |
| rgsaddle_force_gate_t | gate ) |
Definition at line 247 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::minModeStep | ( | MinMode | sess, |
| rgsaddle_surface_fn | surface, | ||
| void * | user, | ||
| rgsaddle_report_t * | out ) |
Definition at line 234 of file RgsaddleClient.cpp.
|
delete |
|
inlinenodiscardnoexcept |
1 when the last created order-one session is Sella, 2 when it is the index-1 Newton session. 0 before either create succeeds.
Definition at line 193 of file RgsaddleClient.h.
| RgsaddleClient::SellaMin gpr::neb::RgsaddleClient::sellaMinCreate | ( | const rgsaddle_sella_min_config_t * | cfg, |
| int64_t | n_atoms, | ||
| const double * | position, | ||
| const double * | masses ) |
Definition at line 141 of file RgsaddleClient.cpp.
| void gpr::neb::RgsaddleClient::sellaMinFree | ( | SellaMin | sess | ) |
Definition at line 162 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::sellaMinPosition | ( | SellaMin | sess, |
| double * | out ) |
Definition at line 156 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::sellaMinStep | ( | SellaMin | sess, |
| rgsaddle_surface_fn | surface, | ||
| void * | user, | ||
| rgsaddle_report_t * | out ) |
Definition at line 149 of file RgsaddleClient.cpp.
| RgsaddleClient::SellaSaddle gpr::neb::RgsaddleClient::sellaSaddleCreate | ( | const rgsaddle_sella_saddle_config_t * | cfg, |
| int64_t | n_atoms, | ||
| const double * | position, | ||
| const double * | masses ) |
Definition at line 167 of file RgsaddleClient.cpp.
| void gpr::neb::RgsaddleClient::sellaSaddleFree | ( | SellaSaddle | sess | ) |
Definition at line 192 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::sellaSaddlePosition | ( | SellaSaddle | sess, |
| double * | out ) |
Definition at line 186 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::sellaSaddleStep | ( | SellaSaddle | sess, |
| rgsaddle_surface_fn | surface, | ||
| void * | user, | ||
| rgsaddle_report_t * | out ) |
Definition at line 178 of file RgsaddleClient.cpp.
| int gpr::neb::RgsaddleClient::sidppAlternatingPath | ( | bool | inverse_distance, |
| int64_t | n_images, | ||
| int64_t | n_atoms, | ||
| const double * | reactant, | ||
| const double * | product, | ||
| const double * | cell, | ||
| const uint8_t * | mask, | ||
| double | alpha, | ||
| int64_t | short_iterations, | ||
| int64_t | final_iterations, | ||
| double | force_tol, | ||
| double | max_move, | ||
| double | spring, | ||
| double * | out ) |
rgsaddle_sidpp_alternating_path, or its inverse-distance variant.
Definition at line 54 of file RgsaddleClient.cpp.
|
staticconstexpr |
Definition at line 26 of file RgsaddleClient.h.