Barneshut.cpp File Reference
Barnes-hut application -*- C++ -*-.
More...
#include <limits>
#include <iostream>
#include <vector>
#include <strings.h>
#include <boost/math/constants/constants.hpp>
#include <boost/iterator/transform_iterator.hpp>
#include "Galois/Galois.h"
#include "Galois/Statistic.h"
#include "Lonestar/Banner.h"
#include "Lonestar/CommandLine.h"
Classes |
struct | anonymous_namespace{Barneshut.cpp}::Point |
struct | anonymous_namespace{Barneshut.cpp}::Octree |
| A node in an octree is either an internal node or a body (leaf). More...
|
struct | anonymous_namespace{Barneshut.cpp}::OctreeInternal |
struct | anonymous_namespace{Barneshut.cpp}::Body |
struct | anonymous_namespace{Barneshut.cpp}::BoundingBox |
struct | anonymous_namespace{Barneshut.cpp}::Config |
struct | anonymous_namespace{Barneshut.cpp}::BuildOctree |
struct | anonymous_namespace{Barneshut.cpp}::ComputeCenterOfMass |
struct | anonymous_namespace{Barneshut.cpp}::ComputeForces |
struct | anonymous_namespace{Barneshut.cpp}::ComputeForces::Frame |
struct | anonymous_namespace{Barneshut.cpp}::AdvanceBodies |
struct | anonymous_namespace{Barneshut.cpp}::ReduceBoxes |
struct | anonymous_namespace{Barneshut.cpp}::Deref< T > |
Namespaces |
namespace | anonymous_namespace{Barneshut.cpp} |
Typedefs |
typedef std::vector< Body > | anonymous_namespace{Barneshut.cpp}::Bodies |
Functions |
std::ostream & | anonymous_namespace{Barneshut.cpp}::operator<< (std::ostream &os, const Point &p) |
std::ostream & | anonymous_namespace{Barneshut.cpp}::operator<< (std::ostream &os, const Body &b) |
std::ostream & | anonymous_namespace{Barneshut.cpp}::operator<< (std::ostream &os, const BoundingBox &b) |
int | anonymous_namespace{Barneshut.cpp}::getIndex (const Point &a, const Point &b) |
void | anonymous_namespace{Barneshut.cpp}::updateCenter (Point &p, int index, double radius) |
double | anonymous_namespace{Barneshut.cpp}::nextDouble () |
void | anonymous_namespace{Barneshut.cpp}::generateInput (Bodies &bodies, int nbodies, int seed) |
| Generates random input according to the Plummer model, which is more realistic but perhaps not so much so according to astrophysicists.
|
boost::transform_iterator
< Deref< Body >
, Bodies::iterator > | anonymous_namespace{Barneshut.cpp}::wrap (Bodies::iterator it) |
void | anonymous_namespace{Barneshut.cpp}::run (int nbodies, int ntimesteps, int seed) |
int | main (int argc, const char **argv) |
Variables |
const char * | anonymous_namespace{Barneshut.cpp}::name = "Barnshut N-Body Simulator" |
const char * | anonymous_namespace{Barneshut.cpp}::description |
const char * | anonymous_namespace{Barneshut.cpp}::url = "barneshut" |
const char * | anonymous_namespace{Barneshut.cpp}::help = "<numbodies> <ntimesteps> <seed>" |
Config | anonymous_namespace{Barneshut.cpp}::config |
Detailed Description
Barnes-hut application -*- C++ -*-.
Galois, a framework to exploit amorphous data-parallelism in irregular programs.
Copyright (C) 2011, The University of Texas at Austin. All rights reserved. UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable for incidental, special, indirect, direct or consequential damages or loss of profits, interruption of business, or related expenses which may arise from use of Software or Documentation, including but not limited to those resulting from defects in Software and/or Documentation, or loss or inaccuracy of data of any kind.
- Author:
- Martin Burtscher <burtscher@txstate.edu>
-
Donald Nguyen <ddn@cs.utexas.edu>
Function Documentation
int main |
( |
int |
argc, |
|
|
const char ** |
argv | |
|
) |
| | |