Get an IRC certificate for a saddle

A converged band returns a saddle candidate whose true force is below the tolerance. That does not show the candidate joins your reactant to your product. gprn checks this by walking downhill in both directions from the saddle and comparing the two walk ends with the relaxed endpoints. This page runs that check on a five-atom Lennard-Jones cluster, reads the verdict and the record file, and lists what to do for each verdict other than connected. The reasoning behind the check is in Saddle-point certificates.

What you need

  • A gprn binary. rgmin is required, and the downhill walk is part of every build.

  • The certificate belongs to gprn. gprd has no IRC walk.

  • A band that converged. The walk starts from the highest-energy image of the returned band.

The commands below call gprn from PATH. Work in a scratch directory.

Step 2: read the verdict

The log carries the walk’s result in four places.

  • Endpoint connectivity: is the label of the walk. The table below lists the labels.

  • The detail line under it ends in ball=yes|no|na|unresolved and graph=yes|no|na|unresolved. graph compares bond graphs and ball compares geometries. na means that test does not apply to this pair of endpoints.

  • Vibrational index gate: and the [irc] line above it count the negative and the unresolved modes of the saddle Hessian, when the walk had to measure that Hessian.

  • Certified: is the run’s verdict. It combines the walk with the force criterion and the certificates you asked for.

The pentamer’s five atoms are neon, an element the bond-graph table has no radius for, so the bond graphs are empty and the geometric balls decide:

grep -o 'ball=[a-z]* graph=[a-z]*' gprn.log
grep -q 'negative=1 unresolved=0' gprn.log

Label

Meaning

Changes Certified:?

connected

The two walk ends are the two relaxed endpoints.

No

not connected

The walk ends finished as minima and are not the two endpoints.

Yes, to no

ambiguous

A walk end still has a negative mode after a step off it.

No

unresolved

The IRC wall (--max-wall-seconds) expired before the walk finished.

No

not applicable

Neither the bond graphs nor the geometric balls separate the endpoints.

No

unavailable

The walk could not be built: an endpoint that did not relax to the force tolerance, no resolved negative curvature at the saddle, or an oracle call that failed.

No

skipped

--irc-certificate false.

No

Step 3: read the record file

The walk writes irc_certificate.txt into the observation-archive directory, which --gp-observation-archive auto puts beside --output (here ./obs-archive). With the archive off the file goes to the current directory. It holds the saddle, the unit mode that was followed, the kick length in Angstrom, and both walk ends with their energies in eV, maximum atomic forces in eV/Angstrom, step counts and oracle-call counts. Coordinates are in Angstrom.

from pathlib import Path

record = {}
for line in Path("obs-archive/irc_certificate.txt").read_text().splitlines():
    key, *values = line.split()
    record[key] = values

tolerance = 0.05  # eV/Angstrom, the default --converged-force
n_atoms = int(record["n_atoms"][0])
assert record["irc-certificate"] == ["1"]
for key in ("saddle", "mode", "forward", "reverse"):
    assert len(record[key]) == 3 * n_atoms
for side in ("forward", "reverse"):
    force = float(record[f"{side}_force"][0])
    assert force < tolerance, (side, force)
barrier = float(record["forward_energy"][0]) - float(record["reactant_energy"][0])
print(f"forward end: {int(record['forward_steps'][0])} steps, "
      f"{int(record['forward_calls'][0])} oracle calls")
print(f"reverse end: {int(record['reverse_steps'][0])} steps, "
      f"{int(record['reverse_calls'][0])} oracle calls")
forward end: <n> steps, <n> oracle calls
reverse end: <n> steps, <n> oracle calls

The step and oracle counts move with the compiler and the linear-algebra backend. On this GCC 13 build, Eigen walks 36 steps and 70 oracle calls forward and 32 steps and 69 calls reverse; CHOLMOD walks 29 steps and 63 calls forward and 29 steps and 65 calls reverse. The steepest-descent loop before the L-BFGS polish stops as soon as the maximum atomic force drops below --converged-force (default 0.05 eV/Angstrom), so a kick that lands just above 0.05 eV/Angstrom takes steepest-descent steps before the polish while one just below goes straight to the L-BFGS relaxation. The block asserts the forces, not the counts, and the listing records them as integers. The forward end follows the positive direction of the recorded mode — oriented toward the product along the Kabsch-aligned reactant-to-product chord when that projection resolves the sign, or else by making the first component within a relative \(10^{-3}\) of the maximum magnitude positive — and the reverse end the negative one. The record stores atomic numbers, not element symbols. To look at a walk end, build a structure from it:

from pathlib import Path

from ase import Atoms

numbers = [int(z) for z in record["atomic_numbers"]]
for side in ("forward", "reverse"):
    coords = [float(x) for x in record[side]]
    atoms = Atoms(numbers=numbers, positions=[coords[i:i + 3] for i in range(0, len(coords), 3)])
    rows = [str(len(atoms)), f"{side} end of the walk"]
    rows += [f"{symbol} {x:.6f} {y:.6f} {z:.6f}"
             for symbol, (x, y, z) in zip(atoms.get_chemical_symbols(), atoms.positions)]
    Path(f"{side}_end.xyz").write_text("\n".join(rows) + "\n")
assert len(Atoms(numbers=numbers)) == n_atoms

Step 4: choose how the walk runs

These options change the walk, not the search.

  • --irc-certificate false skips the walk. The log prints Endpoint connectivity: skipped and ball=skipped graph=skipped. There is no TOML key for this switch.

  • --irc-saddle-hessian model (TOML: [band] irc_saddle_hessian = "model") takes the first direction from the fitted GP’s mean Hessian instead of a measured Cartesian Hessian. The direction is kept only if one true central difference along it is negative. The log then says descent direction verified; index not measured, and the saddle’s Hessian index is not reported. The default is measured.

  • --max-wall-seconds S is one absolute wall clock shared by the search, oracle calls and this walk. Zero, the default, sets no wall.

  • --gp-observation-archive DIR (or off) decides where irc_certificate.txt is written.

  • --converged-force F sets the force tolerance that both the search and the walk use, in eV/Angstrom. The default is 0.05.

The index is not part of the default verdict. To make the run fail on a saddle with more than one negative mode, add --ci-index-certificate true or --force-stop-certificate true; both are off by default. The explanation page says what each one measures.

When the verdict is not connected

not connected

The log ends Certified: no (endpoint walks are not the reactant and the product). The saddle leads somewhere other than the pair you gave.

  1. Write the two ends with the Python block above and compare them with your reactant and product.

  2. If an end is a minimum that is neither of your endpoints, the band crosses an intermediate. Use that minimum as an endpoint and run two bands, one for each step.

  3. If an end has the correct bond graph but the energy and distance differ from your file, compare the deposited_* and reactant_ball_A fields with the forward_* fields on the detail line. A deposited endpoint that is not a minimum moves when relaxed. Relax both endpoints with the same calculator before the band.

ambiguous

A walk end has a negative Hessian eigenvalue below minus the stencil resolution after the walk stepped off that mode and relaxed again. The end is not a minimum, so the saddle may sit on a ridge between valleys. The verdict is not withdrawn. Tighten --converged-force and run the band again, or relax the recorded end with your own optimiser and use it as an endpoint.

unresolved

The shared wall expired before the walk finished. The detail line still prints the fields reached, the log prints wall-clock limit reached, and the search verdict stands. Raise --max-wall-seconds if the certificate must finish.

not applicable

The reactant and the product have the same bond graph, and the labelled distance between them (separation_A on the detail line) is not larger than the harmonic ball of at least one of them, so neither test can tell them apart. The saddle stays. Decide by hand from the two walk ends.

unavailable

Check that the oracle did not fail during the walk, that both endpoint files are close enough to minima to relax within the step cap, and that the saddle Hessian has a negative eigenvalue below minus its resolution. A returned point without one is not a saddle, whatever its force. The saddle is not withdrawn by this label, but nothing has been checked about its endpoints. When the returned band has no highest-energy image above index 0, the walk is not attempted and the log has no Endpoint connectivity: line.

Certified: no with another reason

The parenthesis names the failed requirement: not converged, band under-resolved at the ridge, a segment midpoint tops the climbing image, or climbing image not index-1. Those belong to the search and to the optional certificates, not to the walk. Certified: unresolved means the force-stop stencil was inconclusive.

See also