gpu4pyscf 0.8.2__tar.gz → 1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gpu4pyscf-0.8.2/gpu4pyscf.egg-info → gpu4pyscf-1.0}/PKG-INFO +1 -1
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/__init__.py +1 -1
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/drivers/dft_driver.py +14 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0/gpu4pyscf.egg-info}/PKG-INFO +1 -1
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/LICENSE +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/MANIFEST.in +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/README.md +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/__config__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/cc/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/cc/ccsd_incore.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/cderi.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/df.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/df_jk.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/grad/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/grad/rhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/grad/rks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/grad/uhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/grad/uks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/hessian/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/hessian/rhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/hessian/rks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/hessian/uhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/hessian/uks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/df/int3c2e.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/gen_grid.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/gks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/libxc.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/libxc_structs.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/numint.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/radi.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/rks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/roks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/uks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/xc_alias.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/dft/xc_deriv.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/drivers/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/drivers/opt_driver.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/fci/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/fci/direct_spin1.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/grad/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/grad/dispersion.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/grad/rhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/grad/rks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/grad/uhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/grad/uks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/gto/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/gto/mole.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/hessian/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/hessian/dispersion.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/hessian/rhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/hessian/rks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/hessian/uhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/hessian/uks.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/cublas.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/cupy_helper.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/cusolver.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/cutensor.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/diis.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/logger.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/lib/utils.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/mp/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/mp/dfmp2.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/mp/mp2.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/properties/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/properties/ir.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/properties/polarizability.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/properties/shielding.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/qmmm/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/qmmm/chelpg.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/_response_functions.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/cphf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/diis.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/dispersion.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/ghf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/hf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/int4c2e.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/rohf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/ucphf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/scf/uhf.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/_attach_solvent.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/grad/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/grad/pcm.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/grad/smd.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/grad/smd_experiment.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/hessian/__init__.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/hessian/pcm.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/hessian/smd.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/hessian/smd_experiment.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/pcm.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/smd.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf/solvent/smd_experiment.py +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf.egg-info/SOURCES.txt +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf.egg-info/dependency_links.txt +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf.egg-info/requires.txt +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/gpu4pyscf.egg-info/top_level.txt +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/setup.cfg +0 -0
- {gpu4pyscf-0.8.2 → gpu4pyscf-1.0}/setup.py +0 -0
|
@@ -88,6 +88,7 @@ def run_dft(mol_name, config, charge=None, spin=0):
|
|
|
88
88
|
with_solvent = config.get('with_solvent', False)
|
|
89
89
|
with_grad = config.get('with_grad', True)
|
|
90
90
|
with_hess = config.get('with_hess', True)
|
|
91
|
+
save_density = config.get('save_density', False)
|
|
91
92
|
input_dir = config.get('input_dir', './')
|
|
92
93
|
|
|
93
94
|
# I/O
|
|
@@ -168,6 +169,19 @@ def run_dft(mol_name, config, charge=None, spin=0):
|
|
|
168
169
|
if isinstance(dm, cupy.ndarray): dm = dm.get()
|
|
169
170
|
h5f.create_dataset('dm', data=dm)
|
|
170
171
|
|
|
172
|
+
if save_density and xc.lower() != 'hf':
|
|
173
|
+
weights = mf.grids.weights
|
|
174
|
+
coords = mf.grids.coords
|
|
175
|
+
rho = mf._numint.get_rho(mf.mol, dm, mf.grids)
|
|
176
|
+
|
|
177
|
+
if isinstance(weights, cupy.ndarray): weights = weights.get()
|
|
178
|
+
if isinstance(coords, cupy.ndarray): coords = coords.get()
|
|
179
|
+
if isinstance(rho, cupy.ndarray): rho = rho.get()
|
|
180
|
+
|
|
181
|
+
h5f.create_dataset('grids_weights', data=weights)
|
|
182
|
+
h5f.create_dataset('grids_coords', data=coords)
|
|
183
|
+
h5f.create_dataset('grids_rho', data=rho)
|
|
184
|
+
|
|
171
185
|
if dm.ndim == 3:
|
|
172
186
|
# open-shell case
|
|
173
187
|
mo_energy = mf.mo_energy
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|