source: XIOS/dev/dev_olga/src/extern/remap/src/circle.hpp @ 1022

Last change on this file since 1022 was 1022, checked in by mhnguyen, 7 years ago
File size: 519 bytes
Line 
1#ifndef __CIRCLE_HPP__
2#define __CIRCLE_HPP__
3#include "elt.hpp"
4#include "node.hpp"
5
6namespace sphereRemap {
7 
8double cptRadius(Elt elt);
9
10void setCircleAndLink(Elt& elt, Node& leaf);
11
12/* For arrays of grid elements `elt` and SS-tree nodes `leaf`,
13   both of length `NE`, initialize each node with radius of encompassing circle and barycentre
14   of the corresponding grid element.
15   At this point the node is a leaf and contains only one element.
16*/
17void setCirclesAndLinks(Elt *elts, vector<Node>& leaf);
18
19}
20#endif
Note: See TracBrowser for help on using the repository browser.