Last change
on this file since 2362 was
1579,
checked in by ymipsl, 6 years ago
|
XIOS remapper : improvement : Computation the area of spherical triangle : terms are now ordered to improve numerical precision for triangles with small angle
YM
|
File size:
796 bytes
|
Rev | Line | |
---|
[688] | 1 | #include "elt.hpp" |
---|
| 2 | |
---|
| 3 | namespace sphereRemap { |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | Coord barycentre(const Coord *x, int n); |
---|
| 7 | |
---|
| 8 | void orient(int n, Coord *vertex, Coord *edge, double *d, const Coord &g); |
---|
| 9 | |
---|
| 10 | void normals(Coord *x, int n, Coord *a); |
---|
| 11 | |
---|
| 12 | double alun(double b, double d); |
---|
| 13 | |
---|
| 14 | double airbar(int N, const Coord *x, const Coord *c, double *d, const Coord &pole, Coord &gg); |
---|
| 15 | |
---|
| 16 | double polygonarea(Coord *x, int n); |
---|
| 17 | Coord exact_barycentre(const Coord *x, int n) ; |
---|
| 18 | |
---|
| 19 | int packedPolygonSize(const Elt& e); |
---|
| 20 | void packPolygon(const Elt& e, char *buffer, int& pos); |
---|
| 21 | void unpackPolygon(Elt& e, const char *buffer, int& pos); |
---|
| 22 | void packIntersection(const Elt& e, char *buffer, int& pos); |
---|
| 23 | void unpackIntersection(Elt *e, const char *buffer); |
---|
| 24 | int packIntersectionSize(const Elt& e); |
---|
[1579] | 25 | double triarea( const Coord& A, const Coord& B, const Coord& C) ; |
---|
[688] | 26 | |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.