49 double x1, x2, y1, y2, z1, z2;
50 double v, density, size;
53 if (p1 == p2 && mode == 0)
80 r = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
82 r = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) +
83 (z1 - z2) * (z1 - z2));
90 sph_kernel_gradient(p1, p2, grad, mode, r);
96 sc = (m / density) * v;
131 for (s = 0; s <
tnc; s++) {
136 if (!cellIntersectNode
168 for (s = 0; s <
tnc; s++) {
173 if (cellIntersectNode
191 printf(
" Potential gradient...");
198 #pragma omp parallel for private(p,s,no) //schedule(dynamic)
199 for (p = 0; p <
lnc; p++) {
210 for (s = 0; s <
tnc; s++) {
215 if (cellIntersectNode
226 if (cellInsideNode(p, no))
234 for (p = 0; p <
numImp; p++) {
242 for (p = 0; p <
lnc; p++) {
270 for (p = 0; p <
lnc; p++) {
void gradientTraverseSubtree(int p, struct bht_node *no)
contains various Timothy inline functions
void densPotExchangeInit()
struct partData * recvData
contains the most important global variables, arrays and defines
struct doubleVector3d * velocity
void computeCCgradient(int p1, int p2, int mode)
void densPotExchangeWait()
struct bht_node * child[8]
struct statisticsData statistics
struct bht_node * bht_root
void computeRemoteCellsPotentialGradient(int rp, struct bht_node *no)
struct densPotData * recvDensPotData
int computePotentialGradient()