mirror of
https://gitlab.com/scemama/resultsFile.git
synced 2024-12-22 04:13:41 +01:00
Improve basis set detection in G16
This commit is contained in:
parent
6ddb0d49ea
commit
c1a7f210a5
@ -385,8 +385,7 @@ class gaussianFile(resultsFile.resultsFileX):
|
||||
pass
|
||||
pos += 1
|
||||
basis_read = []
|
||||
full_line = self.text[pos]
|
||||
line = full_line.split()
|
||||
line = self.text[pos].split()
|
||||
iatom=0
|
||||
atom = line[1]
|
||||
while pos < end:
|
||||
@ -399,8 +398,7 @@ class gaussianFile(resultsFile.resultsFileX):
|
||||
atom = line[1]
|
||||
bf = []
|
||||
pos+=1
|
||||
full_line = self.text[pos]
|
||||
line = full_line.split()
|
||||
line = self.text[pos].split()
|
||||
for k in range(nfunc):
|
||||
expo = float(line[0].replace('D','E'))
|
||||
coef = float(line[1].replace('D','E'))
|
||||
@ -410,11 +408,12 @@ class gaussianFile(resultsFile.resultsFileX):
|
||||
else:
|
||||
bf.append( [expo,coef] )
|
||||
pos += 1
|
||||
full_line = self.text[pos]
|
||||
line = full_line.split()
|
||||
line = self.text[pos].split()
|
||||
if len(bf) > 0:
|
||||
basis_read.append( [index,sym,bf,iatom] )
|
||||
if "basis functions" in full_line or "=" in full_line:
|
||||
if line[0].startswith('==============='):
|
||||
pos = end
|
||||
if "functions" in line:
|
||||
pos = end
|
||||
else:
|
||||
print("GFPRINT should be present in the gaussian keywords.")
|
||||
|
Loading…
Reference in New Issue
Block a user