[6253ed] | 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 | #
|
---|
[878044] | 35 | ### heptan
|
---|
| 36 |
|
---|
| 37 | AT_SETUP([Joining - heptan])
|
---|
| 38 | AT_KEYWORDS([fragmentation joining])
|
---|
| 39 |
|
---|
| 40 | MOL=heptan
|
---|
| 41 | NoFragments=22
|
---|
| 42 | MaxOrder=4
|
---|
| 43 | digits=2
|
---|
| 44 |
|
---|
| 45 | # copy initial files
|
---|
| 46 | AT_CHECK([/bin/cp -rf ${abs_top_srcdir}/tests/Fragmentations/Joining/${MOL}/pre/* .], 0)
|
---|
[f94953] | 47 | AT_CHECK([chmod u+w BondFragment??], 0)
|
---|
[878044] | 48 |
|
---|
| 49 | # join fragments
|
---|
| 50 | AT_CHECK([joiner ./ pcp], 0, [stdout], [stderr])
|
---|
| 51 | # check energy and forces in each fragment
|
---|
| 52 | i=0;
|
---|
| 53 | while [ $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
|
---|
| 59 | done
|
---|
| 60 |
|
---|
| 61 | # check summed energy and forces
|
---|
| 62 | for 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])
|
---|
| 64 | done
|
---|
| 65 |
|
---|
| 66 | # check energy and forces per order
|
---|
| 67 | i=1
|
---|
| 68 | while [ $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
|
---|
| 74 | done
|
---|
| 75 |
|
---|
| 76 | AT_CLEANUP
|
---|
| 77 |
|
---|