Skip to content

Commit 31ff1e3

Browse files
sokolov-groupTerryStahlssh2bogdanofffchapoton
authored
Molecular ADC for electronic excitations (EE-ADC) (#2893)
* Merging EE-ADC code (#38) * Running autoflake to clean up flake errors * Trying agressive autoflake * Addressing flake errors in uadc_ip_cvs.py * Fixing comparisons with boolean * Addressing long line flake errors * Flake is clean * Fixing issues in periodic tests * Renaming tests to skip * Fixed API for the DF integrals * Updates master from base fork * Interface to libmsym (https://github.com/mcodev31/libmsym) for handeling non-abelian symmetry (#1477) * ENH: Add interface to libmsym (https://github.com/mcodev31/libmsym) * ENH: Add option to clean non-symmetric orbital parts in symm.symmetrize_space * ENH: Add extrasym option to forbid certain orbital rotations in mcscf * Write irrep ID if irrep name is not available * ENH: Use axes and origin found by pyscf to generate SALCs with libmsym * Add doc strings to the libmsym interface and verify it is not used with mol.cart * Improvements to symm.addons.symmetrize_space * Create find_symmetric_mo function out of existing code * Add Lowdin orthogonalization steps into symm.addons.symmetrize_space * Add function that can symmetrize orbitals with respect to multidimensional irreps * Get rid of extra dicts in the multidimensional symmetrization function * Make orbital irrep_id by libmsym interface reductable to the highest Abelian subgroup * Fix tests, skip symmetrization analysis if there are no orbitals * fix bad indentations (E111 pycodestyle warning) * some pep8 fixes as suggested by pycodestyle (#1834) * fix some typos (found using codespell) (#1828) * some fixes for rst syntax in the doc (#1829) * Recognize also numpy integer types in the density functional wrapper * Implement another variant of the Hückel guess (#1784) * Implement another variant of the Hückel guess based on the updated GWH rule from doi:10.1021/ja00480a005 * Fix bug in symm cas methods (#1817) * fix bug in symm cas methods * Fix flake8 W293 * fixing a few more typos in gto/ and lo/ * Fix the edge case CAS(2,2) for Selected CI (issue #1808) (#1845) * Fix the edge case CAS(2,2) for Selected CI (issue #1808) * Fix test * [Ready for review] Complete implementation of pbc/tdscf (#1793) * Bug fix for RSDF due to Mole basis sorting * Bug fix for pbc df Jbuild for hermi == 0 * improve TDSCF init guess degeneracy handle * complete pbc tdscf * b3lyp -> b3lyp5 * adjust values due to v2.3 * add examples; add finalize * remove non-gamma point exception * fix flake8 error * remove numer instable tests (higher roots) * update tests * fix wrong num of states * bug fix in response * keep minimal changes for pbc _response * better handle of exxdiv, including vcut * add NotImplementedError for rsjk + non-zero kshift * fix shifted kpt for TDRKS/UKS * fix flake8 error * revert CasidaTDDFT * fix flake error --------- Co-authored-by: hongzhouye <> * added NVT BOMD and example (#1818) * add NVT BOMD and example * overload functions * remove default NVT * remove NVTBerendson * update init * update example * add NVTBerendson unit test * corrected Temperature() * corrected temperature * added temp rmsf check * added temperature test * removed pandas dependency * added temperature test linear mol * corrected flake8 errors * Fix lz_adaptation example; needs to run in D2h symmetry to work * new collection of typos everywhere * Optimize grad_nuc * Newton casscf hcc (issue #701) (#1869) * Hessian_CC in newton_casscf (issue #731) Hessian-vector product should have zero overlap w/ keyframe CI vector at all times. Remove factors of 2 which spoiled this. * update newton_casscf unit tests --------- Co-authored-by: Matthew R Hermes <[email protected]> * fix other rst issues * Support Gaussian charge model for int1e_grids * GHF with fractional occupancy (#1826) * Fix bug in GHF with fractional occupancy * Remove unused code in X2C * Fix setup.py * Implement fcidump.from_mcscf * add pycodestyle to linter workflow * trying to fix the flake8 linter * get rid of TAB characters, and activate check for W191 * fix and activate pycodestyle W293 * Fixes #1846 * Optimize JK builder for short-range ERIs (#1882) * Optimize get_jk for SR integrals; Update fill_ints_sr for cint 6.0 * Add tests * Fix _vhf.direct_mapdm * Refactor VHFOpt, to manage the memory of CVHFOpt in Python * Updates for lint * Libxc or XCFun should be cited for density functional calculations * Support using DF-CCSD and frozen for FNO-CCSD (#1893) * Bug fix for RSDF due to Mole basis sorting * Bug fix for pbc df Jbuild for hermi == 0 * support frozen * fix test name --------- Co-authored-by: hongzhouye <> * Assume 46 and 78 core configurations to be f-in-valence * fix but do not activate W391 (#1885) * Improve wheel (#1900) * Improve setup.py; fix issue #973 #934 * Adjust CI test pipeline and pypi wheel build pipeline * Adjust CI pipeline for python 3.12 * Fix CI job on MacOS * Remove pytest-timer from python3.12 CI tests * Pytest-cov uses a large amount of memory in CI jobs * Fix ci.yml * Remove deprecated pkg_resources library (for Python 3.12) * Fix syntax error * Disable pyberny version check * New features and code refactoring (#1859) * Add numint2c for pbc.dft; Update pbc-gks tests; Refactor pbc scf and dft methods * Fix inheritance problems in k-DFT ksymm methods * Add vv10 for pbc dft * Fix kgks * Improve k-dft initialization * Update pbc-dft nlc tests * Add undo method for dynamically generated classes * Update the treatment of _keys * Refactor smearing * Refactor mcscf * new GTO base class and conversion between mole and cell * Refactor basis parser; merge gto.mole basis parser and pbcgto.cell basis parser * Fix inconsistency between _bas and _basis (related to issue #1770) * update __getattr__ * Remove unnecessary Mixins * Update class structures of localization modules * Add the shallow copy method in the base class StreamObject * Remove copy statements in mcscf modules * Fix basis parser and other tests * Update mcscf addons and fci addons * Update tests * Make Mole and Cell picklable * Adjust CI test pipelines and other updates * Fix code merging conflicts * Update rsdf _keys * Restore r_numint tests * Fix pp_int for Mole object * Update tests * Fix TDDFT initial guess (#1897) * Remove trunc_workspace * Fix initial guess for tdscf methods; Update tdscf tests * Restore tests * Update tests * Fix tests, restore tests * no need to inherit from object * add pcm solvent models (#1884) * added solvent models * add example for RHF * cleanup variables * support casci casscf and ccsd * uncomment unittests * change example name * update reset * for flake8 * fixed a bug in soscf/newton_ah.py * updated for recent master changes * remove whitespace * remove whitespace * use yield from (ruff UP028) * Release 2.4 (#1904) * Release 2.4 * Fix macos pypi wheel * Allow to turn off AO symmetry for PBC KS calculations (#1905) * allow turning off AO symmetry for PBC DFT * add test * modernize super() (ruff UP008) * Fix CASCI grad (#1914) * casci grad crash for small max_memory. Fix #1909 * Fix tests * Fix chunking dimension for pol_embed in _compute_multipole_potential_integrals * Lattice-sum cutoff (#1923) * basis rcut bug for non-orthogonal cell. Fix #1911 * Slightly adjust estimate_rcut to improve PBC integral accuracy * Fix adc tests * fix get_bands with k-point symmetry * added selected CI example for molecules * apply "ruff --fix check --select=C40 pyscf" * fix cc example 20 * Update Mole.loads method for backward compatibility * Fix rsdf due to the basis sorting in 923d84c (issue 1942) * Fix decontract_basis function when basis are missed on certain atoms. (Fix #1711) (#1943) * Fix decontract_basis when basis are missed on certain atoms. (Fix #1711) * 4th, and 5th order XC derivatives (#1930) * Update conda build * Arbitrary order to transform_xc; patch xcfun up to 5th order * Update libxc itrf * Configure max_deriv_order; arbitrary order for ud2ts and ts2ud * Add 4th order XC deriv in CI job * To gpu (#1901) * Add to_gpu * Remove multi-inheritances of pbc mean-field class * Remove GKS.to_gpu * Undefined variables * Update to_gpu * Add istype function to handle both the mol-SCF and gamma-point-SCF objects * Update mf type check code in all post HF functions * Improve the undo_soscf method in which unnecessary df objects are remvoed * Fix tests * Update tdscf initialization * typo * Missing remove_soscf in khf * add 'max_cycle' to hessianbase * Fix PBC DFT Becke grid rounding error (#1960) * Explicit file encoding for cuda mixed environment due to issue NVIDIA/cuda-python#29 * Swith off sparsity algorithm for small system (issue #1956) * native support dispersion correction (#1916) * added solvent models * add example for RHF * cleanup variables * support casci casscf and ccsd * uncomment unittests * change example name * update reset * for flake8 * fixed a bug in soscf/newton_ah.py * updated for recent master changes * remove whitespace * remove whitespace * native support dispersion correction * fixed a bug in pcm * Update hf.py * move dispersion to addons * remove disp in RKS * call get_dispersion in kernels * added unit test for d4 * fixed dispersion correction in testing h2o * updated ci * skip unittest if dftd3 or dftd4 is missing * Fci str2addr (#1971) * Update cistring module for issue #1886 * Slightly optimize the fci contraction performance * fix a bug in KUGWAC that doesn't generate proper GDF when using LDA/GGA functionals * Update periodic GW init and add example (#1967) * Update periodic GW init and add example * Update 22-k_points_gw.py * Removing mf.to_rhf() and mf.to_uhf() The `to_rhf()` seems to raise the same DF error as in the unrestricted case, so I've removed it. But with/without `to_uhf()` I still get the same DF error. * Fix a bug in ci string function * fix typo * Bug fix in interactive solver for non-canonical UMP2 (#1991) * Bug fix in interactive solver for non-canonical UMP2 * Fixed the test_ump2.py --------- Co-authored-by: hung.pham <[email protected]> * Bug fix for Pipek Mezey + Stability check using Jacobi sweep (#1990) * PM loss/grad/hess for any exponent; add test * add jacobi stability check for PM * bug fix for boy pbc * Add heading --------- Co-authored-by: hongzhouye <> * skip mol in to_gpu * Fix basis order issue in molden.load (issue #1961) * Update Mole and Cell for the hasattr error in to_gpu and to_cpu methods * Fix post-hf Gradients with cartesian GTOs (issue #1985) * Handle xcfun patch failure in cmake * Fix the shape bug in make_eris_incore in gccsd.py As described in issues #2002 * Enable numpy array of get_k_kpts in df_jk.py Dear all, I found that if the user gives a set of mo_occ or mo_coeff (in numpy array form) to the kmf with GDF, the current will raise an error. It assume the mo_coeff, mo_occ is list of tuple. * fix indentation * fix a typo (missing .ndim) * Include publication year and DOI in ECP computation references * Update cmake patch command (issue #1998) * Warning messages, and other improvements (#2009) * Warning messages for MGGA in Hessian calculations * Cache dynamically generated class * Update the HDF5 tempfile handler * Ensure shape of lattice vectors (issue #1932) * feat(gto.basis): improve final, generic error message for basis not found * add nr_nlc_vxc to NumInt * Chkfile initial guess problem in ROHF and ROKS (issue #1986) (#2010) * Fix chkfile initial guess problem for ROHF and ROKS (issue #1986) * Use UHF natural orbital for RHF chkfile initial guess * Enable some xc_deriv tests * Enable xcfun compilation * Print b3lyp warning when needed (issue #2029) (#2040) * Hide b3lyp warning (issue #2029) * Backward compatibility for xcfun * typo * Optimize the memory usage of GDF builder (#2047) * Control the memory footprint for rsdf_builder and rsjk_builder (issue #2017) * Adjust omega value in rsdf and rsjk * Improve cistring.addr2str for large address (issue #1886) * Handle magmom in Mole serialization (#2049) * magmom serialization problem (issue #2026) * Handle mesh * Add tests for cell.dumps * Fix the class of supercell scf object for the k2gamma conversion (#2030) (#2041) * Fix the class of supercell scf object for the k2gamma conversion (#2030) * typo * Update k2gamma tests * Refactor: error checks in C code and updates for GPU4PySCF library (#2048) * Update to c99 standard; update dependency to libcint-6.1.1 * Update SCF functions for corresponding code in GPU4PySCF * Add checks for malloc * Update 02-ghf example according to issue #1970 * Update libcint/qcint version * Remove the implicit dependency to mpi4py in __init__.py (issue #1888) (#2059) * Remove the implicit dependency to mpi4py in __init__.py (issue #1888) * import error * Import error in momgfccsd tests * Fix df-grad for UHF when symmetry is enabled (issue #2054) * Check cylindrical symmetry of the orbitals for FCI solver (issue #2022) * Fix bug for init_guess=atom (issue #2056) Fix dft get_veff tests * Improve magmom initialization (issue #2055) * DIIS with damping (#2053) * update simple damping and add DIIS damping * update get_fock in solvent and dynamic level shift --------- Co-authored-by: hongzhouye <> * Add level shift to CPHF solver * fix cp2k basis parse (issue #2043) (#2045) * fix issue #2043 * add test for parse_cp2k * allow symbol choosing for GTH PP parser * SA-CASSCF Nonadiabatic Coupling Vectors (#2046) * add nacs stuff but need to rebuild * fix io warning test * add sacasscf nac files from mrh * update and add nac_method * fix for flake8 * add example file * update to assert len and uniqueness of states * udpate * udpate * udpate * fix assert statements and handling of state[0]==state[1] * Backward compatibility issue in fci.cistring * Release 2.5 * fix magmom check in mol.copy() If magmom is an np.ndarray, `if mol.magmom` will raise error. Need to explicitly use `is not None` * Move LebedevGrid C code to Python code; fix issue #2073 (#2076) * Move LebedevGrid C code to Python code; fix issue #2073 * Restore CxLebedevGrid.c and fix bug * lint error * Add an API to dump system info * multigrid DFT version 2 (#2078) * Fix smearing with predefined chemical potential (#2098) * added hubbard model with UHF example, fixed chemical potential bug in addons.py * fix pbc smearing * add test for smearing with mu0 --------- Co-authored-by: fishjojo <[email protected]> * Add tests for ndarray_pointer_2d function (#2101) * Add tests for ndarray_pointer_2d function * Fix ndarray_pointer_2d * Fix transform_ci for more than 64 orbitals (#2095) * Fix transform_ci for more than 64 orbitals * Separate occ_masks into a function * fix binomial function in fci_string * Fix xcfun high-order derivatives * More type checks in fci solver (#2122) * float type checks * Update mcscf docstring (issue #2119) * Fix failed tests * Improve to_gpu (#2124) * Update to_gpu * Improve to_ks/to_hf * Update to_gpu for df, solvent, qmm, and other methods * Fix fci initialization * Improve memory usage for RPA (#2115) * improve memory usage for RPA with outcore ao2mo; fix small bug * raise something when loading libpbc.get_Gv * fix flake8 issue * fix flake8 issue * used DF-RHF as EXX, changed ref values * unrestricted case * unrestricted case * Restore pyscf/pbc/gto/cell.py * DFT wrapper supporting conventional DFT methods (#2084) * added solvent models * add example for RHF * cleanup variables * support casci casscf and ccsd * uncomment unittests * change example name * update reset * for flake8 * fixed a bug in soscf/newton_ah.py * updated for recent master changes * remove whitespace * remove whitespace * native support dispersion correction * fixed a bug in pcm * Update hf.py * move dispersion to addons * remove disp in RKS * call get_dispersion in kernels * added unit test for d4 * fixed dispersion correction in testing h2o * updated ci * skip unittest if dftd3 or dftd4 is missing * new high level dft wrapper * clean up & move dispersion to energy_tot * remove disp from dft _keys * fixed import dftd3_xc_map * fixed typo * added a wrapper for is_nlc * replaced more ni.libxc.is_nlc with ni.is_nlc * added wb97x-d3 as a special case * added disp_3body * removesuffix -> replace * address qiming's comments * add dft_parser && change back to libxc.is_nlc * fixed unit test * disable wb97x-d3, wb97x-d * skip dftd3 for py3.12 & skip wb97x-d3 * Update dft_parser; Add tests for dft_parser * Add warning messages * Update test_h2o.py --------- Co-authored-by: Qiming Sun <[email protected]> * fix dipole moment in sfx2c1e * debug and simplify to_gpu (#2149) * support and simplify to_gpu * remove comments * flake8 * bug fix for RCCSD(T) with complex orbitals (#2141) * bug fix for vooo order * fix flake8 --------- Co-authored-by: hongzhouye <> * Fix if mf.istype('UHF') for to_uhf() conversion * Solve conflicts between @Property and __getattr__ * move static configurations from setup.py to pyproject.toml (#2144) * move testing options to pytest.ini * move static configurations from setup.py to pyproject.toml * Update CI release jobs --------- Co-authored-by: Qiming Sun <[email protected]> * fix pbc df with KPoints input * Fix pip builder * reset enuc in _build_supcell_ (#2164) * reset enuc in _build_supcell_ * add test for enuc reset --------- Co-authored-by: hongzhouye <> * Bug fix for single k-point JK-build in PBC DF (#2165) * bug fix for j-build in get_jk * bug fix for k-build in get_jk --------- Co-authored-by: hongzhouye <> * add missing init file * DFTD3 & DFTD4 builder (#2161) * local build dftd3/dftd4 * flake8 * fixed issues apis * add compilation tool for mac * fixed bugs in unittest * fixed an issue in unit test * add fortran compiler * fortran compiler * Move dftd3 and dftd4 builder to a separated repo (pyscf-dispersion) * enable dftd3 & dftd4 for python3.12 * Adjust tests --------- Co-authored-by: Qiming Sun <[email protected]> * Kpoint dft to_hf error (fix issue #2157) * ancient GCC compatibility * fix * fix: infinite recursion atom_hf call when ECP with super-heavy atoms (>Cm) (#2183) * bugfix: resolve recursive initial guess when atomic charge > 96 (> Cm) and ecp activated * Adjust AGF2 tests --------- Co-authored-by: Qiming Sun <[email protected]> * fix x_id in parse_token * fixing unit test for dftd3 and dftd4 * Run CASCI and CASSCF without symmetry if symmetry is C1 (#2195) * Run CASCI and CASSCF without symmetry if symmetry is C1 * groupname, not symmetry! * move auxbasis_response out of __init__ (#2192) * move auxbasis_response out of __init__ * relax unit test in test_c_agf2 * import hessian * Update __init__.py * improve the consistency in DF modules (#2204) * improve the consistency * added comment to _pinv * tight conv_tol_cpscf by default * set linear dependence threshold to 1e-9 * remove comments * update unit tests * SMD model and PCM Hessian (#2173) * local build dftd3/dftd4 * flake8 * fixed issues apis * add compilation tool for mac * fixed bugs in unittest * fixed an issue in unit test * add fortran compiler * fortran compiler * Move dftd3 and dftd4 builder to a separated repo (pyscf-dispersion) * enable dftd3 & dftd4 for python3.12 * Adjust tests * add PCM and SMD, gradient and Hessian * added __init__ files * debug for ci * flake8 * add more unit tests && refactor code * Fix if mf.istype('UHF') for to_uhf() conversion * Solve conflicts between @Property and __getattr__ * move static configurations from setup.py to pyproject.toml (#2144) * move testing options to pytest.ini * move static configurations from setup.py to pyproject.toml * Update CI release jobs --------- Co-authored-by: Qiming Sun <[email protected]> * fix pbc df with KPoints input * Fix pip builder * reset enuc in _build_supcell_ (#2164) * reset enuc in _build_supcell_ * add test for enuc reset --------- Co-authored-by: hongzhouye <> * Bug fix for single k-point JK-build in PBC DF (#2165) * bug fix for j-build in get_jk * bug fix for k-build in get_jk --------- Co-authored-by: hongzhouye <> * add missing init file * Kpoint dft to_hf error (fix issue #2157) * ancient GCC compatibility * fix * local build dftd3/dftd4 * rebase * fixed bugs in unittest * add fortran compiler * rebase * delete dftd3 and dftd4 files * legacy SMD * fortran compiler for mac * gcc * which gcc * found fortran compiler * fortran compiler * reinstall gcc * update unit test for pcm * relax unit test in agf2 * resolved some comments * add statement for smd source code * refactor smd * fixed bugs * bugfix * Skip compiling SMD by default * Add fortran compiler in Macos build; Fix conda build. * empty line at EOF * Fix SMD configuration in linux wheel * add an example for SMD * SkipTest -> skipTest * excited states for PCM * revert the changes in dispersion * EOF * added warnings in solvent modules when finite difference is used --------- Co-authored-by: Qiming Sun <[email protected]> Co-authored-by: Michal Krompiec <[email protected]> Co-authored-by: chillenb <[email protected]> Co-authored-by: fishjojo <[email protected]> Co-authored-by: Hong-Zhou Ye <[email protected]> Co-authored-by: Maximilian Scheurer <[email protected]> Co-authored-by: Matthew Hennefarth <[email protected]> * Density fitting performance optimization (re issue #1915) (#2205) * use trsm in df.incore * use np.matmul in df/df_jk.py * faster df.outcore with trsm * avoid numpy mem copy with h5py read_direct * clarify chained matmuls * use lib.dot to avoid syrk, df/outcore.py swap buffers * Restore functionality for CDFT example (#2210) * Restore functionality for CDFT example I'm sure this example worked when it was authored, but that is no longer the case. This patch restores functionality. * replace deprecated xrange with range * add V step size to verbose output It is one of the convergence criteria and should be shown * add commentable option to verify consistency of example * make post and pre diis implementations of the inner loop consistent * add arg that pyscf expects On my machine this wasn't needed but on others it was * Move comments to docstring * factor out cdft inner loop * remove unused things * correct errors in the documentation * improve DFT APIs (#2187) * support nlc = False && enhance dispersion correction * Add DFT d3 examples * reorg xc, nlc, and disp * flake8 * Update dispersion error messages and examples * updated example for dftd3 * Fix dispersion funciton names * Fix dft sanity check * Fix super() in KohnSham.check_sanity() * Fix dftd3 test * Conservative import * print info in dispersion corrections * change apis * bugfix * remove print * bugfix * added do_nlc check * clarify do_nlc * raise conflict between mf.xc and mf.nlc * Cleanup disp logics and update disp examples * Update dft_parser module * Fix undefined-variable errors * Fix dispersion parser * Update example --------- Co-authored-by: Qiming Sun <[email protected]> * reomve some traces of unicode (py2) and some unused imports * Update install dependencies * Fix an import issue for X2C_KS (issue #2223) * The spin_samples attribute for DKS * Fix frozen for FNO (#2217) * fix frozen for FNO * fix FNO-UCC * fix flake8 --------- Co-authored-by: hongzhouye <> * DF dataset naming issue for rsh xc (fix #2236) (#2240) * df dataset naming issue for rsh xc (fix #2236) * fix tests * Release 2.6 * bugfix in dispersion hessian (#2242) * bugfix in dispersion hessian * fixed bug in dispersion hessian * added more unit test for dispersion * unit test * allow passing in options when creating HDF5 files (#2218) * allow passing in options when creating HDF5 files * Undo typo in ao2mo/outcore * fix typo in h5filewrite_options example * change default basis linear dependence threshold (#2228) * change default basis linear dependence threshold * sync setting in outcore.py * unit test & linear dependence threshold * linter * 1e-12 -> 1e-14 for linear dependence * lindep = 1e-13 * relax unit test * Update test_df.py * Update incore.py * Update test_linalg_helper.py * Update linalg_helper.py --------- Co-authored-by: Qiming Sun <[email protected]> * Abandon ROHF gradients and ROHF hessian (#2259) * Add ruff check (#2262) * Updates for numpy 2.0 release; Add ruff check; Cleanup tests * Degeneracy issue in KGKS tests * Adjust tests * Fix a knumint bug when handling mcol and ncol * Update ruff config * Update doc strings (#2264) * Update doc of eval_gto function * Update geomopt examples (fix #2233) and atom_coords examples * Improve pypi build pipeline (#2265) * Adjust build order in release pipeline * Update aarch64 build * Handle dynamically registered post-HF attributes * Patch release 2.6.1 * use all conda-forge compilers * Updates due to NumPy 2.0 API changes (#2274) * Updates due to NumPy 2.0 API changes * Fix __array_wrap__ * Fix a bug caused by an inplace operation in linalg_helper._qr * Fix inplace operation bug in pbc.cc.kintermediates_uhf * Retore a few np.array(copy=True) statement * Patch release 2.6.2 * Fix wheel build for setuptools 70 (#2278) * Fix platform issue in bdist_wheel * In case fail to import bdist_wheel * Remove the ase module bulk from pyscf_ase (fix #2271) (#2279) * Remove the ase module bulk from pyscf_ase (fix #2271) * Fix get_ab of tddft for RSH functional (Fix #2261) * Missing symbols * Add tests * typo * Fix integer overflow for large ano basis (#2282) * Fix integer overflow for large ano basis (fix #2201) * More int type issues * Fix Hessian atmlst and example (#2293) * add atmlst to examples; fix examples/hessian/01-scf_hessian.py * fix atmlst for hessian * fix lint issue * fix scipy.sparse.linalg.cg issue * fix scipy.sparse.linalg.cg issue * fix scipy.sparse.linalg.cg issue * fix scipy.sparse.linalg.cg issue * allow modifying tol and nroots in stability (#2299) * allow modifying tol and nroots * add example for tight tol * pass kwargs to mf.stability * fix typo * Fix bugs in complex-valued contractions for direct_nosym (fix #2302) * Handle api changes in scipy-1.14 * typo * Fix initial guess dimension problems when solving multiple roots (fix issue #2292) * Fix import dependency issue in SCF.do_disp() * Fix a dimension bug in direct_spin1_cyl_sym. Update example for issue #2291 * compare version as int, not str (#2309) * fixing a few typos * another little wave of typos * Fix addons.smearing RHF electron number (#2290) * typos and typos * a few more typos fixed * Fix to kscf for dft (#2336) * fix bug in convert_to_kscf * fix bug in convert_to_kscf * fix kuhf case in convert_to_kscf * Fix MP2 FNO bug when pct_occ=1 (#2337) * Update mp2.py * Update ump2.py * Superposition of Atomic Potentials (SAP) initial guess implementation for HF-SCF calculations (#2301) * Added VSAP initial guess implementation for Hartree-Fock SCF calculations (described by S. Lehtola here: https://doi.org/10.1021/acs.jctc.8b01089) Modified fakemol_for_charges to be usable for SAP 3C2E integrals. Supplied sap_grasp coefficients computed by S. Lehtola. * Added 'large' and 'small' sap coefficient functionality * Fixed some bugs in recognition of DFT and HF objects and their SAP guesses. Made other cleanups and fixes proposed by S. Lehtola. * Changed logger.error to logger.warn * Renamed HF SAP guess functions from 'vsap' to 'sap' to avoid confusion with DFT counterparts using a different method with same name. * Fixed a bug I had created by accident. Created new fakemol_for_cgtf_charge function to be used in forming SAP guess and to avoid breaking other functionality which use the fakemol_for_charges function. * Removed redundant attribute check * vsap -> sap * charge sumcheck tolerance set to 1e-6 * Apply suggestions from code review Co-authored-by: Susi Lehtola <[email protected]> * Changed sap initial guess to accept basis set in internal format (python dict) or as a string (will look for basis file locally and from basis set exhcange if bse api is installed) * Added SAP guess to restricted open-shell Hartree-Fock (ROHF) * Added SAP guess to non-relativistic generalized Hartree-Fock (GHF) * Tidy up SAP function in GHF, make sap_grasp_large to default SAP basis * Add example for SAP inital guess. * Added SAP guess to Dirac-Hartree-Fock (DHF) * small cleanups * SAP now accepts internally formatted python dictionary as basis. SCF object has new attribute sap_basis * Apply suggestions from code review Co-authored-by: Susi Lehtola <[email protected]> * Clarified example using explicit dictionary format basis for SAP * Apply suggestions from code review Co-authored-by: Susi Lehtola <[email protected]> * Comment for vsap added back * Fixed issue * Fixed style issues * Fix style issue with extraneous 'f' prefix * fix ROHF SAP guess call tree, add SAP unittest for rhf and rohf * Fixed accidental incorrect test * Add SAP guess to UHF * Add SAP unittest for uhf * Add SAP unittest for GHF * Add SAP unittest for DHF * flake8 warning --------- Co-authored-by: Susi Lehtola <[email protected]> Co-authored-by: Qiming Sun <[email protected]> * Use weakref for automatic deletion of tmpfiles (to fix #2318) (#2320) * Use weakref for automatic deletion of tmpfiles * github actions tests check number of leftover temporary files * temporary file check pytest exit status * Avoid h5f.flush() on closed file --------- Co-authored-by: Qiming Sun <[email protected]> * Updates to the EA/IP-ADC code * Inteface changes * Changes interface to the 1-RDM functions in IP/EA-RADC * Fixed accidental copy * Fixed accidental copy * Fixed Contractions radc_ip.py * Moves make_ref_rdm1 to the appropriate location * IP tests 1RDM Ref and Exc. Up to ADC(3) * Fixed bugs that were breaking EA tests * Clean up * Changes to the UADC class * EA Tests Completed from SO code. Slight cleanup for IP tests * Reference 1RDM tests N2 EA + IP up to ADC(3) * N2 1RDM EA up to ADC(3) tests * Completed RADC(3) 1RDM N2 IP tests * Example file added for 1RDM dipole moment examples with various methods * Small changes to comments in 1RDM test file * Final Comment Change 1RDM examples * Formatting changes and fixing approx_trans_moments option * ROHF code cleanup * Fixes a test for IP-ADC * UADC class clean-up * IP/EA classes clean-up * Add singles correlation energy * More class clean-up, added dipole moment integrals * Author list update * Addresses lint errors * Addressing flake issues * Few more flake issues addressed * Adding the EE-ADC code from the old branch * Fixing osc strengths calculation * Testing oscillator strengths * Oscillator strengths do not match the old implementation. Investigating... * fixed osc problem, TY_xx.append(TY_x) not ordering things right for oscillators but this was not a problem for analyzing spec factors * Changes in the UADC spin contamination interface * fixed rohf bugg added ooov and vvvo density matrices and variants * working on density efficient matrices * added efficent density matrices * deleted some lines * added the radc_ee file that is most up to data * DF low mem bug fixed * made some updates, need to work on flake * radc_ee.py passes flake8, working on uadc_ee.py file * uadc_ee.py file passed flake * Renames spin contamination functions * files pass flake test * Proper handling of compute_properties attribute in RADC * Cleaning up imports * Makes sure that CVS-UADC tests pass * Updates to RADC tests and UADC default convergence thresholds * updated convg thresholds * Example updates and some other interface changes * One more interface change for the RADC code --------- Co-authored-by: Alexander Sokolov <[email protected]> Co-authored-by: Alexander Sokolov <[email protected]> Co-authored-by: sokolov-group <[email protected]> Co-authored-by: Nikolay A. Bogdanov <[email protected]> Co-authored-by: Frédéric Chapoton <[email protected]> Co-authored-by: Susi Lehtola <[email protected]> Co-authored-by: Junjie, Yang <[email protected]> Co-authored-by: Qiming Sun <[email protected]> Co-authored-by: Hongzhou Ye <[email protected]> Co-authored-by: Aniruddha Seal <[email protected]> Co-authored-by: Matthew R Hermes <[email protected]> Co-authored-by: Matthew R Hermes <[email protected]> Co-authored-by: Nikolay Bogdanov <[email protected]> Co-authored-by: Max Nusspickel <[email protected]> Co-authored-by: Xiaojie Wu <[email protected]> Co-authored-by: Xing Zhang <[email protected]> Co-authored-by: peter-reinholdt <[email protected]> Co-authored-by: fishjojo <[email protected]> Co-authored-by: Chong Sun <[email protected]> Co-authored-by: Verena Neufeld <[email protected]> Co-authored-by: Jiachen Li <[email protected]> Co-authored-by: Timothy Berkelbach <[email protected]> Co-authored-by: liwt31 <[email protected]> Co-authored-by: Hung Pham <[email protected]> Co-authored-by: hung.pham <[email protected]> Co-authored-by: Zhihao Cui <[email protected]> Co-authored-by: Felipe S. S. Schneider <[email protected]> Co-authored-by: hongzhouye <unknown> Co-authored-by: matthew-hennefarth <[email protected]> Co-authored-by: Victor Yu <[email protected]> Co-authored-by: Xubo Wang <[email protected]> Co-authored-by: xubwa <[email protected]> Co-authored-by: Michal Krompiec <[email protected]> Co-authored-by: chillenb <[email protected]> Co-authored-by: Maximilian Scheurer <[email protected]> Co-authored-by: Zhenyu Zhu ajz34 <[email protected]> Co-authored-by: jeanwsr <[email protected]> Co-authored-by: scohenjanes5 <[email protected]> Co-authored-by: Joonatan Huhtasalo <[email protected]> Co-authored-by: Susi Lehtola <[email protected]> Co-authored-by: serna.40 <[email protected]> Co-authored-by: Terrence Stahl <[email protected]> * Adding full out-of-core integral support for EE-RADC. Fixed a bug in EE-UADC out-of-core. Better handling of ladder contractions for the in-core code, some code cleanup. (#40) * Code clean up, bug fixes, improved output formatting, new tests and examples (#41) * Adding full out-of-core integral support for EE-RADC. Fixed a bug in EE-UADC out-of-core. Better handling of ladder contractions for the in-core code, some code cleanup. * added uadc_ee open shell test, need to include spin square in test * added radc_ee test, need to think about adding a spin square get flag * all test file pass flake8 * Code cleanup, renaming tests to have consistent file names * More test file renaming, updates doc strings * Code clean up in EE-UADC * added spin square values for open shell systems ee calculations * A bit more cleaning in EE-UADC * Looser test thesholds for spin square * Remove redundant 1-RDM code from EE-ADC S^2 expectation value * Making sure that the code works for approx_trans_moments=True. Improved output formatting * New example for EE-ADC S^2 * Linting... * Fixed subtle bug in approx_trans_moments for EE-UADC. Added tests to check for that. * Small changes in tests * Extra line removed * Merge problem fix --------- Co-authored-by: Alexander Sokolov <[email protected]> Co-authored-by: Terrence Stahl <[email protected]> --------- Co-authored-by: stahl225 <[email protected]> Co-authored-by: Alexander Sokolov <[email protected]> Co-authored-by: Nikolay A. Bogdanov <[email protected]> Co-authored-by: Frédéric Chapoton <[email protected]> Co-authored-by: Susi Lehtola <[email protected]> Co-authored-by: Junjie, Yang <[email protected]> Co-authored-by: Qiming Sun <[email protected]> Co-authored-by: Hongzhou Ye <[email protected]> Co-authored-by: Aniruddha Seal <[email protected]> Co-authored-by: Matthew R Hermes <[email protected]> Co-authored-by: Matthew R Hermes <[email protected]> Co-authored-by: Nikolay Bogdanov <[email protected]> Co-authored-by: Max Nusspickel <[email protected]> Co-authored-by: Xiaojie Wu <[email protected]> Co-authored-by: Xing Zhang <[email protected]> Co-authored-by: peter-reinholdt <[email protected]> Co-authored-by: fishjojo <[email protected]> Co-authored-by: Chong Sun <[email protected]> Co-authored-by: Verena Neufeld <[email protected]> Co-authored-by: Jiachen Li <[email protected]> Co-authored-by: Timothy Berkelbach <[email protected]> Co-authored-by: liwt31 <[email protected]> Co-authored-by: Hung Pham <[email protected]> Co-authored-by: hung.pham <[email protected]> Co-authored-by: Zhihao Cui <[email protected]> Co-authored-by: Felipe S. S. Schneider <[email protected]> Co-authored-by: matthew-hennefarth <[email protected]> Co-authored-by: Victor Yu <[email protected]> Co-authored-by: Xubo Wang <[email protected]> Co-authored-by: xubwa <[email protected]> Co-authored-by: Michal Krompiec <[email protected]> Co-authored-by: chillenb <[email protected]> Co-authored-by: Maximilian Scheurer <[email protected]> Co-authored-by: Zhenyu Zhu ajz34 <[email protected]> Co-authored-by: jeanwsr <[email protected]> Co-authored-by: scohenjanes5 <[email protected]> Co-authored-by: Joonatan Huhtasalo <[email protected]> Co-authored-by: Susi Lehtola <[email protected]> Co-authored-by: serna.40 <[email protected]> Co-authored-by: Terrence Stahl <[email protected]>
1 parent 51162b3 commit 31ff1e3

73 files changed

Lines changed: 28570 additions & 590 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎examples/adc/01-closed_shell.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@
4040
eea,vea,pea,xea = myadc.kernel(nroots = 3)
4141
myadc.analyze()
4242

43+
#EE-RADC(2) for 3 roots
44+
myadc.compute_properties = False
45+
myadc.method = "adc(2)"
46+
myadc.method_type = "ee"
47+
eea,vea,pea,xea = myadc.kernel(nroots = 3)
48+

‎examples/adc/02-open_shell.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
['H', ( 0., 0. , r/2)],]
1414
mol.basis = {'O':'aug-cc-pvdz',
1515
'H':'aug-cc-pvdz'}
16-
mol.verbose = 0
16+
mol.verbose = 4
1717
mol.symmetry = False
1818
mol.spin = 1
1919
mol.build()
@@ -40,3 +40,11 @@
4040

4141
#Compute EA-UADC(3) properties
4242
myadc.analyze()
43+
44+
#EE-UADC(2) for 4 roots with properties and spin square expectation values
45+
myadc.method = "adc(2)"
46+
myadc.method_type = "ee"
47+
myadc.compute_properties = True
48+
myadc.compute_spin_square = True
49+
eea,vea,pea,xea = myadc.kernel(nroots=4)
50+
myadc.analyze()

‎examples/adc/03-closed_shell_different_setup.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@
4040
eip,vip,pip,xip,adc_es = myadc.ip_adc()
4141
eea,vea,pea,xea,adc_es = myadc.ea_adc()
4242

43+
#EE-RADC(3) for 3 roots
44+
myadc.method = "adc(3)"
45+
myadc.method_type = "ee"
46+
myadc.ee_adc(nroots=3)
47+

‎examples/adc/04-open_shell_different_setup.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@
4444

4545
#Compute EA properties
4646
ea_es.analyze()
47+
48+
#EE-UADC(3) for 4 roots
49+
myadc.method = "adc(3)"
50+
myadc.kernel_gs()
51+
myadc.ee_adc(nroots=4)

‎examples/adc/05-outcore.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@
3030
myadc.method = "adc(3)"
3131
myadc.method_type = "ea"
3232
eea,vea,pea,xea = myadc.kernel(nroots = 3)
33+
34+
#EE-RADC(3) for 3 roots
35+
myadc.max_memory = 1
36+
myadc.method = "adc(3)"
37+
myadc.method_type = "ee"
38+
eea,vea,pea,xea = myadc.kernel(nroots = 3)

‎examples/adc/06-dfadc.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@
4646
# Compute properties
4747
myadc.compute_properties = True
4848
myadc.analyze()
49+
50+
# Using different auxiliary basis for EE-ADC
51+
mf = scf.RHF(mol).density_fit('aug-cc-pvdz-jkfit').run()
52+
myadc = adc.ADC(mf).density_fit('aug-cc-pvdz-ri')
53+
myadc.method = "adc(3)"
54+
myadc.method_type = "ee"
55+
myadc.verbose = 6
56+
eip,vip,pip,xip = myadc.kernel(nroots = 3)
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#!/usr/bin/env python
2+
3+
'''
4+
IP/EA-UADC calculations for open-shell OH
5+
'''
6+
7+
from pyscf import gto, scf, adc
8+
from pyscf.adc.uadc_ee import get_spin_square
9+
10+
mol = gto.Mole()
11+
r = 0.969286393
12+
mol.atom = [
13+
['O', ( 0., 0. , -r/2 )],
14+
['H', ( 0., 0. , r/2)],]
15+
mol.basis = {'O':'aug-cc-pvdz',
16+
'H':'aug-cc-pvdz'}
17+
mol.verbose = 4
18+
mol.symmetry = False
19+
mol.spin = 1
20+
mol.build()
21+
22+
#Start with using the UHF reference
23+
mf = scf.UHF(mol)
24+
mf.conv_tol = 1e-12
25+
mf.kernel()
26+
27+
#EE-UADC(2)/UHF for 4 roots with properties and spin square expectation values
28+
myadc = adc.ADC(mf)
29+
myadc.method = "adc(2)"
30+
myadc.method_type = "ee"
31+
myadc.compute_properties = True
32+
myadc.compute_spin_square = True
33+
eee,vee,pee,xee = myadc.kernel(nroots=4)
34+
myadc.analyze()
35+
36+
#Saving spin expectation values into an array
37+
e,v,p,x = myadc.kernel(nroots=4)
38+
myadc = adc.ADC(mf)
39+
myadc.method = "adc(2)"
40+
myadc.method_type = "ee"
41+
myadc.compute_properties = False
42+
myadc.compute_spin_square = False
43+
eee,vee,pee,xee = myadc.kernel(nroots=4)
44+
spin = get_spin_square(myadc._adc_es)[0]
45+
print("ADC(2)/UHF spin expectation values:")
46+
print(spin)
47+
48+
#Repeat calculation using the ROHF reference
49+
mf = scf.ROHF(mol)
50+
mf.conv_tol = 1e-12
51+
mf.kernel()
52+
53+
#EE-UADC(2)/ROHF for 4 roots with properties and spin square expectation values
54+
myadc = adc.ADC(mf)
55+
myadc.method = "adc(2)"
56+
myadc.method_type = "ee"
57+
myadc.compute_properties = True
58+
myadc.compute_spin_square = True
59+
eee,vee,pee,xee = myadc.kernel(nroots=4)
60+
myadc.analyze()
61+
62+
#Saving spin expectation values into an array
63+
e,v,p,x = myadc.kernel(nroots=4)
64+
myadc = adc.ADC(mf)
65+
myadc.method = "adc(2)"
66+
myadc.method_type = "ee"
67+
myadc.compute_properties = False
68+
myadc.compute_spin_square = False
69+
eee,vee,pee,xee = myadc.kernel(nroots=4)
70+
spin = get_spin_square(myadc._adc_es)[0]
71+
print("ADC(2)/ROHF spin expectation values:")
72+
print(spin)

‎pyscf/adc/radc.py‎

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,20 @@
1515
# Author: Abdelrahman Ahmed <>
1616
# Samragni Banerjee <[email protected]>
1717
# James Serna <[email protected]>
18-
# Terrence Stahl <>
18+
# Terrence Stahl <[email protected]>
1919
# Alexander Sokolov <[email protected]>
2020
#
2121

2222
'''
2323
Restricted algebraic diagrammatic construction
2424
'''
2525
import numpy as np
26-
import pyscf.ao2mo as ao2mo
2726
from pyscf import lib
2827
from pyscf.lib import logger
2928
from pyscf.adc import radc_ao2mo
30-
from pyscf.adc import dfadc
3129
from pyscf.adc import radc_amplitudes
3230
from pyscf import __config__
3331
from pyscf import df
34-
from pyscf import symm
3532

3633

3734
# Excited-state kernel
@@ -50,31 +47,55 @@ def kernel(adc, nroots=1, guess=None, eris=None, verbose=None):
5047
if eris is None:
5148
eris = adc.transform_integrals()
5249

50+
if adc.approx_trans_moments:
51+
if adc.method in ("adc(2)", "adc(2)-x"):
52+
logger.warn(
53+
adc,
54+
"Approximations for transition moments are requested...\n"
55+
+ adc.method
56+
+ " transition properties will neglect second-order amplitudes...")
57+
else:
58+
logger.warn(
59+
adc,
60+
"Approximations for transition moments are requested...\n"
61+
+ adc.method
62+
+ " transition properties will neglect third-order amplitudes...")
63+
5364
imds = adc.get_imds(eris)
5465
matvec, diag = adc.gen_matvec(imds, eris)
5566

5667
guess = adc.get_init_guess(nroots, diag, ascending = True)
5768

5869
conv, adc.E, U = lib.linalg_helper.davidson_nosym1(
5970
lambda xs : [matvec(x) for x in xs],
60-
guess, diag, nroots=nroots, verbose=log, tol=adc.conv_tol,
71+
guess, diag, nroots=nroots, verbose=log, tol=adc.conv_tol, max_memory=adc.max_memory,
6172
max_cycle=adc.max_cycle, max_space=adc.max_space, tol_residual=adc.tol_residual)
6273

6374
adc.U = np.array(U).T.copy()
6475

65-
if adc.compute_properties:
76+
if adc.compute_properties and adc.method_type != "ee":
6677
adc.P,adc.X = adc.get_properties(nroots)
78+
else:
79+
adc.P = None
80+
adc.X = None
81+
6782
nfalse = np.shape(conv)[0] - np.sum(conv)
6883

84+
spin_mult = None
85+
if adc.method_type in ("ip", "ea"):
86+
spin_mult = "doublet"
87+
else:
88+
spin_mult = "singlet"
89+
6990
header = ("\n*************************************************************"
70-
"\n ADC calculation summary"
91+
"\n ADC calculation summary (" + spin_mult + " states only)"
7192
"\n*************************************************************")
7293
logger.info(adc, header)
7394

7495
for n in range(nroots):
7596
print_string = ('%s root %d | Energy (Eh) = %14.10f | Energy (eV) = %12.8f ' %
7697
(adc.method, n, adc.E[n], adc.E[n]*27.2114))
77-
if adc.compute_properties:
98+
if adc.compute_properties and adc.method_type != "ee":
7899
print_string += ("| Spec. factor = %10.8f " % adc.P[n])
79100
print_string += ("| conv = %s" % conv[n])
80101
logger.info(adc, print_string)
@@ -198,7 +219,6 @@ class RADC(lib.StreamObject):
198219
}
199220

200221
def __init__(self, mf, frozen=0, mo_coeff=None, mo_occ=None):
201-
from pyscf import gto
202222

203223
if 'dft' in str(mf.__module__):
204224
raise NotImplementedError('DFT reference for UADC')
@@ -216,8 +236,8 @@ def __init__(self, mf, frozen=0, mo_coeff=None, mo_occ=None):
216236

217237
self.max_space = getattr(__config__, 'adc_radc_RADC_max_space', 12)
218238
self.max_cycle = getattr(__config__, 'adc_radc_RADC_max_cycle', 50)
219-
self.conv_tol = getattr(__config__, 'adc_radc_RADC_conv_tol', 1e-12)
220-
self.tol_residual = getattr(__config__, 'adc_radc_RADC_tol_residual', 1e-6)
239+
self.conv_tol = getattr(__config__, 'adc_radc_RADC_conv_tol', 1e-8)
240+
self.tol_residual = getattr(__config__, 'adc_radc_RADC_tol_residual', 1e-5)
221241
self.scf_energy = mf.e_tot
222242

223243
self.frozen = frozen
@@ -369,6 +389,9 @@ def outcore_transform():
369389
if (self.method_type == "ea"):
370390
e_exc, v_exc, spec_fac, x, adc_es = self.ea_adc(nroots=nroots, guess=guess, eris=eris)
371391

392+
elif (self.method_type == "ee"):
393+
e_exc, v_exc, spec_fac, x, adc_es = self.ee_adc(nroots=nroots, guess=guess, eris=eris)
394+
372395
elif(self.method_type == "ip"):
373396
if not isinstance(self.ncvs, type(None)) and self.ncvs > 0:
374397
e_exc, v_exc, spec_fac, x, adc_es = self.ip_cvs_adc(
@@ -393,6 +416,12 @@ def ea_adc(self, nroots=1, guess=None, eris=None):
393416
e_exc, v_exc, spec_fac, x = adc_es.kernel(nroots, guess, eris)
394417
return e_exc, v_exc, spec_fac, x, adc_es
395418

419+
def ee_adc(self, nroots=1, guess=None, eris=None):
420+
from pyscf.adc import radc_ee
421+
adc_es = radc_ee.RADCEE(self)
422+
e_exc, v_exc, spec_fac, x = adc_es.kernel(nroots, guess, eris)
423+
return e_exc, v_exc, spec_fac, x, adc_es
424+
396425
def ip_adc(self, nroots=1, guess=None, eris=None):
397426
from pyscf.adc import radc_ip
398427
adc_es = radc_ip.RADCIP(self)

0 commit comments

Comments
 (0)