Last change
on this file since 2634 was
2269,
checked in by ymipsl, 3 years ago
|
- Solve memory leak from remapper.
- shared_ptr add add for manage nodes.
YM
|
File size:
522 bytes
|
Line | |
---|
1 | #ifndef __CIRCLE_HPP__ |
---|
2 | #define __CIRCLE_HPP__ |
---|
3 | #include "elt.hpp" |
---|
4 | #include "node.hpp" |
---|
5 | |
---|
6 | namespace sphereRemap { |
---|
7 | |
---|
8 | double cptRadius(Elt elt); |
---|
9 | |
---|
10 | void 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 | */ |
---|
17 | void setCirclesAndLinks(Elt *elts, vector<NodePtr>& leaf); |
---|
18 | |
---|
19 | } |
---|
20 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.