mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-08-25 05:31:48 +02:00
Fix ao_prim_num_max
This commit is contained in:
parent
4c69fa2010
commit
ef2a4bfa2f
@ -142,6 +142,9 @@ def write_ezfio(res, filename):
|
|||||||
# W r i t e #
|
# W r i t e #
|
||||||
# ~#~#~#~#~ #
|
# ~#~#~#~#~ #
|
||||||
|
|
||||||
|
prim_num_max = max(num_prim)
|
||||||
|
ezfio.set_ao_basis_ao_prim_num_max(prim_num_max)
|
||||||
|
|
||||||
ezfio.set_ao_basis_ao_num(len(res.basis))
|
ezfio.set_ao_basis_ao_num(len(res.basis))
|
||||||
ezfio.set_ao_basis_ao_nucl(at)
|
ezfio.set_ao_basis_ao_nucl(at)
|
||||||
ezfio.set_ao_basis_ao_prim_num(num_prim)
|
ezfio.set_ao_basis_ao_prim_num(num_prim)
|
||||||
@ -162,11 +165,9 @@ def write_ezfio(res, filename):
|
|||||||
# P a r s i n g #
|
# P a r s i n g #
|
||||||
# ~#~#~#~#~#~#~ #
|
# ~#~#~#~#~#~#~ #
|
||||||
|
|
||||||
prim_num_max = ezfio.get_ao_basis_ao_prim_num_max()
|
|
||||||
|
|
||||||
for i in range(len(res.basis)):
|
for i in range(len(res.basis)):
|
||||||
coefficient[
|
coefficient[i] += [0. for j in range(len(coefficient[i]), prim_num_max)]
|
||||||
i] += [0. for j in range(len(coefficient[i]), prim_num_max)]
|
|
||||||
exponent[i] += [0. for j in range(len(exponent[i]), prim_num_max)]
|
exponent[i] += [0. for j in range(len(exponent[i]), prim_num_max)]
|
||||||
|
|
||||||
coefficient = reduce(lambda x, y: x + y, coefficient, [])
|
coefficient = reduce(lambda x, y: x + y, coefficient, [])
|
||||||
|
Loading…
Reference in New Issue
Block a user