9#include <unordered_set>
15const std::unordered_set<std::string> &field_index() {
16 static const std::unordered_set<std::string> idx = {
17#include "eon/generated/ParametersSSOTFieldIndex.inc"
25 if (j ==
"process_search")
27 if (j ==
"minimization")
29 if (j ==
"saddle_search")
31 if (j ==
"basin_hopping")
33 if (j ==
"parallel_replica" || j ==
"unbiased_parallel_replica")
35 if (j ==
"nudged_elastic_band")
37 if (j ==
"dynamics" || j ==
"molecular_dynamics")
45 if (j ==
"monte_carlo")
47 if (j ==
"structure_comparison")
49 if (j ==
"gp_surrogate")
51 if (j ==
"safe_hyperdynamics")
55 if (j ==
"replica_exchange")
57 if (j ==
"finite_difference" || j ==
"finite_differences")
59 if (j ==
"global_optimization")
75 if (
pot ==
"morse_pt")
77 if (
pot ==
"metatomic")
93 if (m ==
"qm" || m ==
"quickmin")
261#include "eon/generated/ParametersSSOTApply.inc"
265 if (!section || !key)
267 std::string
id = std::string(section) +
"." + key;
268 return field_index().count(
id) > 0;
eonc::params_ssot::GeneratedDefaults GD
void apply_ssot_defaults(Parameters &p)
Apply SSoT defaults for covered groups (Main, Potential, Optimizer, Structure Comparison,...
PotType pot_from_ssot(std::string_view pot)
bool ssot_has_field(const char *section, const char *key)
Return true if section/*key* (snake_case INI name) is declared in the Cap'n Proto L0 catalog for cov...
JobType job_from_ssot(std::string_view j)
OptType opt_from_ssot(std::string_view m)
static structure_comparison_options_t & structure_comparison_options(Parameters &p)
static main_options_t & main_options(Parameters &p)
static process_search_options_t & process_search_options(Parameters &p)
static optimizer_options_t & optimizer_options(Parameters &p)
static potential_options_t & potential_options(Parameters &p)
bool indistinguishable_atoms
double distance_difference
double defaultVacuum
Vacuum (Angstrom) on every side of the box built when neither the file nor cell supplies one.
bool pbc
Periodicity of that fallback cell.
std::string inputFormat
Chemfiles format substituted for a .con request.
shared_flag writeConForces
Opt-in "Forces of Component" sections in written .con frames (enables force+energy co-load on restart...
std::string cell
Fallback cell when a foreign file carries none: "a b c" or nine row-major lattice numbers.
long max_iter_before_reset
long line_search_max_iter
double max_inverse_curvature
struct eonc::optimizer_options_t::sd_t sd
double max_time_step_input
std::string backend
"eon" or "rgmin".
struct eonc::optimizer_options_t::quickmin_t quickmin
std::string convergence_metric
struct eonc::optimizer_options_t::xtsci_t xtsci
struct eonc::optimizer_options_t::cg_t cg
struct eonc::optimizer_options_t::lbfgs_t lbfgs
static constexpr auto MAIN_WRITE_CON_FORCES
static constexpr auto PROCESS_SEARCH_MINIMIZATION_OFFSET
static constexpr auto OPTIMIZER_CG_LINE_CONVERGED
static constexpr auto POTENTIAL_EXT_POT_PATH
static constexpr auto OPTIMIZER_LBFGS_AUTO_SCALE
static constexpr auto MAIN_REMOVE_NET_FORCE
static constexpr auto OPTIMIZER_MAX_ITERATIONS
static constexpr auto POTENTIAL_POTENTIALS_PATH
static constexpr auto MAIN_TEMPERATURE
static constexpr auto OPTIMIZER_LBFGS_PROJECT_RIGID
static constexpr auto STRUCTURE_COMPARISON_CHECK_ROTATION
static constexpr auto MAIN_RANDOM_SEED
static constexpr auto POTENTIAL_LOG_POTENTIAL
static constexpr auto MAIN_PBC
static constexpr auto OPTIMIZER_LBFGS_CURVATURE
static constexpr auto OPTIMIZER_MAX_MOVE
static constexpr auto STRUCTURE_COMPARISON_DISTANCE_DIFFERENCE
static constexpr auto OPTIMIZER_MAX_TIME_STEP
static constexpr auto POTENTIAL_EMT_RASMUSSEN
static constexpr auto OPTIMIZER_XTSCI_HIGHS
static constexpr auto STRUCTURE_COMPARISON_NEIGHBOR_CUTOFF
static constexpr auto OPTIMIZER_LBFGS_MAX_INVERSE_CURVATURE
static constexpr auto MAIN_PARALLEL
static constexpr auto OPTIMIZER_LBFGS_PRECON_A
static constexpr auto OPTIMIZER_LBFGS_DISTANCE_RESET
static constexpr auto OPTIMIZER_LBFGS_H0
static constexpr auto MAIN_FINITE_DIFFERENCE
static constexpr auto STRUCTURE_COMPARISON_REMOVE_TRANSLATION
static constexpr auto MAIN_JOB
static constexpr auto OPTIMIZER_XTSCI_QN_STEP
static constexpr auto MAIN_INI_FILENAME
static constexpr auto MAIN_INPUT_FORMAT
static constexpr auto OPTIMIZER_CG_LINE_SEARCH
static constexpr auto OPTIMIZER_LBFGS_SECANT
static constexpr auto POTENTIAL_PAIR_CUTOFF
static constexpr auto MAIN_CELL
static constexpr auto OPTIMIZER_LBFGS_PRECON
static constexpr auto OPTIMIZER_SD_ALPHA
static constexpr auto STRUCTURE_COMPARISON_INDISTINGUISHABLE_ATOMS
static constexpr auto POTENTIAL_LAMMPS_LOGGING
static constexpr auto POTENTIAL_LAMMPS_THREADS
static constexpr auto OPTIMIZER_CONVERGENCE_METRIC
static constexpr auto OPTIMIZER_LBFGS_ANGLE_RESET
static constexpr auto OPTIMIZER_QUICKMIN_STEEPEST_DESCENT
static constexpr auto POTENTIAL_POTENTIAL
static constexpr auto OPTIMIZER_OPT_BACKEND
static constexpr auto OPTIMIZER_CONVERGED_FORCE
static constexpr auto OPTIMIZER_LBFGS_EXTRA_UPDATES
static constexpr auto OPTIMIZER_CG_NO_OVERSHOOTING
static constexpr auto OPTIMIZER_SD_TWO_POINT
static constexpr auto MAIN_MAX_FORCE_CALLS
static constexpr auto OPTIMIZER_CG_MAX_ITER_BEFORE_RESET
static constexpr auto OPTIMIZER_LBFGS_ACCEPT
static constexpr auto OPTIMIZER_XTSCI_METHOD
static constexpr auto MAIN_WRITE_LOG
static constexpr auto OPTIMIZER_XTSCI_ACCEPT
static constexpr auto OPTIMIZER_LBFGS_MEMORY
static constexpr auto OPTIMIZER_XTSCI_PRECON
static constexpr auto MAIN_DEFAULT_VACUUM
static constexpr auto OPTIMIZER_LBFGS_CAUTIOUS_ALPHA
static constexpr auto OPTIMIZER_LBFGS_PRECON_RCUT
static constexpr auto OPTIMIZER_OPT_METHOD
static constexpr auto OPTIMIZER_TIME_STEP
static constexpr auto PROCESS_SEARCH_MINIMIZE_FIRST
static constexpr auto POTENTIAL_MPI_POLL_PERIOD
static constexpr auto OPTIMIZER_XTSCI_MANIFOLD
static constexpr auto OPTIMIZER_LBFGS_INVERSE_CURVATURE
static constexpr auto OPTIMIZER_LBFGS_CAUTIOUS_EPS
static constexpr auto STRUCTURE_COMPARISON_ENERGY_DIFFERENCE
static constexpr auto MAIN_QUIET
static constexpr auto MAIN_CHECKPOINT
static constexpr auto OPTIMIZER_LBFGS_STEP
static constexpr auto MAIN_CON_FILENAME
static constexpr auto POTENTIAL_PAIR_SWITCH_WIDTH
static constexpr auto OPTIMIZER_LBFGS_PRECON_MU
static constexpr auto OPTIMIZER_CG_LINE_SEARCH_MAX_ITER
static constexpr auto PROCESS_SEARCH_KNOWN_SADDLES
static constexpr auto OPTIMIZER_CG_KNOCK_OUT_MAX_MOVE
std::string potentialsPath
double pairSwitchWidth
Width (Angstrom) of the C^2 quintic switch that takes the lj, ljcluster and morse_pt pair terms to ze...
double pairCutoff
Cutoff (Angstrom) of the lj, ljcluster and morse_pt pair terms.
double minimization_offset