How gprd checks the saddle index

Status: implemented in gprd (main.cpp) and AtomicDimer (gpr/AtomicDimer.h). The option names, defaults and one-line meanings below are checked against gprd --help and the setter comments in AtomicDimer.h. The paragraphs that describe how the search uses the measurements are design notes carried over from the earlier how-to and were not re-derived from the code line by line.

A first-order saddle has one negative Hessian eigenvalue. A dimer search that stops when the force is small can stop at a point with two or more negative directions. gprd therefore measures the Hessian index at a force-converged point, and it can refuse the point and search on. This page explains the options that control that check. The tutorial that runs it is the UMA dimer tutorial, and the certificate that gprn attaches to a band is in the IRC certificate.

Options

Option

Default

Effect

--dimer-index-recovery BOOL

true

Measure the Hessian index at a force-converged point inside the search and leave a higher-index point. false keeps force and dimer-mode convergence without transverse index checks

--dimer-index-frequency-resolution CM-1

0

Wavenumber below which the in-search index test treats a mode as flat; 0 leaves the stencil error alone to decide

--force-stop-certificate BOOL

false

Certify the midpoint whose true force is under tolerance: measure one Cartesian stencil, accept a first-order saddle, and leave a higher-order point along its extra negative mode. false keeps the dimer’s own stencil at the force stop, which refuses a point without exactly one negative mode but does not refine or leave it. Implied by --oracle-stencil

--oracle-stencil PATH

unset

Measure an independent Cartesian saddle stencil across MPI ranks and write the raw energies and gradients

--oracle-stencil-step ANGSTROM

0.01

Finite positive Cartesian displacement of that stencil (defaultStencilStep in gpr/optimization/StencilIndex.h)

--weak-mode-continuations COUNT

3

Continuations along the softest weak mode from a midpoint whose weak modes the complete stencil cannot certify positive; 0 returns the midpoint at once

--dimer-project-rotations BOOL

true

Exclude molecular rigid rotations from measured dimer orientation searches

--gp-nonperiodic BOOL

false

Use an isolated molecular GP and exclude rigid rotations independently of the .con vacuum box

The block below compares those defaults with the gprd on your path.

fail=0
while IFS='|' read -r flag text; do
  gprd --help | grep -A1 -E -- "^ +$flag" | grep -q -- "$text" || { echo "mismatch: $flag"; fail=1; }
done <<'EOF'
--dimer-index-recovery|default true
--dimer-project-rotations|default true
--weak-mode-continuations|default 3
--dimer-index-frequency-resolution|default 0
--force-stop-certificate|default false
EOF
test "$fail" = 0 && echo ok

The C++ selectors are AtomicDimer::setRejectHigherIndexSurrogateConvergence (--dimer-index-recovery), setIndexFrequencyResolution (--dimer-index-frequency-resolution) and setProjectMeasuredRotations (--dimer-project-rotations). InputParameters::gp_nonperiodic is the key behind --gp-nonperiodic (structures/Structures.h).

Isolated molecules

For an isolated molecule stored in a .con vacuum box, pass --gp-nonperiodic true to gprn and gprd. The option selects an isolated molecular GP and excludes molecular rigid rotations in dimer searches independently of the box length. The default is false.

gprn removes overall translation and rotation from an isolated band only when --molecular-rigid-motion true is also set. The option applies to an isolated, fully free molecular band, and its default is false (GPNEBConfig::remove_molecular_rigid_motion in the C++ library).

With --dimer-project-rotations false the measured orientation searches keep the rigid rotational directions. The setter comment in AtomicDimer.h says that translations, frozen coordinates and index certification keep their physical constraints independently of this choice.

How the in-search test uses measurements

The index test decides on measured Hessian columns only. Two negative Ritz values of the measured span are two negative curvatures of the Hessian, so a refined negative pair refuses the midpoint and supplies the escape. The curvature model, completed with every measured column, proposes where a further negative mode would be, and that direction is measured before it counts. A Lanczos step on the two lowest Ritz pairs extends the span until their residuals fall within the stencil error.

A mode whose curvature is softer than a harmonic wavenumber of --dimer-index-frequency-resolution (cm^-1) for its mass-weighted displacement is flat: it neither refuses the midpoint nor is followed. The setter comment says the independent validation reports such modes as unresolved at the same value. An escape doubles its measured displacement along the negative mode while the measured energy keeps falling.

With --oracle-stencil, gprd reads the complete Cartesian stencil it measures at a converged midpoint as the validation reads it: the mass-weighted Hessian on the vibrational complement, signed against the norm of its antisymmetric part, with every weak mode refined by four more gradients. A midpoint that this stencil shows to be a higher-order saddle is not reported. --vibrational-stencil vibrational measures only the vibrational directions. That resolution is the measured block and can call a borderline mode resolved where the full stencil leaves it unresolved. The refinement rows are retained. An order-one partitioned RFO search on the surrogate, or a measured walk when the surrogate pulls it back, leaves the point along the negative mode, and the dimer runs again from there. Refused stencils and refinements count as search calls, and the last stencil is the one the validation reuses.

Orientation searches

Measured orientations retain finite-difference Hessian actions in an orthonormal Krylov subspace at a fixed midpoint. The lowest Rayleigh-Ritz vector proposes an orientation, and an actual endpoint force supplies its curvature and rotation-angle certificate. The subspace is reset when the midpoint, its gradient, the separation or the allowed physical space changes.

When a saddle-index check is requested, its measured stencil is evaluated before terminal rotation. A resolved higher-index point supplies a measured escape. An index-one spectrum supplies a lowest-mode proposal, projected into the dimer’s rotation coordinates and checked with an actual endpoint force. The index certificate is reused only at the identical measured midpoint within that search, and the configured rotation tolerance still applies.

Exact rigid rotations preserve molecular energy, and straight Cartesian tangent displacements coincide with those rotations only to first order. At a stationary point the rotational zero modes lie above a negative saddle mode. Keeping them therefore gives a direct comparison of the numerical search without changing the physical saddle that is the target.