.. index:: pair: class; gpr::neb::EonRelaxClient .. _doxid-classgpr_1_1neb_1_1_eon_relax_client: class gpr::neb::EonRelaxClient ============================== .. toctree:: :hidden: Overview ~~~~~~~~ dlopen client for the eOn tier-2 relaxation engine: the host hands a band and a surface callback to eOn, which owns NudgedElasticBand / MinModeSaddleSearch. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class EonRelaxClient { public: // construction :target:`EonRelaxClient`(); :target:`EonRelaxClient`(const EonRelaxClient&); :target:`~EonRelaxClient`(); // methods :ref:`EonRelaxClient`& :target:`operator=`(const :ref:`EonRelaxClient`&); bool :ref:`load`(const std::string& path = {}); bool :target:`loaded`() const; bool :ref:`create`(const void* config = nullptr, std::size_t config_len = 0); bool :target:`created`() const; int :ref:`run`(:ref:`eon_relax_band_t`& band, :ref:`eon_relax_surface_fn` surface, void* user, :ref:`eon_relax_outcome_t`& outcome); int :ref:`step`(:ref:`eon_relax_band_t`& band, :ref:`eon_relax_surface_fn` surface, void* user, :ref:`eon_relax_outcome_t`& outcome); int :target:`reset`(); int :target:`setSurfaceEpoch`(std::uint64_t epoch); int :target:`lastError`() const; void :target:`destroy`(); const std::string& :target:`lastMessage`() const; :ref:`eon_relax_version_t` :target:`stamp`() const; }; .. _details-classgpr_1_1neb_1_1_eon_relax_client: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ dlopen client for the eOn tier-2 relaxation engine: the host hands a band and a surface callback to eOn, which owns NudgedElasticBand / MinModeSaddleSearch. The GP stays the surface; the saddle mechanics leave the tree. Discovery: an explicit path, else the GPR_EON_RELAX_ENGINE environment variable. The ABI stamp is checked on load: a major or layout mismatch refuses the library (closed contract, no silent fallback). Methods ------- .. index:: pair: function; load .. _doxid-classgpr_1_1neb_1_1_eon_relax_client_1afc0a68757e5511f842dbe435de3da71e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool load(const std::string& path = {}) Load the engine library. Empty path consults GPR_EON_RELAX_ENGINE. Returns false with a reason in :ref:`lastMessage() ` on failure. .. index:: pair: function; create .. _doxid-classgpr_1_1neb_1_1_eon_relax_client_1afa862defd2ebad8b7f72b203688e47f5: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool create(const void* config = nullptr, std::size_t config_len = 0) Create the engine instance from a Cap'n Proto RelaxEngineParams flat-array message; NULL/empty config selects the engine's documented defaults (kind=NEB). .. index:: pair: function; run .. _doxid-classgpr_1_1neb_1_1_eon_relax_client_1ab47fbf556dc087751218d2295a865a03: .. ref-code-block:: cpp :class: doxyrest-title-code-block int run(:ref:`eon_relax_band_t`& band, :ref:`eon_relax_surface_fn` surface, void* user, :ref:`eon_relax_outcome_t`& outcome) Run the bound engine over a caller-owned band. Returns the raw :ref:`eon_relax_rc_t `; on 0 the outcome is filled and band positions are updated in place. .. index:: pair: function; step .. _doxid-classgpr_1_1neb_1_1_eon_relax_client_1af44a6d6a82623cec8aa9572089ee3245: .. ref-code-block:: cpp :class: doxyrest-title-code-block int step(:ref:`eon_relax_band_t`& band, :ref:`eon_relax_surface_fn` surface, void* user, :ref:`eon_relax_outcome_t`& outcome) One eOn NEB optimizer step. Surface and user must stay the same across steps until :ref:`reset() `.