<!-- https://docs.dseams.info/reference/release-2.15.md -->

# 2.15.0 release notes {#release-notes}

These notes describe the user-visible changes in this release.

## 2.15.0 {#id1}

### Added {#added}

- Collective variables with analytic gradients for biased sampling and Markov state models. `seams_switch_rational()` is the PLUMED RATIONAL switch times a C2 taper to zero at d_max. A `seams_cv` handle fixes the candidate rings between neighbour-list rebuilds and returns soft primitive-ring counts by size, ring-atom counts, soft HC basal hexagon pairs, the squared radius of gyration and the gyration-ellipsoid volume of a cluster, and products of logistic state clauses, each with its gradient in the coordinates under orthorhombic and triclinic periodic boundaries. The ring counts, ring-atom counts and hexagon pairs are twice continuously differentiable for n >= 3, and for n = 2 with d0 = 0. The squared radius of gyration and the volume are smooth only for a compact selection of positive total weight, and the volume has a kink where the cluster becomes flat. A value or gradient outside double range is `SEAMS_ERR_RANGE`, not a NaN or an infinity.

### Changed {#changed}

- The `seams_neighbours_build` reference states pinned frames for type 0. Type 99 on the mutual frames of the atoms (1, 1, 1) and (2, 1.2, 1.1) on the orthorhombic cell of edge 1e160 with origin (0, 0, 0), and on the triclinic cell of that edge with that origin and tilts 1, 0.5 and -0.25, returns `SEAMS_OK` and an empty list at cutoffs 0.5 and 3.5. Type 99 on that triclinic cell’s cutoff graph at cutoff 0.5 returns `SEAMS_OK` and an empty list. When the orthorhombic cutoff graph bins a coordinate, the fraction is (coordinate - origin) times the binary64 reciprocal of the edge. When that fraction is outside \[0, 1) it subtracts the floor. A result that is not strictly below 1, NaN included, becomes 0. For a pair the orthorhombic cutoff cell list visits, it keeps the neighbour only when the squared separation of the wrapped coordinates and a periodic cell shift is strictly below the squared cutoff, both computed in binary64. An overflowing square and a NaN square fail that test. Type 0 on (0, 0, 0) and (2e154, 0, 0), edge 1e160, origin (0, 0, 0), cutoff 3e154, returns `SEAMS_OK` and an empty list. `seams_cv_needs_rebuild` compares state only and does not bin the cell, writes stale only on `SEAMS_OK` and leaves it unchanged on any error, and its return list names the range error.

### Fixed {#fixed}

- `seams_cv_rebuild`, `seams_cv_needs_rebuild`, `seams_cv_value` and `seams_cv_states` return `SEAMS_ERR_RANGE` with the linked-cell or minimum-image message when the cell is outside what those searches resolve, instead of `SEAMS_ERR_INTERNAL`. A cell of edges 1e8, 1e8 and 20 makes `seams_cv_rebuild` report that the linked-cell mesh is too fine.
- The nanotube tutorial links each of the six yodaStruct iceNanotube example files, and the Rust API page links the published lib.rs source.
- With an installed linkcell (a shared library, as conda-forge and system packages provide), `libseams`, `libseams_lang` and the programs now link it directly. They call `lc_` functions from headers, and libyodaLib re-exports those symbols only when it holds the bundled linkcell, so a link with `-Wl,--no-undefined` failed with undefined references to `lc_set_threads` and `lc_team_run`.
- Each seams output test case that writes files now uses a directory of its own, so parallel and repeated runs no longer share `../output` or fixed paths under the system temporary directory.
- Smooth collective variables bound ring and shortcut enumeration by the ring size and return a range error naming the step, ring, or path limit when a denser graph would pass it, instead of running without a bound. Any atom-type change marks a type-filtered selection stale. A gyration cluster whose smallest eigenvalue is at most 1e-10 times the largest has volume and gradient 0. Switch exponents above 4096 are rejected and the error names 4096.
- Parallel and repeated runs of the `writeHisto` test no longer share `cij.txt`, `q3.txt` and `q6.txt`, because each run works in its own temporary directory.
