Skip to content

Commit

Permalink
fix openqp nac checking
Browse files Browse the repository at this point in the history
  • Loading branch information
lijingbai2009 committed Nov 20, 2024
1 parent 1baeb43 commit f6ad893
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 534 deletions.
76 changes: 0 additions & 76 deletions PyRAI2MD/Keywords/key_oqp.py

This file was deleted.

4 changes: 3 additions & 1 deletion PyRAI2MD/Quantum_Chemistry/qc_openqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def _read_data_io(self, natom):
energy = []
gradient = []

if self.method == 'hf':
if self.method == 'hf':
if os.path.exists('%s/energies' % self.workdir):
energy = np.loadtxt('%s/energies' % self.workdir).reshape(-1)[0:1] # pick the first

Expand Down Expand Up @@ -341,6 +341,7 @@ def _read_data_io(self, natom):
nac = np.array(nac)

elif self.nactype == 'dcm':
self.nnac = self.nstate
nac = np.zeros((self.nstate, self.nstate))
if os.path.exists('%s/dcme' % self.workdir):
dcm = np.loadtxt('%s/dcme' % self.workdir)
Expand Down Expand Up @@ -369,6 +370,7 @@ def _read_data_mem(self, natom):
nacv = np.array(results['nac'])

if self.nactype == 'dcm':
self.nnac = self.nstate
nacm = np.zeros((self.nstate, self.nstate))
for pair in self.nac_coupling:
pa, pb = pair
Expand Down
Loading

0 comments on commit f6ad893

Please sign in to comment.