Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parser-gaussian
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nomad-lab
parser-gaussian
Commits
891a92d6
Commit
891a92d6
authored
Jul 19, 2016
by
Rosendo Valero Montero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gaussian parser with ground and excited state energies
parent
8fcd1fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
parser/parser-gaussian/parser_gaussian.py
parser/parser-gaussian/parser_gaussian.py
+0
-23
No files found.
parser/parser-gaussian/parser_gaussian.py
View file @
891a92d6
...
@@ -125,11 +125,7 @@ mainFileDescription = SM(
...
@@ -125,11 +125,7 @@ mainFileDescription = SM(
startReStr
=
r"\s*E2 =\s*"
,
startReStr
=
r"\s*E2 =\s*"
,
forwardMatch
=
True
,
forwardMatch
=
True
,
subMatchers
=
[
subMatchers
=
[
<<<<<<<
HEAD
SM
(
r"\s*E2 =\s*(?P<x_gaussian_mp2_correction_energy__hartree>[-+0-9EeDd.]+)\s*EUMP2 =\s*(?P<x_gaussian_mp2_energy__hartree>[-+0-9EeDd.]+)"
),
SM
(
r"\s*E2 =\s*(?P<x_gaussian_mp2_correction_energy__hartree>[-+0-9EeDd.]+)\s*EUMP2 =\s*(?P<x_gaussian_mp2_energy__hartree>[-+0-9EeDd.]+)"
),
=======
SM
(
r"\s*E2 =\s*(?P<x_gaussian_mp2_correction_energy__hartree>[-+0-9EeDd.]+)\s*EUMP2 =\s*(?P<x_gaussian_mp2_energy__hartree>[-+0-9EeDd.]+)"
),
>>>>>>>
Gaussian
parser
with
ground
and
excited
state
energies
SM
(
r"\s*E3=\s*(?P<x_gaussian_mp3_correction_energy__hartree>[-+0-9EeDd.]+)\s*EUMP3=\s*(?P<x_gaussian_mp3_energy__hartree>[-+0-9EeDd.]+)\s*"
),
SM
(
r"\s*E3=\s*(?P<x_gaussian_mp3_correction_energy__hartree>[-+0-9EeDd.]+)\s*EUMP3=\s*(?P<x_gaussian_mp3_energy__hartree>[-+0-9EeDd.]+)\s*"
),
SM
(
r"\s*E4\(DQ\)=\s*(?P<x_gaussian_mp4dq_correction_energy__hartree>[-+0-9EeDd.]+)\s*UMP4\(DQ\)=\s*(?P<x_gaussian_mp4dq_energy__hartree>[-+0-9EeDd.]+)\s*"
),
SM
(
r"\s*E4\(DQ\)=\s*(?P<x_gaussian_mp4dq_correction_energy__hartree>[-+0-9EeDd.]+)\s*UMP4\(DQ\)=\s*(?P<x_gaussian_mp4dq_energy__hartree>[-+0-9EeDd.]+)\s*"
),
SM
(
r"\s*E4\(SDQ\)=\s*(?P<x_gaussian_mp4sdq_correction_energy__hartree>[-+0-9EeDd.]+)\s*UMP4\(SDQ\)=\s*(?P<x_gaussian_mp4sdq_energy__hartree>[-+0-9EeDd.]+)"
),
SM
(
r"\s*E4\(SDQ\)=\s*(?P<x_gaussian_mp4sdq_correction_energy__hartree>[-+0-9EeDd.]+)\s*UMP4\(SDQ\)=\s*(?P<x_gaussian_mp4sdq_energy__hartree>[-+0-9EeDd.]+)"
),
...
@@ -495,16 +491,9 @@ class GaussianParserContext(object):
...
@@ -495,16 +491,9 @@ class GaussianParserContext(object):
Check for convergence of geometry optimization.
Check for convergence of geometry optimization.
"""
"""
# write SCF convergence and reset
# write SCF convergence and reset
<<<<<<<
HEAD
<<<<<<<
HEAD
backend
.
addValue
(
'x_gaussian_single_configuration_calculation_converged'
,
self
.
scfConvergence
)
backend
.
addValue
(
'x_gaussian_single_configuration_calculation_converged'
,
self
.
scfConvergence
)
backend
.
addValue
(
'energy_total'
,
self
.
scfenergyconverged
[
-
1
])
backend
.
addValue
(
'energy_total'
,
self
.
scfenergyconverged
[
-
1
])
=======
backend
.
addValue
(
'single_configuration_calculation_converged'
,
self
.
scfConvergence
)
backend
.
addValue
(
'single_configuration_calculation_converged'
,
self
.
scfConvergence
)
>>>>>>>
Gaussian
parser
with
ground
and
excited
state
energies
=======
backend
.
addValue
(
'single_configuration_calculation_converged'
,
self
.
scfConvergence
)
>>>>>>>
Gaussian
parser
with
ground
and
excited
state
energies
self
.
scfConvergence
=
False
self
.
scfConvergence
=
False
# start with -1 since zeroth iteration is the initialization
# start with -1 since zeroth iteration is the initialization
self
.
scfIterNr
=
-
1
self
.
scfIterNr
=
-
1
...
@@ -1083,11 +1072,7 @@ class GaussianParserContext(object):
...
@@ -1083,11 +1072,7 @@ class GaussianParserContext(object):
methodreal
=
method2
methodreal
=
method2
else
:
else
:
for
n
in
range
(
2
,
9
):
for
n
in
range
(
2
,
9
):
<<<<<<<
HEAD
if
method2
[
0
:
n
]
in
methodDict
.
keys
():
if
method2
[
0
:
n
]
in
methodDict
.
keys
():
=======
if
method2
[
0
:
n
]
in
methodDict
.
keys
():
>>>>>>>
Gaussian
parser
with
ground
and
excited
state
energies
if
method2
[
0
:
n
]
in
xcDict
.
keys
():
if
method2
[
0
:
n
]
in
xcDict
.
keys
():
method
=
'DFT'
method
=
'DFT'
methodWrite
=
True
methodWrite
=
True
...
@@ -1098,11 +1083,7 @@ class GaussianParserContext(object):
...
@@ -1098,11 +1083,7 @@ class GaussianParserContext(object):
if
method2
[
0
:
9
]
==
'CBSEXTRAP'
:
if
method2
[
0
:
9
]
==
'CBSEXTRAP'
:
method
=
method2
[
0
:
9
]
method
=
method2
[
0
:
9
]
methodWrite
=
True
methodWrite
=
True
<<<<<<<
HEAD
methodreal
=
method2
methodreal
=
method2
=======
methodreal
=
method2
>>>>>>>
Gaussian
parser
with
ground
and
excited
state
energies
rest
=
settings
.
split
(
'/'
)[
1
].
replace
(
"'"
,
""
).
replace
(
"]"
,
""
)
rest
=
settings
.
split
(
'/'
)[
1
].
replace
(
"'"
,
""
).
replace
(
"]"
,
""
)
rest
=
rest
.
upper
()
rest
=
rest
.
upper
()
for
x
in
rest
.
split
():
for
x
in
rest
.
split
():
...
@@ -1151,11 +1132,7 @@ class GaussianParserContext(object):
...
@@ -1151,11 +1132,7 @@ class GaussianParserContext(object):
basissetWrite
=
True
basissetWrite
=
True
basissetreal
=
'6-31'
+
method2
[
4
:]
basissetreal
=
'6-31'
+
method2
[
4
:]
slashes
=
settings
.
count
(
'/'
)
slashes
=
settings
.
count
(
'/'
)
<<<<<<<
HEAD
if
slashes
>
1
:
if
slashes
>
1
:
=======
if
slashes
>
1
:
>>>>>>>
Gaussian
parser
with
ground
and
excited
state
energies
rest2
=
settings
.
split
()[
1
]
rest2
=
settings
.
split
()[
1
]
rest2
=
rest2
.
upper
()
rest2
=
rest2
.
upper
()
for
z
in
rest2
.
split
(
'/'
):
for
z
in
rest2
.
split
(
'/'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment