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

AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Exclude_Hydrogens_annealWithBondGraph ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity PythonUI_with_named_parameters StoppableMakroAction TremoloParser_IncreasedPrecision
Last change on this file since 441d40 was 441d40, checked in by Frederik Heber <frederik.heber@…>, 7 years ago

TESTFIX: bondgraph annealing is working better than expected.

  • Property mode set to 100644
File size: 3.4 KB
Line 
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])
22
23# we use forces from a simple Ising model with 2 "carbon" atoms in a row along the x axis
24
25file=two_carbon_test.data
26AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 15 2 "0"], 0, [stdout], [ignore])
27AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
28AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/two_carbon_test_no-bondgraph.data], 0, [ignore], [ignore])
29
30AT_CLEANUP
31
32AT_SETUP([Python externalization - Force Annealing without bondgraph on 5-body Ising model])
33AT_KEYWORDS([python force-annealing ising])
34AT_XFAIL_IF([/bin/true])
35
36# we use forces from a simple Ising model with 5 "carbon" atoms in a row along the x axis
37
38file=five_carbon_test.data
39AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 20 5 "0"], 0, [stdout], [ignore])
40AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
41AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/five_carbon_test_no-bondgraph.data], 0, [ignore], [ignore])
42
43AT_CLEANUP
44
45AT_SETUP([Python externalization - Force Annealing with bondgraph on 2-body Ising model])
46AT_KEYWORDS([python force-annealing ising bondgraph])
47AT_XFAIL_IF([/bin/true])
48AT_SKIP_IF([../../run ${abs_top_srcdir}/tests/Python/numpy_check.py])
49
50# we use forces from a simple Ising model with 2 "carbon" atoms in a row along the x axis
51
52file=two_carbon_test.data
53AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 3 2 "1"], 0, [stdout], [ignore])
54AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
55AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/two_carbon_test_bondgraph.data], 0, [ignore], [ignore])
56
57AT_CLEANUP
58
59AT_SETUP([Python externalization - Force Annealing with bondgraph on 5-body Ising model])
60AT_KEYWORDS([python force-annealing ising bondgraph])
61AT_XFAIL_IF([/bin/true])
62AT_SKIP_IF([../../run ${abs_top_srcdir}/tests/Python/numpy_check.py])
63
64# we use forces from a simple Ising model with 5 "carbon" atoms in a row along the x axis
65
66file=five_carbon_test.data
67AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 15 5 "1"], 0, [stdout], [ignore])
68AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
69AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/five_carbon_test_bondgraph.data], 0, [ignore], [ignore])
70
71AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.