# runSNVS — Shell-Nested Virtual Spaces Version 1.0.2 · Dariusz W. Szczepanik, Jagiellonian University, Kraków · https://aromaticity.uj.edu.pl/runsnvs runSNVS computes correlation energies in a hierarchy of nested virtual spaces L0 ⊂ L1 ⊂ L2 ⊂ … ⊂ parent built from shell-nested atomic orbitals (SNAO) guided by tabulated atomic natural orbitals. One run goes from a geometry to RI-MP2, CCSD and CCSD(T) energies in every layer: - **own SCF**: RHF, UHF, ROHF and Kohn–Sham (LDA, PBE, PBE0; own functionals), stability analysis, built-in ano-pVDZ…ano-pV5Z basis sets (H–Ar); RI-JK for small and medium systems, RIJCOSX with multipole-accelerated RI-J and stored COSX potentials for large ones; - **NAO/SNAO analysis** of SCF wavefunctions from runSNVS, ORCA, Gaussian, Molden, Turbomole and GAMESS; - **correlation in layers**: RI-MP2, CCSD and CCSD(T), closed- and open-shell, with integrals from libcint. ## Build and install Requirements: a Fortran 2008 compiler (developed with gfortran 14), a C compiler, `make`, BLAS/LAPACK (OpenBLAS on Linux, Accelerate on macOS), and `git` + `cmake` for libcint. ``` # Debian/Ubuntu sudo apt install gfortran gcc make cmake git libopenblas-dev liblapack-dev # macOS (Homebrew) xcode-select --install; brew install gcc cmake git # Windows: MSYS2 UCRT64 shell pacman -S git make mingw-w64-ucrt-x86_64-{gcc,gcc-fortran,cmake,openblas} ``` 1. libcint 6.1.3 (downloaded and built outside this folder, static archive in `~/opt/libcint-6.1.3`): ``` bash scripts/build_libcint.sh ``` Another prefix: `PREFIX=/opt/libcint bash scripts/build_libcint.sh`, then `make LIBCINT=/opt/libcint`. 2. runSNVS: ``` make -j 8 sudo make install # /usr/local/bin/runSNVS; PREFIX=$HOME/.local make install without sudo ``` `make help` lists the options. The build uses `-march=native`: an executable built on one machine may not run on an older CPU. 3. Check: ``` cd examples/h2o && sh run.sh # compare with expected_output.txt (about 1 s) ``` ## Running ``` runSNVS -i mol.xyz --basis ano-pVTZ -m ccsdt -n 8 # geometry -> SCF -> layers -> CCSD(T) runSNVS -i mol.xyz --basis ano-pVQZ # SCF only (mol.scf.json) runSNVS -i mol.json -m ccsd -n 16 --mem 64 # SCF from ORCA (orca_2json export) runSNVS -h # help; runSNVS -h all for every option ``` The `.xyz` file has the number of atoms and optionally charge and multiplicity on line 1, a comment on line 2 and `Symbol x y z` (Å) below. Threads: `-n`; memory budget: `--mem` (GB; default `auto` = 0.9 × the memory available to the process). ## Documentation - `docs/QUICKSTART_runSNVS.md` — first runs, with the expected output; - `docs/MANUAL_runSNVS.md` — every input, option and output file; - `docs/runSNVS_technical_reference.pdf` — theory, equations, algorithms, literature and validation of every implemented method; - `examples/` — three ready-to-run examples. ## Citing Please cite the publications of the methods you used (`runSNVS --cite bib` writes the references of the NAO/SNAO/ANO constructions; the Technical Reference lists the literature of every method) and the program as: D. W. Szczepanik, *runSNVS*, version 1.0.2 (2026), https://aromaticity.uj.edu.pl/runsnvs. Layered constructions rest on: D. W. Szczepanik, *J. Phys. Chem. A* **130**, 9009–9019 (2026), doi:10.1021/acs.jpca.6c06093 (shell-nested atomic orbitals) and D. W. Szczepanik, *J. Comput. Chem.* **47**, e70491 (2026), doi:10.1002/jcc.70491 (frozen natural minimal basis). The CCSD and (T) solvers (closed and open shell) were implemented with PySCF as the term-by-term reference (see `licences/THIRD-PARTY-LICENSES.txt`); when you publish CCSD/CCSD(T) results please also cite PySCF: Q. Sun et al., *J. Chem. Phys.* **153**, 024109 (2020), doi:10.1063/5.0006074. ## Licence See `LICENSE`. Third-party components (libcint, OpenBLAS/LAPACK), the PySCF modules used as the reference of the coupled-cluster solvers, and bundled data (basis sets, quadrature tables) are listed with their licences in `licences/THIRD-PARTY-LICENSES.txt`.