Dendro  5.01
Dendro in Greek language means tree. The Dendro library is a large scale (262K cores on ORNL's Titan) distributed memory adaptive octree framework. The main goal of Dendro is to perform large scale multiphysics simulations efficeiently in mordern supercomputers. Dendro consists of efficient parallel data structures and algorithms to perform variational ( finite element) methods and finite difference mthods on 2:1 balanced arbitary adaptive octrees which enables the users to perform simulations raning from black holes (binary black hole mergers) to blood flow in human body, where applications ranging from relativity, astrophysics to biomedical engineering.
derivs.h
1 #ifndef _DERVS_H
2 #define _DERVS_H
3 
4 #include <cmath>
5 #include "TreeNode.h"
6 
7 #define IDX(i,j,k) ( (i) + nx * ( (j) + ny * (k) ) )
8 
9 
10 void deriv42_z(double * const Dzu, const double * const u, const double dz, const unsigned int *sz, unsigned bflag);
11 void deriv42_y(double * const Dyu, const double * const u, const double dy, const unsigned int *sz, unsigned bflag);
12 void deriv42_x(double * const Dxu, const double * const u, const double dx, const unsigned int *sz, unsigned bflag);
13 
14 void deriv42_zz(double * const Du, const double * const u, const double dz, const unsigned int *sz, unsigned bflag);
15 void deriv42_yy(double * const Du, const double * const u, const double dy, const unsigned int *sz, unsigned bflag);
16 void deriv42_xx(double * const DxDxu, const double * const u,const double dx, const unsigned int *sz, unsigned bflag);
17 
18 
19 void ko_deriv42_z(double * const Du, const double * const u, const double dz, const unsigned *sz, unsigned bflag);
20 void ko_deriv42_y(double * const Du, const double * const u, const double dy, const unsigned int *sz, unsigned bflag);
21 void ko_deriv42_x(double * const Du, const double * const u, const double dx, const unsigned int *sz, unsigned bflag);
22 
23 
24 
28 void cpy_unzip_padd(double * const Du, const double * const u,const unsigned int *sz, unsigned bflag);
29 
30 
31 #endif