Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
2a90300d
Commit
2a90300d
authored
Aug 18, 2017
by
James Willis
Browse files
Test interaction calculations using 1 and 2 vectors.
parent
a0a0e04b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testInteractions.sh.in
View file @
2a90300d
...
...
@@ -2,7 +2,7 @@
echo
""
rm
-f
test_nonsym_density_serial.dat test_nonsym_density_vec.dat
rm
-f
test_nonsym_density_serial.dat test_nonsym_density_vec.dat
test_nonsym_force_serial.dat test_nonsym_force_vec.dat
echo
"Running ./testInteractions"
...
...
@@ -13,15 +13,42 @@ if [ $? != 0 ]; then
else
if
[
-e
test_nonsym_density_serial.dat
]
then
if
python @srcdir@/difffloat.py test_nonsym_density_serial.dat test_nonsym_density_vec.dat @srcdir@/tolerance_testInteractions.dat
if
python @srcdir@/difffloat.py test_nonsym_density_serial.dat test_nonsym_density_
1_
vec.dat @srcdir@/tolerance_testInteractions.dat
then
echo
"
A
ccuracy test passed"
echo
"
Calculating density using 1 vector a
ccuracy test passed"
else
echo
"Accuracy test failed"
echo
"Calculating density using 1 vector accuracy test failed"
exit
1
fi
if
python @srcdir@/difffloat.py test_nonsym_density_serial.dat test_nonsym_density_2_vec.dat @srcdir@/tolerance_testInteractions.dat
then
echo
"Calculating density using 2 vectors accuracy test passed"
else
echo
"Calculating density using 2 vectors accuracy test failed"
exit
1
fi
else
echo
"Error Missing density test output file"
exit
1
fi
if
[
-e
test_nonsym_force_serial.dat
]
then
if
python @srcdir@/difffloat.py test_nonsym_force_serial.dat test_nonsym_force_1_vec.dat @srcdir@/tolerance_testInteractions.dat
then
echo
"Calculating force using 1 vector accuracy test passed"
else
echo
"Calculating force using 1 vector accuracy test failed"
exit
1
fi
if
python @srcdir@/difffloat.py test_nonsym_force_serial.dat test_nonsym_force_2_vec.dat @srcdir@/tolerance_testInteractions.dat
then
echo
"Calculating force using 2 vectors accuracy test passed"
else
echo
"Calculating force using 2 vectors accuracy test failed"
exit
1
fi
else
echo
"Error Missing test output file"
echo
"Error Missing
force
test output file"
exit
1
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment