| [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 | #
 | 
|---|
| [c52e08] | 35 | ### Subgraph dissection with specific boundary conditions
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 | AT_SETUP([Graph - subgraph dissection with Wrap BC])
 | 
|---|
 | 38 | AT_KEYWORDS([graph subgraph-dissection set-boundary-conditions])
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | file=water.xyz
 | 
|---|
 | 41 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 42 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 43 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Wrap Wrap Wrap -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 44 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 45 | file=water-bounced.xyz
 | 
|---|
 | 46 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 47 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 48 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Wrap Wrap Wrap -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 49 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 50 | file=water-wrapped.xyz
 | 
|---|
 | 51 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 52 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 53 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Wrap Wrap Wrap -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 54 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 55 | 
 | 
|---|
 | 56 | AT_CLEANUP
 | 
|---|
 | 57 | 
 | 
|---|
 | 58 | AT_SETUP([Graph - subgraph dissection with Bounce BC])
 | 
|---|
 | 59 | AT_KEYWORDS([graph subgraph-dissection set-boundary-conditions])
 | 
|---|
 | 60 | 
 | 
|---|
 | 61 | file=water.xyz
 | 
|---|
 | 62 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 63 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 64 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Bounce Bounce Bounce -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 65 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 66 | file=water-bounced.xyz
 | 
|---|
 | 67 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 68 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 69 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Bounce Bounce Bounce -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 70 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 71 | file=water-wrapped.xyz
 | 
|---|
 | 72 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 73 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 74 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Bounce Bounce Bounce -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 75 | AT_CHECK([fgrep "I scanned 2 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 76 | 
 | 
|---|
 | 77 | AT_CLEANUP
 | 
|---|
 | 78 | 
 | 
|---|
 | 79 | AT_SETUP([Graph - subgraph dissection with Ignore BC])
 | 
|---|
 | 80 | AT_KEYWORDS([graph subgraph-dissection set-boundary-conditions])
 | 
|---|
 | 81 | 
 | 
|---|
 | 82 | file=water.xyz
 | 
|---|
 | 83 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 84 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 85 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Ignore Ignore Ignore -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 86 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 87 | file=water-bounced.xyz
 | 
|---|
 | 88 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 89 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 90 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Ignore Ignore Ignore -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 91 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 92 | file=water-wrapped.xyz
 | 
|---|
 | 93 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
 | 
|---|
 | 94 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
 | 
|---|
| [97f9b9] | 95 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions Ignore Ignore Ignore -v 3 -I], 0, [stdout], [stderr])
 | 
|---|
| [c52e08] | 96 | AT_CHECK([fgrep "I scanned 2 molecules." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 97 | 
 | 
|---|
 | 98 | AT_CLEANUP
 | 
|---|
 | 99 | 
 | 
|---|