source: tests/Fragmentations/Joining/heptan/testsuite-joining-heptan.at@ 88bb6b

Last change on this file since 88bb6b was 6253ed, checked in by Frederik Heber <heber@…>, 14 years ago

FIX: Added license disclaimer to every testfile .at of the testsuite as well.

  • so far, there was no disclaimer on the copyright of the code.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1#
2# MoleCuilder - creates and alters molecular systems
3# Copyright (C) 2008-2012 University of Bonn
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#
19# MoleCuilder - creates and alters molecular systems
20# Copyright (C) 2008-2012 University of Bonn
21#
22# This program is free software: you can redistribute it and/or modify
23# it under the terms of the GNU General Public License as published by
24# the Free Software Foundation, either version 3 of the License, or
25# (at your option) any later version.
26#
27# This program is distributed in the hope that it will be useful,
28# but WITHOUT ANY WARRANTY; without even the implied warranty of
29# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30# GNU General Public License for more details.
31#
32# You should have received a copy of the GNU General Public License
33# along with this program. If not, see <http://www.gnu.org/licenses/>.
34#
35### heptan
36
37AT_SETUP([Joining - heptan])
38AT_KEYWORDS([fragmentation joining])
39
40MOL=heptan
41NoFragments=22
42MaxOrder=4
43digits=2
44
45# copy initial files
46AT_CHECK([/bin/cp -rf ${abs_top_srcdir}/tests/Fragmentations/Joining/${MOL}/pre/* .], 0)
47AT_CHECK([chmod u+w BondFragment??], 0)
48
49# join fragments
50AT_CHECK([joiner ./ pcp], 0, [stdout], [stderr])
51# check energy and forces in each fragment
52i=0;
53while [ $i -lt $NoFragments] ; do
54 path=BondFragment`printf %0${digits}d $i`
55 for file in energyfragment.all forcefragment.all; do
56 AT_CHECK([diff $path/pcp.$file ${abs_top_srcdir}/tests/Fragmentations/Joining/${MOL}/post/$path/pcp.$file], 0, [ignore], [ignore])
57 done
58 let i=$i+1
59done
60
61# check summed energy and forces
62for file in energyfragment.all forcefragment.all; do
63 AT_CHECK([diff pcp.$file ${abs_top_srcdir}/tests/Fragmentations/Joining/${MOL}/post/pcp.$file], 0, [ignore], [ignore])
64done
65
66# check energy and forces per order
67i=1
68while [ $i -le $MaxOrder ]; do
69 for file in energy.all forces.all; do
70 filename=pcp.Order${i}.$file
71 AT_CHECK([diff $filename ${abs_top_srcdir}/tests/Fragmentations/Joining/${MOL}/post/$filename], 0, [ignore], [ignore])
72 done
73 let i=$i+1
74done
75
76AT_CLEANUP
77
Note: See TracBrowser for help on using the repository browser.