Swarm-NG
1.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Swarm-NG
Overview
Text Formats
Getting Started with Swarm-NG
Advanced Options for Building Swarm
Configuration Files
Release notes
swarm-query.py command-line interface
Swarm command-line interface
How to Test Swarm
Using Swarm
Examining records from the log file.
Plotting results from a log file
Tutorial on using the Ensemble data structure.
Advanced tutorial for using GPU integrators
Tutorial for implementing an Integrator
Tutorial for making a monitor (stopper/logger)
Tutorial for Making a Propagator
Beginner Python Tutorial
Testing for ejection of planets
Tutorial for generating ensembles
Advanced Python Integration Tutorial
Resume an integration
Extracting statistical information from data files
Beginner tutorial for using the API
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
swarm
py
src
integrators
monitors
plugins
propagators
python
swarm
gpu
bppt.hpp
device_settings.cpp
device_settings.hpp
generic_gpu_bppt_integrator.hpp
gravitation_acc.hpp
gravitation_accjerk.hpp
gravitation_common.hpp
gravitation_gr_acc.hpp
gravitation_largen.hpp
gravitation_mediumn.hpp
helpers.hpp
pair_calculation.hpp
utilities.cu
utilities.hpp
log
peyton
types
bdb_query.cpp
bdb_query.hpp
common.hpp
ensemble_alloc.hpp
integrator.cpp
integrator.hpp
kepler.h
plugin.cpp
plugin.hpp
query.cpp
query.hpp
runtime_error.hpp
snapshot.cpp
snapshot.hpp
stopwatch.h
swarm.cpp
swarm.h
swarmplugin.h
utils.cpp
utils.hpp
tutorials
utils
File Members
pair_calculation.hpp
1
// this file does not have guard since it is used by other headers
2
4
template
<
int
nbod>
5
GENERIC
int
first
(
int
ij ){
6
int
i = nbod - 1 - ij / (nbod/2);
7
int
j = ij % (nbod/2);
8
if
(j < i)
9
return
i;
10
else
11
return
nbod - 1 - i - nbod%2 + 1;
12
}
13
15
template
<
int
nbod>
16
GENERIC
int
second
(
int
ij ){
17
int
i = nbod - 1 - ij / (nbod/2);
18
int
j = ij % (nbod/2);
19
if
(j < i)
20
return
j;
21
else
22
return
nbod - 1 - j - nbod%2;
23
}
24
swarm
src
swarm
gpu
pair_calculation.hpp
Generated on Sun Jul 21 2013 11:11:54 for Swarm-NG by
1.8.4