Loading...
Searching...
No Matches
OuterIterCompositionTrace.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
18
19#ifndef GPR_NEB_OUTER_ITER_COMPOSITION_TRACE_H_
20#define GPR_NEB_OUTER_ITER_COMPOSITION_TRACE_H_
21
22#include <string>
23#include <vector>
24
25namespace gpr {
26namespace neb {
27
34 bool n_uneval_zero = false;
36 bool mep_force_ok = false;
38 bool ci_force_ok = false;
40 bool true_saddle_energy = false;
42 bool ci_adjacent_perp = false;
44 bool force_tolerance = false;
51};
52
79
81inline constexpr int kCompositionTraceFormatVersion = 1;
82
84[[nodiscard]] std::string formatCompositionTrace(
85 const std::vector<OuterIterCompositionTraceRecord>& records);
86
87[[nodiscard]] bool parseCompositionTrace(
88 const std::string& text, std::vector<OuterIterCompositionTraceRecord>& out,
89 std::string* error = nullptr);
90
91[[nodiscard]] bool writeCompositionTraceFile(
92 const std::string& path,
93 const std::vector<OuterIterCompositionTraceRecord>& records);
94
95[[nodiscard]] bool readCompositionTraceFile(
96 const std::string& path, std::vector<OuterIterCompositionTraceRecord>& out,
97 std::string* error = nullptr);
98
100[[nodiscard]] bool compositionTracesTextuallyEqual(
101 const std::vector<OuterIterCompositionTraceRecord>& a,
102 const std::vector<OuterIterCompositionTraceRecord>& b);
103
114[[nodiscard]] bool compositionTracesNumericallyClose(
115 const std::vector<OuterIterCompositionTraceRecord>& got,
116 const std::vector<OuterIterCompositionTraceRecord>& expected, double rtol,
117 double atol, std::string* mismatch = nullptr);
118
119} // namespace neb
120} // namespace gpr
121
122#endif // GPR_NEB_OUTER_ITER_COMPOSITION_TRACE_H_
eon_relax_band_t eon_relax_surface_fn void eon_relax_outcome_t * out
The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition,...
bool writeCompositionTraceFile(const std::string &path, const std::vector< OuterIterCompositionTraceRecord > &records)
bool compositionTracesNumericallyClose(const std::vector< OuterIterCompositionTraceRecord > &got, const std::vector< OuterIterCompositionTraceRecord > &expected, double rtol, double atol, std::string *mismatch)
constexpr int kCompositionTraceFormatVersion
Bump when the on-disk golden format changes incompatibly.
bool compositionTracesTextuallyEqual(const std::vector< OuterIterCompositionTraceRecord > &a, const std::vector< OuterIterCompositionTraceRecord > &b)
True when canonical serializations are identical (golden check).
std::string formatCompositionTrace(const std::vector< OuterIterCompositionTraceRecord > &records)
Canonical text serialization used by golden files and exact-match asserts.
bool readCompositionTraceFile(const std::string &path, std::vector< OuterIterCompositionTraceRecord > &out, std::string *error)
bool parseCompositionTrace(const std::string &text, std::vector< OuterIterCompositionTraceRecord > &out, std::string *error)
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16
bool true_saddle_energy
True-PES saddle energy certificate at the CI index.
bool ci_adjacent_perp
CI-adjacent perpendicular-force certificate (non-vacuous).
bool force_tolerance
AIE/Standard path: outerConvergenceCertifiedByTolerance.
bool certified_full_band_branch
Composite: accepted via full-band N_uneval==0 branch.
bool ci_force_ok
Climbing-image force below tol, or CI inactive (vacuous pass).
bool mep_force_ok
Whole-band max oracle/NEB force below effective model-noise tolerance.
bool certified_ci_only_branch
Composite: accepted via climbing_image_converged_only branch.
bool certified_hook_branch
Composite: accepted via OCI/MMF outer_iter_hook certification.
One outer-iteration composition snapshot.
double barrier_estimate
Forward barrier estimate E_max - E_reactant at this outer.
double max_oracle_force
Max intermediate NEB force (oracle-grade where available).
int n_uneval
Count of intermediate images still lacking current oracle data.
int ci_index
Climbing-image index when active; -1 when inactive.