Skip to content

libqtaim 1.7.0

Choose a tag to compare

@ecbrown ecbrown released this 05 Dec 02:01
· 164 commits to master since this release
v1.7.0
1e29ca4

Warnings added after release (corrected 4 and 5 December 2026)

  • A symmetry check that samples only two points can give wrong atoms and report success (found after the release;
    also in 1.6.0). The density is tested for symmetry at two points near the centre of the nuclei. For a symmetric
    nuclear frame with a less symmetric density, qtaim_integrate_basins and _flat can copy one atom onto another: two
    protons 20 bohr apart with the electron on the first get one electron each, with QTAIM_OK in 1.6.0 and in 1.7.0
    once the second proton carries a trace of the orbital (without it 1.7.0 returns -6). The same check also sets mirror
    planes that the basin calls use, so QTAIM_SYM_C1 and the single-atom calls do not fully avoid the fault
    (correction of the workaround given earlier). There is no reliable workaround in 1.7.0 or 1.6.0 (1.7.1 turns the
    shortcuts off): do not rely on basin results when the density may be less symmetric than the nuclei (fields, core
    holes, broken-symmetry or charge-localised states).
  • qtaim_hermitian_eig and qtaim_quat_eig can lose an eigenvalue of a matrix with a repeated or nearly repeated
    eigenvalue and return QTAIM_OK
    (found after the release; also in 1.6.0). In the BCC lithium crystal model this
    gives wrong cell populations with QTAIM_OK at some lattice constants and k grids (a = 5.74 bohr at nk 7: 3.337
    electrons per cell instead of 2.997, gcc). Fixed in 1.7.1.
  • The crystal constructors build the default cell (a = 6.597 or 7.716 bohr) in place of a lattice constant of at
    most 2 bohr (BCC Li) or 3 bohr (rock-salt LiH)
    , and qtaim_crystal_from_caveman does the same for cells of up to
    4 bohr³ (one atom) or 6.75 bohr³ (more atoms), a lattice of zero volume included. Above that they cut the lattice
    sums short up to a = 5.185449 bohr (BCC) and 6.350852 bohr (rock salt)
    , with QTAIM_OK: BCC a = 3.5 bohr at nk 3
    gives 4.1 to 4.5 electrons per cell instead of 3 and a torus Euler characteristic of -24. Also in 1.6.0; 1.7.1 refuses
    these constants and cells.
  • Rock-salt LiH above a = 22/√3 = 12.70 bohr: the 22-bohr lattice sums miss hydrogen images that the density needs,
    and basin populations are wrong with QTAIM_OK (a = 13, automatic grid: N(H) 1.23 with QTAIM_SYM_MAXIMAL and 1.91
    with QTAIM_SYM_C1, against 1.998 with the sums taken to 36 bohr). Also in 1.6.0, and still open in 1.7.1.

Minor release: new exports, structs and status values. Existing struct layouts are unchanged. Upgrade from 1.6.0: it
has faults, listed in the README, that return wrong results without an error.

Fixed (1.6.0 faults)

  • Well-separated fragments no longer integrate to several times their electrons.
  • Four-component, truncated, incomplete and inconsistent .wfx / .wfn files are refused instead of loading as
    something else; open-shell and fractionally occupied files no longer get a closed-shell exchange formula.
  • qtaim_wfn_create_raw_prims and the GTO constructor no longer overflow memory on high angular momentum, invalid
    exponents or very large counts.
  • The critical-point search finds points that 1.6.0 missed, and the symmetric eigensolver is scale invariant.
  • Builds with MSVC 19.50 and with MinGW (MSYS2 ucrt64) gcc 15.2. 1.6.0 does not build with that MSVC; MinGW was not
    tried on 1.6.0.

New

  • qtaim_integrate_attractor_basin and qtaim_integrate_density_basins: basins of any listed or searched density
    maximum, non-nuclear ones included (no IQA).
  • Adaptive basin integration in both angles, with convergence reported per atom.
  • qtaim_search_critical_points with a report; qtaim_symmetric_inertia; status QTAIM_ERR_UNSUPPORTED (-8).

Behaviour changes: read before upgrading

  • Whole-molecule basin calls now return QTAIM_ERR_CONVERGE (-6), with all outputs written, when an atom is not
    converged. Code that treats any non-zero status as fatal will stop where 1.6.0 continued. LiF and LiH with 6-31G*, Li2
    and molecules with counterpoise ghost atoms are examples.
  • The default interaction energies can be less accurate than in 1.6.0: the H2+ model total is off by 5.0e-4 hartree
    (1.6.0: 9e-8), whatever the mesh arguments. Ask qtaim_integrate_atom_adaptive for a tighter tol_E.
  • Much slower: the critical-point search costs one to two orders of magnitude more CPU time, and basin integration
    and interaction energies can be many times slower.
  • Nuclear coordinates beyond 1e6 bohr, non-finite input and out-of-range exponents are refused (the Wolfram mirror does
    not apply the coordinate bound).

Known faults that remain

  • A very small basin next to a newly born maximum can be wrong while reported converged. Measured on test densities:
    0.0101 electrons for 0.0092 (single-atom calls), 0.0034 for 0.0032, and 0.0023 for 0.0010 (also through the
    whole-molecule density-basins call). The cause of the last two is not established.
  • Nuclei closer than about 0.3 bohr can give badly wrong populations while reported converged.
  • The critical-point search is sampled and can miss points, in some cases without a flag. A maximum it misses gets no
    basin.
  • Error estimates are not bounds; L(Omega) has no error control of its own.
  • Localization and delocalization indices are not computed; dV_surf is zero; qtaim_crystal_from_caveman ignores the
    atoms given to it.
  • Four-component (spinor) densities are not supported.
  • macOS: with MacPorts libomp the Wolfram bridge aborts (two OpenMP runtimes).

The full list is in the README and in include/QTAIM.h.

How it was tested

No single run of all 18 tests passed on the release commit. The results below come from commits with the same library
code (they differ in one test file, comments and documentation).

  • Linux: all 18 tests pass (16 in one run; the two density-basins tests after a fix to the test itself).
  • macOS (Apple silicon, with Wolfram, OpenMP off): the same 18 pass in the same way.
  • Windows: all 13 C tests pass with MinGW gcc in one run and with MSVC across two commits; the six Wolfram scripts run
    with the MSVC library pass.
  • GitHub C core workflow (quick C tests): Linux gcc and clang, macOS AppleClang, Windows MSVC and clang-cl.
  • Not run: the opt-in slow Wolfram-against-C comparison with several attractors.