| 1 | ### Subgraph dissection with specific boundary conditions
|
|---|
| 2 |
|
|---|
| 3 | AT_SETUP([Graph - subgraph dissection with Wrap BC])
|
|---|
| 4 | AT_KEYWORDS([graph subgraph-dissection set-boundary-conditions])
|
|---|
| 5 | AT_XFAIL_IF([/bin/true])
|
|---|
| 6 |
|
|---|
| 7 | file=water.xyz
|
|---|
| 8 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 9 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 10 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Wrap, Wrap, Wrap" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 11 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 12 | file=water-bounced.xyz
|
|---|
| 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 14 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 15 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Wrap, Wrap, Wrap" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 16 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 17 | file=water-wrapped.xyz
|
|---|
| 18 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 19 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 20 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Wrap, Wrap, Wrap" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 21 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 22 |
|
|---|
| 23 | AT_CLEANUP
|
|---|
| 24 |
|
|---|
| 25 | AT_SETUP([Graph - subgraph dissection with Bounce BC])
|
|---|
| 26 | AT_KEYWORDS([graph subgraph-dissection set-boundary-conditions])
|
|---|
| 27 | AT_XFAIL_IF([/bin/false])
|
|---|
| 28 |
|
|---|
| 29 | file=water.xyz
|
|---|
| 30 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 31 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 32 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Bounce, Bounce, Bounce" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 33 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 34 | file=water-bounced.xyz
|
|---|
| 35 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 36 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 37 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Bounce, Bounce, Bounce" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 38 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 39 | file=water-wrapped.xyz
|
|---|
| 40 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 41 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 42 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Bounce, Bounce, Bounce" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 43 | AT_CHECK([fgrep "I scanned 2 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 44 |
|
|---|
| 45 | AT_CLEANUP
|
|---|
| 46 |
|
|---|
| 47 | AT_SETUP([Graph - subgraph dissection with Ignore BC])
|
|---|
| 48 | AT_KEYWORDS([graph subgraph-dissection set-boundary-conditions])
|
|---|
| 49 |
|
|---|
| 50 | file=water.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])
|
|---|
| 53 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Ignore, Ignore, Ignore" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 54 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 55 | file=water-bounced.xyz
|
|---|
| 56 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 57 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 58 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Ignore, Ignore, Ignore" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 59 | AT_CHECK([fgrep "I scanned 1 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 60 | file=water-wrapped.xyz
|
|---|
| 61 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Graph/SubgraphDissection-BoundaryConditions/pre/$file $file], 0)
|
|---|
| 62 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
|---|
| 63 | AT_CHECK([../../molecuilder -i $file -B "5,0,5,0,0,5" --set-boundary-conditions "Ignore, Ignore, Ignore" -v 3 -I], 0, [stdout], [stderr])
|
|---|
| 64 | AT_CHECK([fgrep "I scanned 2 molecules." stdout], 0, [ignore], [ignore])
|
|---|
| 65 |
|
|---|
| 66 | AT_CLEANUP
|
|---|
| 67 |
|
|---|