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. | |
| enum gpr_dimer_stop_t |
Why a dimer search stopped (ABI 1.1).
Definition at line 3610 of file gpridge_c.h.
| 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.
| force_fn | Force callback |
| user_data | Opaque pointer passed to force_fn |
| atoms | Atomic configuration |
| R_init | Initial midpoint positions (3*n_atoms_total) |
| orient_init | Initial dimer orientation (3*n_atoms_total, unit vector) |
| config | Dimer configuration |
| R_obs | Initial observation positions (n_init_obs x n_coords), NULL to skip |
| E_obs | Initial observation energies (n_init_obs), NULL to skip |
| G_obs | Initial observation gradients (n_init_obs x n_coords), NULL to skip |
| n_init_obs | Number of initial observations (0 if none) |
| R_saddle | Output saddle point positions (3*n_atoms_total) |
| E_saddle | Output 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_out | Output final orientation (3*n_atoms_total), may be NULL |
| curvature | Output final curvature, may be NULL |
| n_force_calls | Output total true force evaluations, may be NULL |
| n_gp_calls | Output total GP evaluations, may be NULL |
| 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).
| 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.