You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried following the instructions here but I'm getting an error. Maybe I'm doing something wrong?
Script:
frompyscf.pbcimportgto, scf, dftimportnumpycell=gto.M(
a=numpy.eye(3)*3.5668,
atom='''C 0. 0. 0. C 0.8917 0.8917 0.8917 C 1.7834 1.7834 0. C 2.6751 2.6751 0.8917 C 1.7834 0. 1.7834 C 2.6751 0.8917 2.6751 C 0. 1.7834 1.7834 C 0.8917 2.6751 2.6751''',
basis='gth-szv',
pseudo='gth-pade',
verbose=4,
)
kmesh= [4,4,4]
frompyscf.pbc.scf.rsjkimportRangeSeparatedJKBuilderkpts=cell.make_kpts(kmesh)
mf=cell.KRKS(xc='pbe', kpts=kpts)
mf.rsjk=RangeSeparatedJKBuilder(cell, kpts=kpts)
mf.run()
The resulting error (pyscf 2.11)
******** PBC SCF flags ********
N kpts = 64
Exchange divergence treatment (exxdiv) = ewald
madelung (= occupied orbital energy shift) = 0.1052367084460809
Total energy shift due to Ewald probe charge = -1/2 * Nelec*madelung = -1.68378733514
DF object = <pyscf.pbc.df.fft.FFTDF object at 0x7b069b54d550>
XC functionals = pbe
small_rho_cutoff = 1e-07
Uniform grid, mesh = [65 65 65]
Traceback (most recent call last):
File "/home/chillenb/src/VASPsol/work/cuslab/usersjk.py", line 25, in <module>
mf.run()
~~~~~~^^
File "/home/chillenb/miniforge3/envs/condapyscf/lib/python3.13/site-packages/pyscf/lib/misc.py", line 638, in run
self.kernel(*args)
~~~~~~~~~~~^^^^^^^
File "<string>", line 2, in kernel
File "/home/chillenb/miniforge3/envs/condapyscf/lib/python3.13/site-packages/pyscf/scf/hf.py", line 2009, in scf
self.build(self.mol)
~~~~~~~~~~^^^^^^^^^^
File "/home/chillenb/miniforge3/envs/condapyscf/lib/python3.13/site-packages/pyscf/pbc/dft/rks.py", line 308, in build
if not numpy.all(self.rsjk.kpts == self.kpt):
^^^^^^^^
File "/home/chillenb/miniforge3/envs/condapyscf/lib/python3.13/site-packages/pyscf/pbc/scf/hf.py", line 539, in kpt
return self.with_df.kpts.reshape(3)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^
ValueError: cannot reshape array of size 192 into shape (3,)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I tried following the instructions here but I'm getting an error. Maybe I'm doing something wrong?
Script:
The resulting error (pyscf 2.11)
Beta Was this translation helpful? Give feedback.
All reactions