Skip to content

Commit

Permalink
Merge pull request #147 from NLESC-JCER/fix_anthony_mol
Browse files Browse the repository at this point in the history
fix conversion
  • Loading branch information
NicoRenaud authored Aug 29, 2023
2 parents 439a79e + 73bb164 commit 4bd1f54
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/example/single_point/water.xyz
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ water molecule
O 0.000000 0.00000 0.00000
H 0.758602 0.58600 0.00000
H -0.758602 0.58600 0.00000
H -0.758602 0.58600 0.00000

2 changes: 1 addition & 1 deletion qmctorch/scf/calculator/pyscf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def run(self):
mol = gto.M(
atom=atom_str,
basis=self.basis_name,
unit=self.units,
unit='Bohr',
cart=False)

if self.scf.lower() == 'hf':
Expand Down
2 changes: 1 addition & 1 deletion qmctorch/scf/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _get_atomic_properties(self, atoms):

conv2bohr = 1
if self.unit == 'angs':
conv2bohr = 1.88973
conv2bohr = 1.8897259886
self.atom_coords.append(
[x * conv2bohr, y * conv2bohr, z * conv2bohr])

Expand Down

0 comments on commit 4bd1f54

Please sign in to comment.