Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-nwchem
Commits
868d449a
Commit
868d449a
authored
Sep 06, 2016
by
Lauri Himanen
Browse files
Changed test case, now number_of_scf_iterations is emitted in the correct place.
parent
4bdfe7ae
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
parser/parser-nwchem/nwchemparser/versions/nwchem66/mainparser.py
View file @
868d449a
...
@@ -247,10 +247,6 @@ class NWChemMainParser(MainHierarchicalParser):
...
@@ -247,10 +247,6 @@ class NWChemMainParser(MainHierarchicalParser):
def
onClose_x_nwchem_section_dft
(
self
,
backend
,
gIndex
,
section
):
def
onClose_x_nwchem_section_dft
(
self
,
backend
,
gIndex
,
section
):
backend
.
addValue
(
"electronic_structure_method"
,
"DFT"
)
backend
.
addValue
(
"electronic_structure_method"
,
"DFT"
)
def
onClose_x_nwchem_section_dft_scf
(
self
,
backend
,
gIndex
,
section
):
backend
.
addValue
(
"number_of_scf_iterations"
,
self
.
n_scf_iterations
)
self
.
n_scf_iterations
=
0
def
onClose_x_nwchem_section_geo_opt_task
(
self
,
backend
,
gIndex
,
section
):
def
onClose_x_nwchem_section_geo_opt_task
(
self
,
backend
,
gIndex
,
section
):
steps
=
section
[
"x_nwchem_section_geo_opt_step"
]
steps
=
section
[
"x_nwchem_section_geo_opt_step"
]
if
steps
:
if
steps
:
...
@@ -358,6 +354,8 @@ class NWChemMainParser(MainHierarchicalParser):
...
@@ -358,6 +354,8 @@ class NWChemMainParser(MainHierarchicalParser):
section
.
add_latest_value
(
"x_nwchem_dft_total_charge"
,
"total_charge"
)
section
.
add_latest_value
(
"x_nwchem_dft_total_charge"
,
"total_charge"
)
section
.
add_latest_value
(
"x_nwchem_dft_max_iteration"
,
"scf_max_iteration"
)
section
.
add_latest_value
(
"x_nwchem_dft_max_iteration"
,
"scf_max_iteration"
)
section
.
add_latest_value
(
"x_nwchem_dft_scf_threshold_energy_change"
,
"scf_threshold_energy_change"
)
section
.
add_latest_value
(
"x_nwchem_dft_scf_threshold_energy_change"
,
"scf_threshold_energy_change"
)
backend
.
addValue
(
"number_of_scf_iterations"
,
self
.
n_scf_iterations
)
self
.
n_scf_iterations
=
0
return
wrapper
return
wrapper
def
save_scf_data
(
self
):
def
save_scf_data
(
self
):
...
...
test/examples/single_point/input.db
View file @
868d449a
No preview for this file type
test/examples/single_point/input.movecs
View file @
868d449a
No preview for this file type
test/examples/single_point/input.nw
View file @
868d449a
...
@@ -15,4 +15,4 @@ dft
...
@@ -15,4 +15,4 @@ dft
xc xtpss03 ctpss03
xc xtpss03 ctpss03
decomp
decomp
end
end
task dft
energy
task dft
gradient
test/examples/single_point/output.out
View file @
868d449a
This diff is collapsed.
Click to expand it.
test/unittests/nwchem_6.6/run_tests.py
View file @
868d449a
...
@@ -1053,9 +1053,9 @@ class TestDFTGeoOpt(unittest.TestCase):
...
@@ -1053,9 +1053,9 @@ class TestDFTGeoOpt(unittest.TestCase):
#===============================================================================
#===============================================================================
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
suites
=
[]
suites
=
[]
suites
.
append
(
unittest
.
TestLoader
().
loadTestsFromTestCase
(
TestDFTEnergy
))
#
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestDFTEnergy))
suites
.
append
(
unittest
.
TestLoader
().
loadTestsFromTestCase
(
TestDFTForce
))
suites
.
append
(
unittest
.
TestLoader
().
loadTestsFromTestCase
(
TestDFTForce
))
suites
.
append
(
unittest
.
TestLoader
().
loadTestsFromTestCase
(
TestDFTGeoOpt
))
#
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestDFTGeoOpt))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestGeoOpt))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestGeoOpt))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestInputParser))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestInputParser))
...
...
Write
Preview
Supports
Markdown
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