Ignore:
Timestamp:
Jul 20, 2017, 9:38:38 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
461a7f
Parents:
698308
git-author:
Frederik Heber <frederik.heber@…> (06/27/17 22:39:05)
git-committer:
Frederik Heber <frederik.heber@…> (07/20/17 09:38:38)
Message:

Fixed and extended Python tests on ForceAnnealing with and without bondgraph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Python/ForceAnnealing/testsuite-python-forceannealing-ising.at

    r698308 r12d20c  
    1818# Force Annealing with Ising model
    1919
    20 AT_SETUP([Python externalization - Force Annealing with Ising])
     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])
    2133AT_KEYWORDS([python force-annealing ising])
    2234
     
    2436
    2537file=five_carbon_test.data
    26 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/$file $file], 0)
    27 AT_CHECK([chmod u+w $file], 0)
    28 AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/five_carbon_test.py ./$file ./], 0, [stdout], [ignore])
    29 AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/$file], 0, [ignore], [ignore])
     38AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 20 5 "0"], 0, [stdout], [ignore])
     39AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
     40AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/five_carbon_test_no-bondgraph.data], 0, [ignore], [ignore])
    3041
    3142AT_CLEANUP
     43
     44AT_SETUP([Python externalization - Force Annealing with bondgraph on 2-body Ising model])
     45AT_KEYWORDS([python force-annealing ising bondgraph])
     46
     47# we use forces from a simple Ising model with 2 "carbon" atoms in a row along the x axis
     48
     49file=two_carbon_test.data
     50AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 30 2 "1"], 0, [stdout], [ignore])
     51AT_CHECK([grep "Largest remaining force components.*e-05" stdout], 0, [ignore], [ignore])
     52AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/two_carbon_test_bondgraph.data], 0, [ignore], [ignore])
     53
     54AT_CLEANUP
     55
     56AT_SETUP([Python externalization - Force Annealing with bondgraph on 5-body Ising model])
     57AT_KEYWORDS([python force-annealing ising bondgraph])
     58
     59# we use forces from a simple Ising model with 5 "carbon" atoms in a row along the x axis
     60
     61file=five_carbon_test.data
     62AT_CHECK([../../run ${abs_top_srcdir}/tests/Python/ForceAnnealing/pre/ising_model_chain.py ./$file ./ 20 5 "1"], 0, [stdout], [ignore])
     63AT_CHECK([grep "Largest remaining force components.*0.0001" stdout], 0, [ignore], [ignore])
     64AT_CHECK([diff $file ${abs_top_srcdir}/tests/Python/ForceAnnealing/post/five_carbon_test_bondgraph.data], 0, [ignore], [ignore])
     65
     66AT_CLEANUP
Note: See TracChangeset for help on using the changeset viewer.