Loading...
Searching...
No Matches
Dimer search (Tier 1)

Classes

struct  gpr_dimer_report_t
 Outcome of gpr_dimer_search_report (ABI 1.1). The caller sets struct_size = sizeof(gpr_dimer_report_t); the library fills only the fields that fit, so a struct extended at the end stays compatible. More...

Enumerations

enum  gpr_dimer_stop_t {
  GPR_DIMER_STOP_UNSPECIFIED = 0 , GPR_DIMER_STOP_FORCE_CONVERGED = 1 , GPR_DIMER_STOP_MEASURED_NON_DESCENT = 2 , GPR_DIMER_STOP_DEGENERATE_PROBE = 3 ,
  GPR_DIMER_STOP_UNINFORMATIVE_ROTATION = 4 , GPR_DIMER_STOP_ALIGNMENT_LOSS = 5 , GPR_DIMER_STOP_ITERATION_BUDGET = 6 , GPR_DIMER_STOP_INTERATOMIC_COLLAPSE = 7 ,
  GPR_DIMER_STOP_INVALID_ATOMS = 8 , GPR_DIMER_STOP_ORACLE_BUDGET = 9 , GPR_DIMER_STOP_INVALID_PARAMETERS = 10 , GPR_DIMER_STOP_MEASURED_INDEX_ZERO = 11 ,
  GPR_DIMER_STOP_UNCERTIFIED_FORCE_STOP = 12
}
 Why a dimer search stopped (ABI 1.1). More...

Functions

int gpr_dimer_search (gpr_force_fn force_fn, void *user_data, gpr_atoms_t atoms, const double *R_init, const double *orient_init, const gpr_dimer_config_t *config, const double *R_obs, const double *E_obs, const double *G_obs, int n_init_obs, double *R_saddle, double *E_saddle, double *orient_out, double *curvature, int *n_force_calls, int *n_gp_calls)
 GP-accelerated dimer saddle point search.
int gpr_dimer_search_potential (gpr_potential_t pot, gpr_atoms_t atoms, const double *R_init, const double *orient_init, const gpr_dimer_config_t *config, const double *R_obs, const double *E_obs, const double *G_obs, int n_init_obs, double *R_saddle, double *E_saddle, double *orient_out, double *curvature, int *n_force_calls, int *n_gp_calls)
 Same as gpr_dimer_search, but takes a PotentialWrapper handle.
int gpr_dimer_search_report (gpr_potential_t pot, gpr_atoms_t atoms, const double *R_init, const double *orient_init, const gpr_dimer_config_t *config, const double *R_obs, const double *E_obs, const double *G_obs, int n_init_obs, double *R_saddle, double *E_saddle, double *orient_out, gpr_dimer_report_t *report)
 gpr_dimer_search_potential with a report (ABI 1.1). report must not be NULL and report->struct_size must be set. A search that stops without meeting the force criterion returns GPR_SUCCESS with converged = 0; the stop field says why. Errors return a status code as elsewhere.

Detailed Description

Enumeration Type Documentation

◆ gpr_dimer_stop_t

Why a dimer search stopped (ABI 1.1).

Enumerator
GPR_DIMER_STOP_UNSPECIFIED 
GPR_DIMER_STOP_FORCE_CONVERGED 
GPR_DIMER_STOP_MEASURED_NON_DESCENT 
GPR_DIMER_STOP_DEGENERATE_PROBE 
GPR_DIMER_STOP_UNINFORMATIVE_ROTATION 
GPR_DIMER_STOP_ALIGNMENT_LOSS 
GPR_DIMER_STOP_ITERATION_BUDGET 
GPR_DIMER_STOP_INTERATOMIC_COLLAPSE 
GPR_DIMER_STOP_INVALID_ATOMS 
GPR_DIMER_STOP_ORACLE_BUDGET 
GPR_DIMER_STOP_INVALID_PARAMETERS 
GPR_DIMER_STOP_MEASURED_INDEX_ZERO 

ABI 1.2: a stencil refusal next to a complete measured expansion with no negative curvature (an index-zero midpoint).

GPR_DIMER_STOP_UNCERTIFIED_FORCE_STOP 

ABI 1.10: the true force fell under tolerance, but the index stencil there did not measure exactly one negative mode.

Definition at line 3610 of file gpridge_c.h.

3610 {
gpr_dimer_stop_t
Why a dimer search stopped (ABI 1.1).
Definition gpridge_c.h:3610
@ GPR_DIMER_STOP_UNSPECIFIED
Definition gpridge_c.h:3611
@ GPR_DIMER_STOP_INVALID_ATOMS
Definition gpridge_c.h:3619
@ GPR_DIMER_STOP_MEASURED_NON_DESCENT
Definition gpridge_c.h:3613
@ GPR_DIMER_STOP_DEGENERATE_PROBE
Definition gpridge_c.h:3614
@ GPR_DIMER_STOP_MEASURED_INDEX_ZERO
Definition gpridge_c.h:3624
@ GPR_DIMER_STOP_UNCERTIFIED_FORCE_STOP
Definition gpridge_c.h:3627
@ GPR_DIMER_STOP_ORACLE_BUDGET
Definition gpridge_c.h:3620
@ GPR_DIMER_STOP_FORCE_CONVERGED
Definition gpridge_c.h:3612
@ GPR_DIMER_STOP_UNINFORMATIVE_ROTATION
Definition gpridge_c.h:3615
@ GPR_DIMER_STOP_ALIGNMENT_LOSS
Definition gpridge_c.h:3616
@ GPR_DIMER_STOP_INTERATOMIC_COLLAPSE
Definition gpridge_c.h:3618
@ GPR_DIMER_STOP_INVALID_PARAMETERS
Definition gpridge_c.h:3621
@ GPR_DIMER_STOP_ITERATION_BUDGET
Definition gpridge_c.h:3617

Function Documentation

◆ gpr_dimer_search()

int gpr_dimer_search ( gpr_force_fn force_fn,
void * user_data,
gpr_atoms_t atoms,
const double * R_init,
const double * orient_init,
const gpr_dimer_config_t * config,
const double * R_obs,
const double * E_obs,
const double * G_obs,
int n_init_obs,
double * R_saddle,
double * E_saddle,
double * orient_out,
double * curvature,
int * n_force_calls,
int * n_gp_calls )

GP-accelerated dimer saddle point search.

Parameters
force_fnForce callback
user_dataOpaque pointer passed to force_fn
atomsAtomic configuration
R_initInitial midpoint positions (3*n_atoms_total)
orient_initInitial dimer orientation (3*n_atoms_total, unit vector)
configDimer configuration
R_obsInitial observation positions (n_init_obs x n_coords), NULL to skip
E_obsInitial observation energies (n_init_obs), NULL to skip
G_obsInitial observation gradients (n_init_obs x n_coords), NULL to skip
n_init_obsNumber of initial observations (0 if none)
R_saddleOutput saddle point positions (3*n_atoms_total)
E_saddleOutput saddle point energy relative to the energy of the first measured point (the dimer's zero level; gpr_dimer_search_report returns that level)
orient_outOutput final orientation (3*n_atoms_total), may be NULL
curvatureOutput final curvature, may be NULL
n_force_callsOutput total true force evaluations, may be NULL
n_gp_callsOutput total GP evaluations, may be NULL

◆ gpr_dimer_search_potential()

int gpr_dimer_search_potential ( gpr_potential_t pot,
gpr_atoms_t atoms,
const double * R_init,
const double * orient_init,
const gpr_dimer_config_t * config,
const double * R_obs,
const double * E_obs,
const double * G_obs,
int n_init_obs,
double * R_saddle,
double * E_saddle,
double * orient_out,
double * curvature,
int * n_force_calls,
int * n_gp_calls )

Same as gpr_dimer_search, but takes a PotentialWrapper handle.

Use this to attach an rgpot-backed PES wrapped with gpr_potential_from_force_with_uncertainty (the C path for PotentialWrapper::from_rgpot).

◆ gpr_dimer_search_report()

int gpr_dimer_search_report ( gpr_potential_t pot,
gpr_atoms_t atoms,
const double * R_init,
const double * orient_init,
const gpr_dimer_config_t * config,
const double * R_obs,
const double * E_obs,
const double * G_obs,
int n_init_obs,
double * R_saddle,
double * E_saddle,
double * orient_out,
gpr_dimer_report_t * report )

gpr_dimer_search_potential with a report (ABI 1.1). report must not be NULL and report->struct_size must be set. A search that stops without meeting the force criterion returns GPR_SUCCESS with converged = 0; the stop field says why. Errors return a status code as elsewhere.