.. index:: pair: class; gpr::neb::RgsaddleClient .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client: class gpr::neb::RgsaddleClient ============================== .. toctree:: :hidden: Overview ~~~~~~~~ Call site for the linked librgsaddle. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class RgsaddleClient { public: // typedefs typedef RgsaddleBand* :target:`Band`; typedef RgsaddleSellaMin* :target:`SellaMin`; typedef RgsaddleSellaSaddle* :target:`SellaSaddle`; typedef RgsaddleMinMode* :target:`MinMode`; typedef RgsaddleIndex1* :target:`Index1`; typedef RgsaddleIrc* :target:`Irc`; // fields static uint32_t :target:`kMinimumAbiMinor` = 71; // construction :target:`RgsaddleClient`(); :target:`RgsaddleClient`(const RgsaddleClient&); :target:`~RgsaddleClient`(); // methods :ref:`RgsaddleClient`& :target:`operator=`(const :ref:`RgsaddleClient`&); bool :target:`load`(const std::string& path = {}); bool :target:`loaded`() const; :ref:`Band` :target:`bandCreate`(const rgsaddle_band_config_t* cfg, int64_t n_images, int64_t n_atoms, const double* positions); int :target:`bandStep`(:ref:`Band` band, rgsaddle_surface_fn surface, void* user, rgsaddle_report_t* out); int :target:`bandPositions`(:ref:`Band` band, double* out); int :target:`bandSetPositions`(:ref:`Band` band, const double* positions); int :target:`bandReset`(:ref:`Band` band); int :target:`bandSetForceGate`(:ref:`Band` band, rgsaddle_force_gate_t gate); bool :ref:`hasBandExpPrecon`() const; int :ref:`bandSetExpPrecon`(:ref:`Band` band, double a, double c_stab, double mu, double r_cut_factor); void :target:`bandFree`(:ref:`Band` band); :ref:`SellaMin` :target:`sellaMinCreate`(const rgsaddle_sella_min_config_t* cfg, int64_t n_atoms, const double* position, const double* masses); int :target:`sellaMinStep`(:ref:`SellaMin` sess, rgsaddle_surface_fn surface, void* user, rgsaddle_report_t* out); int :target:`sellaMinPosition`(:ref:`SellaMin` sess, double* out); void :target:`sellaMinFree`(:ref:`SellaMin` sess); :ref:`SellaSaddle` :target:`sellaSaddleCreate`(const rgsaddle_sella_saddle_config_t* cfg, int64_t n_atoms, const double* position, const double* masses); int :target:`sellaSaddleStep`(:ref:`SellaSaddle` sess, rgsaddle_surface_fn surface, void* user, rgsaddle_report_t* out); int :target:`sellaSaddlePosition`(:ref:`SellaSaddle` sess, double* out); void :target:`sellaSaddleFree`(:ref:`SellaSaddle` sess); :ref:`Index1` :target:`index1Create`(const rgsaddle_index1_config_t* cfg, int64_t n_atoms, const double* position, const double* hessian, const double* masses); int :target:`index1Step`(:ref:`Index1` sess, rgsaddle_surface_fn surface, void* user, rgsaddle_report_t* out); int :target:`index1Position`(:ref:`Index1` sess, double* out); void :target:`index1Free`(:ref:`Index1` sess); bool :target:`hasIndex1`() const; bool :target:`hasSellaSaddle`() const; :ref:`MinMode` :target:`minModeCreate`(const rgsaddle_minmode_config_t* cfg, int64_t n_atoms, const double* position, const double* mode); int :target:`minModeStep`(:ref:`MinMode` sess, rgsaddle_surface_fn surface, void* user, rgsaddle_report_t* out); int :target:`minModePosition`(:ref:`MinMode` sess, double* out); int :target:`minModeSetForceGate`(:ref:`MinMode` sess, rgsaddle_force_gate_t gate); void :target:`minModeFree`(:ref:`MinMode` sess); bool :target:`hasMinMode`() const; bool :ref:`hasIrc`() const; bool :ref:`hasIrcFromSurface`() const; bool :ref:`hasIrcControls`() const; int :target:`ircSetLengths`(:ref:`Irc` session, double kick, double max_step, double min_step, int adaptive); :ref:`Irc` :target:`ircCreate`(const rgsaddle_irc_config_t* cfg, int64_t n_atoms, const double* saddle, const double* masses, const double* mode); :ref:`Irc` :target:`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 :target:`ircStep`(:ref:`Irc` session, rgsaddle_surface_fn surface, void* user, rgsaddle_report_t* out); int :target:`ircPosition`(const :ref:`Irc` session, double* out); int :target:`ircSetDirection`(:ref:`Irc` session, int32_t direction); int :target:`ircReset`(:ref:`Irc` session); void :target:`ircFree`(:ref:`Irc` session); const std::string& :target:`lastMessage`() const; bool :ref:`hasPathSeeds`() const; int :ref:`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 :ref:`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); bool :target:`hasKappaDimer`() const; int :target:`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 :ref:`hasHessianBofill`() const; int :ref:`hessianBofill`(int64_t n, const double* step, const double* dgradient, double* hessian); uint32_t :target:`abiMajor`() const; uint32_t :target:`abiMinor`() const; int :ref:`orderOneSessionKind`() const; }; .. _details-classgpr_1_1neb_1_1_rgsaddle_client: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Call site for the linked librgsaddle. The library is a build dependency, so the symbols are bound at link time. ``:ref:`load ``` checks the ABI stamp and ignores a path. Methods ------- .. index:: pair: function; hasBandExpPrecon .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1ad001919baaf00c37c1e92ea81a262e72: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasBandExpPrecon() const rgsaddle_band_set_exp_precon (ABI minor 22) is in the library. .. index:: pair: function; bandSetExpPrecon .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1ad0aa183b5efd4c3c10e25fe052f6db1a: .. ref-code-block:: cpp :class: doxyrest-title-code-block int bandSetExpPrecon(:ref:`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. .. index:: pair: function; hasIrc .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1acfcb9e33649ad7d0dc8eb5b7b02e44ff: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasIrc() const rgsaddle_irc_create, rgsaddle_irc_step and rgsaddle_irc_set_direction are in the linked library. .. index:: pair: function; hasIrcFromSurface .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1af609951c68fc9afd73b2bb56355c3ae0: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasIrcFromSurface() const rgsaddle_irc_create_from_surface. The Lanczos kick needs it. .. index:: pair: function; hasIrcControls .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1a621d65d3a60ddca64652565d100f595e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasIrcControls() const rgsaddle_irc_set_lengths. Adaptive Morokuma, the separate kick length and the mass-weighted force gate are in the linked library. .. index:: pair: function; hasPathSeeds .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1aace82b7630bf8789cf72b8ef32046256: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasPathSeeds() const The IDPP and alternating S-IDPP path seeds (ABI minor 71) are in the library. .. index:: pair: function; idppFixedPath .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1a3f9f57eb1a75f3008380e4bf29abde6e: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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) rgsaddle_idpp_fixed_path. ``mask`` is NULL or one byte per atom, 1 for an atom held at the reactant coordinates. ``:ref:`out ``` holds n_images rows. .. index:: pair: function; sidppAlternatingPath .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1aa47b582215ed65f852a2e2a624320d67: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: function; hasHessianBofill .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1a345926a172efd01c9f1282f011d2e483: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasHessianBofill() const rgsaddle_hessian_bofill is in the linked library. .. index:: pair: function; hessianBofill .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1a4d6c9677d876e86bdd016ced2b2c0415: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: function; orderOneSessionKind .. _doxid-classgpr_1_1neb_1_1_rgsaddle_client_1a931c679c23213aa45d08c85e3c0b6be3: .. ref-code-block:: cpp :class: doxyrest-title-code-block int orderOneSessionKind() const 1 when the last created order-one session is Sella, 2 when it is the index-1 Newton session. 0 before either create succeeds.