changa 3.5
|
#include <cstdio>
#include <algorithm>
#include <fstream>
#include <assert.h>
#include <float.h>
#include "limits.h"
#include "ParallelGravity.h"
#include "DataManager.h"
#include "Reductions.h"
#include "MultistepLB.h"
#include "MultistepLB_SFC.h"
#include "MultistepLB_notopo.h"
#include "MultistepNodeLB_notopo.h"
#include "Orb3dLB.h"
#include "Orb3dLB_notopo.h"
#include "HierarchOrbLB.h"
#include "Opt.h"
#include "Compute.h"
#include "TreeWalk.h"
#include "Space.h"
#include "gravity.h"
#include "smooth.h"
#include "PETreeMerger.h"
#include "IntraNodeLBManager.h"
#include "CkLoopAPI.h"
#include "formatted_string.h"
#include "physconst.h"
#include "DumpFrameData.h"
Classes | |
struct | SortStruct |
structure for efficiently reading iOrders. More... | |
Functions | |
CkpvExtern (int, _lb_obj_index) | |
string | getColor (GenericTreeNode *node) |
Color a node. | |
const char * | typeString (NodeType type) |
Interprete NodeType as string. | |
void | glassDamping (Vector3D< cosmoType > &v, double dDelta, double damping) |
glassDamping applies a damping force to a particle's velocity. | |
bool | comp_dim0 (GravityParticle p1, GravityParticle p2) |
bool | comp_dim1 (GravityParticle p1, GravityParticle p2) |
bool | comp_dim2 (GravityParticle p1, GravityParticle p2) |
int | CompSortStruct (const void *a, const void *b) |
Comparison function to sort iOrders. | |
bool | bIsReplica (int reqID) |
is this a periodic replica? | |
int | decodeReqID (int reqID) |
Given a requestID, return the bucket number. | |
int | encodeOffset (int reqID, int x, int y, int z) |
Given a bucket number and a periodic offset, encode these into one number. | |
int | reEncodeOffset (int reqID, int offsetID) |
Add reqID to encoded offset. | |
void | doWorkForCkLoop (int start, int end, void *result, int pnum, void *param) |
void | doCalcEwald (int start, int end, void *result, int pnum, void *param) |
void | checkParticle (GravityParticle *p) |
Sanity check on particle data. | |
string | makeLabel (GenericTreeNode *node) |
Make a label for a node. | |
void | printGenericTree (GenericTreeNode *node, ostream &os) |
Print a text version of a tree. | |
bool comp_dim0 | ( | GravityParticle | p1, |
GravityParticle | p2 ) |
Three comparison routines used in sort and upper_bound to order particles in each of three dimensions, respectively
|
inline |
glassDamping applies a damping force to a particle's velocity.
This can be useful for generating glasses. It is mean to model a damping term vdot = -damping * v
v | Particle velocity (v or vPred), a Vector3D |
dDelta | Time step to apply damping over |
damping | Inverse timescale of the damping |