#include <gpr/neb/RgSellaMin.h>
Dest SellaMin settle on a host surface (ActiveGP via activeGpRgsaddleSurface). Product-side roll-down after IRC.
Definition at line 18 of file RgSellaMin.h.
◆ RgSellaMin() [1/2]
| gpr::neb::RgSellaMin::RgSellaMin |
( |
| ) |
|
|
default |
◆ ~RgSellaMin()
| gpr::neb::RgSellaMin::~RgSellaMin |
( |
| ) |
|
|
inline |
◆ RgSellaMin() [2/2]
| gpr::neb::RgSellaMin::RgSellaMin |
( |
const RgSellaMin & | | ) |
|
|
delete |
◆ bind()
| bool gpr::neb::RgSellaMin::bind |
( |
RgsaddleClient & | client, |
|
|
int64_t | n_atoms, |
|
|
const double * | position, |
|
|
const double * | masses, |
|
|
double | force_tol, |
|
|
int32_t | force_gate = 2 ) |
|
inline |
Definition at line 28 of file RgSellaMin.h.
30 {
31 if (!client.loaded() || n_atoms < 1 ||
position ==
nullptr ||
32 masses == nullptr) {
33 return false;
34 }
35 release();
36 if (force_gate < RGSADDLE_FORCE_L2 ||
37 force_gate > RGSADDLE_FORCE_MAX_ATOM) {
38 return false;
39 }
40 rgsaddle_sella_min_config_t cfg{};
41 cfg.version.major = RGSADDLE_ABI_MAJOR;
42 cfg.version.minor = 0;
43 cfg.delta = 0.1;
44 cfg.force_tol = force_tol > 0.0 ? force_tol : 1e-3;
45 cfg.force_gate = static_cast<rgsaddle_force_gate_t>(force_gate);
46 sess_ = client.sellaMinCreate(&cfg, n_atoms,
position, masses);
47 if (sess_ == nullptr) return false;
48 client_ = &client;
49 n_atoms_ = n_atoms;
50 pos_.assign(static_cast<std::size_t>(3 * n_atoms), 0.0);
51 return true;
52 }
bool position(double *out)
◆ nAtoms()
| int64_t gpr::neb::RgSellaMin::nAtoms |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Definition at line 69 of file RgSellaMin.h.
70 {
71 return n_atoms_;
72 }
◆ operator=()
◆ position()
| bool gpr::neb::RgSellaMin::position |
( |
double * | out | ) |
|
|
inline |
Definition at line 62 of file RgSellaMin.h.
63 {
64 if (client_ ==
nullptr || sess_ ==
nullptr ||
out ==
nullptr)
65 return false;
66 return client_->sellaMinPosition(sess_,
out) == 0;
67 }
eon_relax_band_t eon_relax_surface_fn void eon_relax_outcome_t * out
◆ step()
| bool gpr::neb::RgSellaMin::step |
( |
rgsaddle_surface_fn | surface, |
|
|
void * | user, |
|
|
rgsaddle_report_t & | report ) |
|
inline |
Definition at line 54 of file RgSellaMin.h.
56 {
57 if (client_ ==
nullptr || sess_ ==
nullptr ||
surface ==
nullptr)
58 return false;
59 return client_->sellaMinStep(sess_,
surface,
user, &report) == 0;
60 }
eon_relax_band_t eon_relax_surface_fn surface
eon_relax_band_t eon_relax_surface_fn void * user
The documentation for this class was generated from the following file: