How-to#
Step a band from C#
Enable capi. The header is rgsaddle.h. ABI major 1. Every wire
struct opens with rgsaddle_version_t. The host:
creates a session
calls
stepuntil the report says converged, or until host policy stopscalls
resetat a surface-epoch boundaryfrees
There is no run-to-completion C entry point. Units are the caller’s.
Positions are unwrapped Cartesian, image-major, stride 3 * n_atoms.
Pick tangents, springs, projections#
Kind |
Variants |
|---|---|
|
|
|
|
|
plain elastic band, |
Defaults: improved tangent, uniform spring k = 5, NEB projection,
climbing image with trigger factor 0.5.
Minimum-mode instead of a band#
MinModeSession refreshes the lowest curvature mode (dimer rotation
or Lanczos on finite-difference Hessian actions), inverts the force
along it, and takes one solver step. Same host loop. PointSurface
evals a single geometry.
Do not keep solver history across a potential change#
Call reset after any model update. That is the documented
boundary. A host that skips it mixes two surfaces in one L-BFGS
memory.