Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
e23dc2dd
Commit
e23dc2dd
authored
7 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Added perturbed version of testPeriodicBC.sh to the test suite.
parent
454792c5
No related branches found
No related tags found
1 merge request
!350
Test periodic bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
configure.ac
+1
-0
1 addition, 0 deletions
configure.ac
tests/Makefile.am
+5
-4
5 additions, 4 deletions
tests/Makefile.am
tests/testPeriodicBCPerturbed.sh.in
+30
-0
30 additions, 0 deletions
tests/testPeriodicBCPerturbed.sh.in
with
40 additions
and
4 deletions
.gitignore
+
4
−
0
View file @
e23dc2dd
...
...
@@ -37,6 +37,8 @@ examples/*/gravity_checks_*.dat
tests/testPair
tests/brute_force_periodic_BC_standard.dat
tests/swift_periodic_BC_standard.dat
tests/brute_force_periodic_BC_pertrubed.dat
tests/swift_periodic_BC_perturbed.dat
tests/brute_force_standard.dat
tests/swift_dopair_standard.dat
tests/brute_force_perturbed.dat
...
...
@@ -67,6 +69,8 @@ tests/testMaths
tests/testThreadpool
tests/testParser
tests/parser_output.yml
tests/testPeriodicBC.sh
tests/testPeriodicBCPerturbed.sh
tests/test27cells.sh
tests/test27cellsPerturbed.sh
tests/test125cells.sh
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
0
View file @
e23dc2dd
...
...
@@ -855,6 +855,7 @@ AC_CONFIG_FILES([tests/test27cellsPerturbed.sh], [chmod +x tests/test27cellsPert
AC_CONFIG_FILES([tests/test125cells.sh], [chmod +x tests/test125cells.sh])
AC_CONFIG_FILES([tests/test125cellsPerturbed.sh], [chmod +x tests/test125cellsPerturbed.sh])
AC_CONFIG_FILES([tests/testPeriodicBC.sh], [chmod +x tests/testPeriodicBC.sh])
AC_CONFIG_FILES([tests/testPeriodicBCPerturbed.sh], [chmod +x tests/testPeriodicBCPerturbed.sh])
AC_CONFIG_FILES([tests/testParser.sh], [chmod +x tests/testParser.sh])
# Save the compilation options
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile.am
+
5
−
4
View file @
e23dc2dd
...
...
@@ -25,7 +25,8 @@ TESTS = testGreetings testMaths testReading.sh testSingle testKernel testSymmetr
testParser.sh testSPHStep test125cells.sh test125cellsPerturbed.sh testFFT
\
testAdiabaticIndex testRiemannExact testRiemannTRRS testRiemannHLLC
\
testMatrixInversion testThreadpool testDump testLogger
\
testVoronoi1D testVoronoi2D testVoronoi3D testPeriodicBC.sh
testVoronoi1D testVoronoi2D testVoronoi3D testPeriodicBC.sh
\
testPeriodicBCPerturbed.sh
# List of test programs to compile
check_PROGRAMS
=
testGreetings testReading testSingle testTimeIntegration
\
...
...
@@ -94,8 +95,8 @@ testLogger_SOURCES = testLogger.c
# Files necessary for distribution
EXTRA_DIST
=
testReading.sh makeInput.py testPair.sh testPairPerturbed.sh
\
test27cells.sh test27cellsPerturbed.sh testParser.sh testPeriodicBC.sh
\
test125cells.sh test125cellsPerturbed.sh testParserInput.yaml
difffloat.py
\
tolerance_125_normal.dat tolerance_125_perturbed.dat
\
testPeriodicBCPerturbed.sh
test125cells.sh test125cellsPerturbed.sh testParserInput.yaml
\
difffloat.py
tolerance_125_normal.dat tolerance_125_perturbed.dat
\
tolerance_27_normal.dat tolerance_27_perturbed.dat
\
tolerance_pair_normal.dat tolerance_pair_perturbed.dat
\
fft_params.yml
fft_params.yml
tolerance_periodic_BC_normal.dat tolerance_periodic_BC_perturbed.dat
This diff is collapsed.
Click to expand it.
tests/testPeriodicBCPerturbed.sh.in
0 → 100755
+
30
−
0
View file @
e23dc2dd
#!/bin/bash
for
v
in
{
0..3
}
do
echo
""
rm
-f
brute_force_periodic_BC_perturbed.dat swift_periodic_BC_perturbed.dat
echo
"Running ./testPeriodicBC -n 6 -r 1 -d 0.1 -f perturbed -v
$v
"
./testPeriodicBC
-n
6
-r
1
-d
0.1
-f
perturbed
-v
$v
if
[
-e
brute_force_periodic_BC_perturbed.dat
]
then
if
python @srcdir@/difffloat.py brute_force_periodic_BC_perturbed.dat swift_periodic_BC_perturbed.dat @srcdir@/tolerance_periodic_BC_perturbed.dat 6
then
echo
"Accuracy test passed"
else
echo
"Accuracy test failed"
exit
1
fi
else
echo
"Error Missing test output file"
exit
1
fi
echo
"------------"
done
exit
$?
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment