source: XIOS/dev/branch_yushan_merged/extern/remap/src/polyg.hpp @ 1131

Last change on this file since 1131 was 688, checked in by mhnguyen, 9 years ago

Integrating remap library into XIOS

+) Change name of some files of remap library to be compatible with XIOS
+) Implement function to fill in automatically boundary longitude and latitude

Test
+) On Curie
+) test_remap correct

File size: 730 bytes
Line 
1#include "elt.hpp"
2
3namespace sphereRemap {
4
5
6Coord barycentre(const Coord *x, int n);
7
8void orient(int n, Coord *vertex, Coord *edge, double *d, const Coord &g);
9
10void normals(Coord *x, int n, Coord *a);
11
12double alun(double b, double d);
13
14double airbar(int N, const Coord *x, const Coord *c, double *d, const Coord &pole, Coord &gg);
15
16double polygonarea(Coord *x, int n);
17Coord exact_barycentre(const Coord *x, int n) ;
18
19int packedPolygonSize(const Elt& e);
20void packPolygon(const Elt& e, char *buffer, int& pos);
21void unpackPolygon(Elt& e, const char *buffer, int& pos);
22void packIntersection(const Elt& e, char *buffer, int& pos);
23void unpackIntersection(Elt *e, const char *buffer);
24int packIntersectionSize(const Elt& e);
25
26}
Note: See TracBrowser for help on using the repository browser.