Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

hdyn_grape4.C File Reference

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

Go to the source code of this file.

Defines

#define MINIMUM_GRAPE_RNB_PERT   1e-20
#define H2_FAC   8192
#define DEBUG   0
#define NEW_DENSITY_ALGORITHM
#define NNB_MIN   14
#define NNB_OVERFLOW   256
#define ITER_MAX   30

Functions

local void initialize_node_lists ()
int get_grape_chip (hdyn *b)
local void jpdma_nodes (int nnodes, hdyn *nodelist[], bool predicted, real predicted_time)
local void force_by_grape4 (real time, int ni, hdyn *nodes[], int nj)
local int put_grape_index_to_top_level_nodes (hdyn *b)
local int initialize_array (hdyn *root)
void check_release_grape (kira_options *ko, xreal time, bool verbose)
local int put_grape_index_to_leaf_nodes (hdyn *b, bool cm=false)
local void jpdma_node (hdyn *b, bool predicted, real predicted_time, int jpmax, int nj, int &jp)
local int jpdma_all_leaves (hdyn *root, bool predicted, real predicted_time, bool cm=false)
local void force_by_grape4_on_leaves (real time, int ni, hdyn *nodes[], int nj)
local void force_by_grape4_on_all_leaves (real time, hdyn *b, int nj, bool cm=false)
void grape_calculate_energies (hdyn *b, real &epot, real &ekin, real &etot, bool cm)
local bool get_neighbors_and_adjust_h2 (int chip, hdyn *b)
local void set_grape4_neighbour_radius (hdyn *b, int nj_on_grape)
void grape_calculate_acc_and_jerk (hdyn **next_nodes, int n_next, xreal time, bool restart)
local void set_grape4_density_radius (hdyn *b, real rnn_sq)
local void count_neighbors (hdyn *b, real r2, int nnb)
local hdyn* find_nn (hdyn *b)
local bool count_neighbors_and_adjust_h2 (int chip, hdyn *b)
local int get_densities_for_list (xreal time, int ni, hdynptr list[], int nj_on_grape4, real h2_crit, bool debug=false)
local int recount_nblist (int ip)
void grape_calculate_densities (hdyn *b, real h2_crit)
void clean_up_hdyn_grape ()

Variables

real d_nn_sq
real d_nn_sq2
real d_nn_sq3


Define Documentation

#define DEBUG   0
 

Definition at line 1392 of file hdyn_grape4.C.

#define H2_FAC   8192
 

#define ITER_MAX   30
 

Definition at line 1677 of file hdyn_grape4.C.

#define MINIMUM_GRAPE_RNB_PERT   1e-20
 

Definition at line 146 of file hdyn_grape4.C.

#define NEW_DENSITY_ALGORITHM
 

Value:

Definition at line 1670 of file hdyn_grape4.C.

#define NNB_MIN   14
 

Definition at line 1674 of file hdyn_grape4.C.

#define NNB_OVERFLOW   256
 

Definition at line 1675 of file hdyn_grape4.C.


Function Documentation

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

Definition at line 507 of file hdyn_grape4.C.

void clean_up_hdyn_grape ( )
 

Definition at line 2162 of file hdyn_grape4.C.

local void count_neighbors ( hdyn * b,
real r2,
int nnb )
 

Definition at line 1443 of file hdyn_grape4.C.

local bool count_neighbors_and_adjust_h2 ( int chip,
hdyn * b )
 

Definition at line 1495 of file hdyn_grape4.C.

local hdyn* find_nn ( hdyn * b )
 

Definition at line 1461 of file hdyn_grape4.C.

Referenced by count_neighbors_and_adjust_h2().

local void force_by_grape4 ( real time,
int ni,
hdyn * nodes[],
int nj )
 

Definition at line 308 of file hdyn_grape4.C.

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

local void force_by_grape4_on_all_leaves ( real time,
hdyn * b,
int nj,
bool cm = false )
 

Definition at line 736 of file hdyn_grape4.C.

Referenced by grape_calculate_energies().

local void force_by_grape4_on_leaves ( real time,
int ni,
hdyn * nodes[],
int nj )
 

Definition at line 657 of file hdyn_grape4.C.

Referenced by force_by_grape4_on_all_leaves().

local int get_densities_for_list ( xreal time,
int ni,
hdynptr list[],
int nj_on_grape4,
real h2_crit,
bool debug = false )
 

Definition at line 1681 of file hdyn_grape4.C.

Referenced by grape_calculate_densities().

int get_grape_chip ( hdyn * b )
 

Definition at line 230 of file hdyn_grape4.C.

Referenced by ONE3().

local bool get_neighbors_and_adjust_h2 ( int chip,
hdyn * b )
 

Definition at line 849 of file hdyn_grape4.C.

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

Definition at line 1107 of file hdyn_grape4.C.

void grape_calculate_densities ( hdyn * b,
real h2_crit )
 

Definition at line 1965 of file hdyn_grape4.C.

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

Definition at line 784 of file hdyn_grape4.C.

local int initialize_array ( hdyn * root )
 

Definition at line 472 of file hdyn_grape4.C.

Referenced by grape_calculate_acc_and_jerk(), and grape_calculate_densities().

local void initialize_node_lists ( )
 

Definition at line 198 of file hdyn_grape4.C.

Referenced by put_grape_index_to_leaf_nodes(), and put_grape_index_to_top_level_nodes().

local int jpdma_all_leaves ( hdyn * root,
bool predicted,
real predicted_time,
bool cm = false )
 

Definition at line 624 of file hdyn_grape4.C.

Referenced by grape_calculate_energies().

local void jpdma_node ( hdyn * b,
bool predicted,
real predicted_time,
int jpmax,
int nj,
int & jp ) [inline]
 

Definition at line 571 of file hdyn_grape4.C.

Referenced by jpdma_all_leaves().

local void jpdma_nodes ( int nnodes,
hdyn * nodelist[],
bool predicted,
real predicted_time )
 

Definition at line 239 of file hdyn_grape4.C.

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

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

Definition at line 535 of file hdyn_grape4.C.

Referenced by jpdma_all_leaves().

local int put_grape_index_to_top_level_nodes ( hdyn * b )
 

Definition at line 426 of file hdyn_grape4.C.

Referenced by initialize_array().

local int recount_nblist ( int ip )
 

Definition at line 1953 of file hdyn_grape4.C.

Referenced by grape_calculate_densities().

local void set_grape4_density_radius ( hdyn * b,
real rnn_sq ) [inline]
 

Definition at line 1394 of file hdyn_grape4.C.

Referenced by grape_calculate_densities().

local void set_grape4_neighbour_radius ( hdyn * b,
int nj_on_grape )
 

Definition at line 975 of file hdyn_grape4.C.

Referenced by grape_calculate_acc_and_jerk().


Variable Documentation

real d_nn_sq
 

Definition at line 1458 of file hdyn_grape4.C.

real d_nn_sq2
 

Definition at line 1458 of file hdyn_grape4.C.

real d_nn_sq3
 

Definition at line 1458 of file hdyn_grape4.C.


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