Fix sign of forces in AO mode, update h2o examples

This commit is contained in:
jboschen
2020-01-31 00:42:00 -06:00
parent b9d68f93af
commit bc3807aa4b
18 changed files with 899 additions and 3988 deletions

View File

@ -117,7 +117,7 @@ def nwchem_input_write_ao(input,coords):
if (not re.match("#",line)) and re.search("geometry",line):
geometry_block = True
line = "geometry units angstrom noautosym\n"
line = "geometry units angstrom noautosym nocenter\n"
print(line,file=new_input,end='')
@ -154,7 +154,7 @@ def nwchem_read_ao(natoms, log):
hartree2eV = 27.21138602
bohr2angstrom = 0.52917721092
eout = eout * hartree2eV
fout = [i * hartree2eV/bohr2angstrom for i in fout]
fout = [i * -hartree2eV/bohr2angstrom for i in fout]
return eout,fout