source: tests/Python/ForceAnnealing/testsuite-python-forceannealing-ising.at@ fba720

Candidate_v1.6.1 Candidate_v1.7.0 ChemicalSpaceEvaluator TremoloParser_IncreasedPrecision stable
Last change on this file since fba720 was fba720, checked in by Frederik Heber <frederik.heber@…>, 8 years ago

Increased output precision in tremolo's data files to 10 digits.

  • this allows to safely use tremolo as writer for system states without loosing too much accuracy, i.e. w.r.t total energy, unlike others such as PDB.
  • TESTS: Marked many test as XFAIL because of changed tremolo output precision.
  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[075357]1#
2# MoleCuilder - creates and alters molecular systems
3# Copyright (C) 2017 Frederik Heber
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#
18# Force Annealing with Ising model
19
20AT_SETUP([Python externalization - Force Annealing without bondgraph on 2-body Ising model])
21AT_KEYWORDS([python force-annealing ising])
[fba720]22AT_XFAIL_IF([/bin/true])
[075357]23
24# we use forces from a simple Ising model with 2 "carbon" atoms in a row along the x axis
25
26file=two_carbon_test.data
[90ece9]27AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 3 2 "0"], 0, [stdout], [ignore])
[075357]28AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
29AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/two_carbon_test_no-bondgraph.data], 0, [ignore], [ignore])
30
31AT_CLEANUP
32
33AT_SETUP([Python externalization - Force Annealing without bondgraph on 5-body Ising model])
34AT_KEYWORDS([python force-annealing ising])
[fba720]35AT_XFAIL_IF([/bin/true])
[075357]36
37# we use forces from a simple Ising model with 5 "carbon" atoms in a row along the x axis
38
39file=five_carbon_test.data
[90ece9]40AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 15 5 "0"], 0, [stdout], [ignore])
[8450da]41AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
[075357]42AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/five_carbon_test_no-bondgraph.data], 0, [ignore], [ignore])
43
44AT_CLEANUP
45
46AT_SETUP([Python externalization - Force Annealing with bondgraph on 2-body Ising model])
47AT_KEYWORDS([python force-annealing ising bondgraph])
[fba720]48AT_XFAIL_IF([/bin/true])
[075357]49AT_SKIP_IF([../../run ${abs_top_srcdir}/tests/Python/numpy_check.py])
50
51# we use forces from a simple Ising model with 2 "carbon" atoms in a row along the x axis
52
53file=two_carbon_test.data
[441d40]54AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 3 2 "1"], 0, [stdout], [ignore])
[075357]55AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
56AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/two_carbon_test_bondgraph.data], 0, [ignore], [ignore])
57
58AT_CLEANUP
59
60AT_SETUP([Python externalization - Force Annealing with bondgraph on 5-body Ising model])
61AT_KEYWORDS([python force-annealing ising bondgraph])
[fba720]62AT_XFAIL_IF([/bin/true])
[075357]63AT_SKIP_IF([../../run ${abs_top_srcdir}/tests/Python/numpy_check.py])
64
65# we use forces from a simple Ising model with 5 "carbon" atoms in a row along the x axis
66
67file=five_carbon_test.data
[441d40]68AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 15 5 "1"], 0, [stdout], [ignore])
69AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
[075357]70AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/five_carbon_test_bondgraph.data], 0, [ignore], [ignore])
71
72AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.