Skip to content
Snippets Groups Projects
Commit 35bd15b1 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Added new unit test to measure the speed of the various gravity

interaction routines.
parent 59bfd1b5
Branches
Tags
1 merge request!1077Improved multipole acceptance criterion (MAC)
......@@ -154,6 +154,7 @@ tests/testDump
tests/testLogger
tests/benchmarkInteractions
tests/testGravityDerivatives
tests/testGravitySpeed
tests/testPotentialSelf
tests/testPotentialPair
tests/testEOS
......
......@@ -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 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment