Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

hdyn_grape6.C File Reference

#include "hdyn.h"
#include "grape6.h"
#include "hdyn_inline.C"

Go to the source code of this file.

Defines

#define DEBUG   0
#define INLINE
#define ONE2   0.5
#define ONE6   0.16666666666666666667
#define NRETRY   10
#define MAX_NEIGHBORS   (16*MAX_PERTURBERS)
#define RNB_INCREASE_FAC   2.0
#define RNB_DECREASE_FAC   0.8
#define MAX_FORCE_COUNT   20
#define N_DENS   12

Functions

local void reattach_grape (real time, char *id, kira_options *ko)
local INLINE void send_j_node_to_grape (hdyn *b, bool predict=false)
local int initialize_grape_arrays (hdyn *b, bool reset_counters=true, bool predict=false)
local hdyn* find_and_print_nn (hdyn *b)
local void reset_grape (hdyn *b)
local INLINE int force_by_grape (xreal xtime, hdyn *nodes[], int ni, int nj, int n_pipes, bool pot_only=false, int level=0)
local void hw_err_exit (char *func, int id, hdyn *b)
void check_release_grape (kira_options *ko, xreal time, bool verbose)
local bool use_cm_approx (hdyn *bb)
local int send_all_leaves_to_grape (hdyn *b, real &e_unpert, bool cm=false)
local bool force_by_grape_on_all_leaves (hdyn *b, int nj, bool cm=false)
void grape_calculate_energies (hdyn *b, real &epot, real &ekin, real &etot, bool cm)
local INLINE bool set_grape_neighbor_radius (hdyn *b, int nj_on_grape)
local INLINE bool get_force_and_neighbors (xreal xtime, hdyn *nodes[], int ni, int nj_on_grape, int n_pipes, bool need_neighbors, int level=0)
local INLINE void swap (hdynptr ilist[], int i, int j)
local INLINE int sort_nodes_and_reduce_rnb (hdynptr ilist[], int ni)
local INLINE int get_neighbors_and_adjust_h2 (hdyn *b, int pipe)
local INLINE int get_coll_and_perturbers (xreal xtime, hdynptr *ilist, int ni, real h2_crit, int nj_on_grape, int n_pipes)
void grape_calculate_acc_and_jerk (hdyn **next_nodes, int n_next, xreal xtime, bool restart)
local INLINE void set_grape_density_radius (hdyn *b, real rnn_sq)
local void check_neighbors (hdyn *b, real rnb_sq, int indent=0)
local INLINE bool count_neighbors_and_adjust_h2 (hdyn *b, int pipe)
local INLINE bool get_densities (xreal xtime, hdyn *nodes[], int ni, real h2_crit, int nj_on_grape, int n_pipes)
void grape_calculate_densities (hdyn *b, real h2_crit)
void clean_up_hdyn_grape ()


Define Documentation

#define DEBUG   0
 

Definition at line 36 of file hdyn_grape6.C.

#define INLINE
 

Value:

Definition at line 47 of file hdyn_grape6.C.

#define MAX_FORCE_COUNT   20
 

Definition at line 1463 of file hdyn_grape6.C.

#define MAX_NEIGHBORS   (16*MAX_PERTURBERS)
 

Definition at line 1241 of file hdyn_grape6.C.

#define NRETRY   10
 

Definition at line 52 of file hdyn_grape6.C.

#define N_DENS   12
 

Definition at line 1933 of file hdyn_grape6.C.

#define ONE2   0.5
 

Definition at line 49 of file hdyn_grape6.C.

#define ONE6   0.16666666666666666667
 

Definition at line 50 of file hdyn_grape6.C.

#define RNB_DECREASE_FAC   0.8
 

Definition at line 1243 of file hdyn_grape6.C.

#define RNB_INCREASE_FAC   2.0
 

Definition at line 1242 of file hdyn_grape6.C.


Function Documentation

local void check_neighbors ( hdyn * b,
real rnb_sq,
int indent = 0 )
 

Definition at line 1916 of file hdyn_grape6.C.

Referenced by count_neighbors_and_adjust_h2(), and get_densities().

void check_release_grape ( kira_options * ko,
xreal time,
bool verbose )
 

Definition at line 683 of file hdyn_grape6.C.

Referenced by grape_calculate_densities().

void clean_up_hdyn_grape ( )
 

Definition at line 2345 of file hdyn_grape6.C.

local INLINE bool count_neighbors_and_adjust_h2 ( hdyn * b,
int pipe )
 

Definition at line 1935 of file hdyn_grape6.C.

Referenced by get_densities(), and grape_calculate_densities().

local hdyn* find_and_print_nn ( hdyn * b )
 

Definition at line 270 of file hdyn_grape6.C.

Referenced by force_by_grape().

local INLINE int force_by_grape ( xreal xtime,
hdyn * nodes[],
int ni,
int nj,
int n_pipes,
bool pot_only = false,
int level = 0 )
 

Definition at line 338 of file hdyn_grape6.C.

Referenced by force_by_grape_on_all_leaves(), and get_force_and_neighbors().

local bool force_by_grape_on_all_leaves ( hdyn * b,
int nj,
bool cm = false )
 

Definition at line 840 of file hdyn_grape6.C.

Referenced by grape_calculate_energies().

local INLINE int get_coll_and_perturbers ( xreal xtime,
hdynptr * ilist,
int ni,
real h2_crit,
int nj_on_grape,
int n_pipes )
 

Definition at line 1465 of file hdyn_grape6.C.

Referenced by grape_calculate_acc_and_jerk().

local INLINE bool get_densities ( xreal xtime,
hdyn * nodes[],
int ni,
real h2_crit,
int nj_on_grape,
int n_pipes )
 

Definition at line 2071 of file hdyn_grape6.C.

Referenced by grape_calculate_densities().

local INLINE bool get_force_and_neighbors ( xreal xtime,
hdyn * nodes[],
int ni,
int nj_on_grape,
int n_pipes,
bool need_neighbors,
int level = 0 )
 

Definition at line 1089 of file hdyn_grape6.C.

Referenced by get_coll_and_perturbers(), get_densities(), and grape_calculate_acc_and_jerk().

local INLINE int get_neighbors_and_adjust_h2 ( hdyn * b,
int pipe )
 

Definition at line 1256 of file hdyn_grape6.C.

Referenced by get_coll_and_perturbers(), and grape_calculate_acc_and_jerk().

void grape_calculate_acc_and_jerk ( hdyn ** next_nodes,
int n_next,
xreal xtime,
bool restart )
 

Definition at line 1624 of file hdyn_grape6.C.

Referenced by kira_calculate_top_level_acc_and_jerk(), and kira_synchronize_tree().

void grape_calculate_densities ( hdyn * b,
real h2_crit )
 

Definition at line 2201 of file hdyn_grape6.C.

Referenced by kira_compute_densities().

void grape_calculate_energies ( hdyn * b,
real & epot,
real & ekin,
real & etot,
bool cm )
 

Definition at line 910 of file hdyn_grape6.C.

Referenced by kira_calculate_internal_energies().

local void hw_err_exit ( char * func,
int id,
hdyn * b )
 

Definition at line 639 of file hdyn_grape6.C.

Referenced by get_densities(), get_force_and_neighbors(), grape_calculate_densities(), and grape_calculate_energies().

local int initialize_grape_arrays ( hdyn * b,
bool reset_counters = true,
bool predict = false )
 

Definition at line 193 of file hdyn_grape6.C.

Referenced by grape_calculate_acc_and_jerk(), grape_calculate_densities(), and reset_grape().

local void reattach_grape ( real time,
char * id,
kira_options * ko )
 

Definition at line 102 of file hdyn_grape6.C.

Referenced by grape_calculate_acc_and_jerk(), grape_calculate_densities(), and grape_calculate_energies().

local void reset_grape ( hdyn * b )
 

Definition at line 296 of file hdyn_grape6.C.

Referenced by force_by_grape(), and get_force_and_neighbors().

local int send_all_leaves_to_grape ( hdyn * b,
real & e_unpert,
bool cm = false )
 

Definition at line 735 of file hdyn_grape6.C.

Referenced by grape_calculate_energies().

local INLINE void send_j_node_to_grape ( hdyn * b,
bool predict = false )
 

Definition at line 128 of file hdyn_grape6.C.

Referenced by grape_calculate_acc_and_jerk(), initialize_grape_arrays(), and send_all_leaves_to_grape().

local INLINE void set_grape_density_radius ( hdyn * b,
real rnn_sq )
 

Definition at line 1858 of file hdyn_grape6.C.

Referenced by grape_calculate_densities().

local INLINE bool set_grape_neighbor_radius ( hdyn * b,
int nj_on_grape )
 

Definition at line 991 of file hdyn_grape6.C.

Referenced by grape_calculate_acc_and_jerk().

local INLINE int sort_nodes_and_reduce_rnb ( hdynptr ilist[],
int ni )
 

Definition at line 1187 of file hdyn_grape6.C.

Referenced by grape_calculate_acc_and_jerk().

local INLINE void swap ( hdynptr ilist[],
int i,
int j )
 

Definition at line 1180 of file hdyn_grape6.C.

local bool use_cm_approx ( hdyn * bb ) [inline]
 

Definition at line 719 of file hdyn_grape6.C.

Referenced by grape_calculate_energies(), and send_all_leaves_to_grape().


Generated at Sun Feb 24 09:57:26 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001