1 | ### fill regular grid
|
---|
2 |
|
---|
3 | AT_SETUP([Molecules - Fill regular grid])
|
---|
4 | AT_KEYWORDS([molecules filling fill-regular-grid add-empty-boundary])
|
---|
5 |
|
---|
6 | file=tensid.data
|
---|
7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/pre/tensid.data $file], 0)
|
---|
8 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/pre/tensid.potentials .], 0)
|
---|
9 | AT_CHECK([chmod u+w $file], 0)
|
---|
10 | AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --add-empty-boundary "10,10,10" --load water.data --select-molecule-by-order -1 --fill-regular-grid --mesh-size "33,33,33" --mesh-offset "0.5,0.5,0.5" --tesselation-radius 10 --min-distance 3.1], 0, [stdout], [stderr])
|
---|
11 | AT_CHECK([grep "194 out of 194 returned true from predicate" stdout], 0, [ignore], [ignore])
|
---|
12 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/post/tensid.data], 0, [ignore], [ignore])
|
---|
13 |
|
---|
14 | AT_CLEANUP
|
---|
15 |
|
---|
16 |
|
---|
17 | AT_SETUP([Molecules - Fill regular grid with Undo])
|
---|
18 | AT_KEYWORDS([molecules filling fill-regular-grid undo])
|
---|
19 |
|
---|
20 | file=tensid.data
|
---|
21 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/pre/tensid.data $file], 0)
|
---|
22 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/pre/tensid.potentials .], 0)
|
---|
23 | AT_CHECK([chmod u+w $file], 0)
|
---|
24 | AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --add-empty-boundary "10,10,10" --load water.data --select-molecule-by-order -1 --fill-regular-grid --mesh-size "33,33,33" --mesh-offset "0.5,0.5,0.5" --tesselation-radius 10 --min-distance 3.1 --undo], 0, [stdout], [stderr])
|
---|
25 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/pre/$file], 0, [ignore], [ignore])
|
---|
26 |
|
---|
27 | AT_CLEANUP
|
---|
28 |
|
---|
29 |
|
---|
30 | AT_SETUP([Molecules - Fill regular grid with Redo])
|
---|
31 | AT_KEYWORDS([molecules filling fill-regular-grid redo])
|
---|
32 |
|
---|
33 | file=tensid.data
|
---|
34 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/pre/tensid.data $file], 0)
|
---|
35 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/pre/tensid.potentials .], 0)
|
---|
36 | AT_CHECK([chmod u+w $file], 0)
|
---|
37 | AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --add-empty-boundary "10,10,10" --load water.data --select-molecule-by-order -1 --fill-regular-grid --mesh-size "33,33,33" --mesh-offset "0.5,0.5,0.5" --tesselation-radius 10 --min-distance 3.1 --undo --redo], 0, [stdout], [stderr])
|
---|
38 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/RegularGrid/post/tensid.data], 0, [ignore], [ignore])
|
---|
39 |
|
---|
40 | AT_CLEANUP
|
---|