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
35bd15b1
Commit
35bd15b1
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Added new unit test to measure the speed of the various gravity
interaction routines.
parent
59bfd1b5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1077
Improved multipole acceptance criterion (MAC)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
tests/Makefile.am
+4
-2
4 additions, 2 deletions
tests/Makefile.am
tests/testGravitySpeed.c
+35
-0
35 additions, 0 deletions
tests/testGravitySpeed.c
with
40 additions
and
2 deletions
.gitignore
+
1
−
0
View file @
35bd15b1
...
...
@@ -154,6 +154,7 @@ tests/testDump
tests/testLogger
tests/benchmarkInteractions
tests/testGravityDerivatives
tests/testGravitySpeed
tests/testPotentialSelf
tests/testPotentialPair
tests/testEOS
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile.am
+
4
−
2
View file @
35bd15b1
...
...
@@ -30,7 +30,7 @@ TESTS = testGreetings testMaths testReading.sh testKernel \
testPotentialPair testEOS testUtilities testSelectOutput.sh
\
testCbrt testCosmology testOutputList testFormat.sh
\
test27cellsStars.sh test27cellsStarsPerturbed.sh testHydroMPIrules
\
testAtomic
testAtomic
testGravitySpeed
# List of test programs to compile
check_PROGRAMS
=
testGreetings testReading testTimeIntegration
\
...
...
@@ -43,7 +43,7 @@ check_PROGRAMS = testGreetings testReading testTimeIntegration \
testGravityDerivatives testPotentialSelf testPotentialPair testEOS testUtilities
\
testSelectOutput testCbrt testCosmology testOutputList test27cellsStars
\
test27cellsStars_subset testCooling testComovingCooling testFeedback testHashmap
\
testAtomic testHydroMPIrules
testAtomic testHydroMPIrules
testGravitySpeed
# Rebuild tests when SWIFT is updated.
$(check_PROGRAMS)
:
../src/.libs/libswiftsim.a
...
...
@@ -124,6 +124,8 @@ testLogger_SOURCES = testLogger.c
testGravityDerivatives_SOURCES
=
testGravityDerivatives.c
testGravitySpeed_SOURCES
=
testGravitySpeed.c
testPotentialSelf_SOURCES
=
testPotentialSelf.c
testPotentialPair_SOURCES
=
testPotentialPair.c
...
...
This diff is collapsed.
Click to expand it.
tests/testGravitySpeed.c
0 → 100644
+
35
−
0
View file @
35bd15b1
/*******************************************************************************
* This file is part of SWIFT.
* Copyright (C) 2020 Matthieu Schaller (schaller@strw.leidenuniv.nl).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#include
"../config.h"
/* Some standard headers. */
#include
<fenv.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
<unistd.h>
/* Local headers. */
#include
"swift.h"
int
main
(
int
argc
,
char
*
argv
[])
{
return
0
;
}
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