Last change
on this file since 2697 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:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | /* Call remap_get_num_weights to get the length of the weigth arrays, then allocate the arrays and hand to remap_get_weights. */ |
---|
3 | |
---|
4 | /* Bounds are in degree, the pole is in cartitian coordinates on a unit sphere |
---|
5 | and a pole of (0,0,0) means all great circles (no lon-lat grid). */ |
---|
6 | extern "C" void remap_get_num_weights(const double* src_bounds_lon, const double* src_bounds_lat, int n_vert_per_cell_src, int n_cell_src, |
---|
7 | const double* src_pole, |
---|
8 | const double* dst_bounds_lon, const double* dst_bounds_lat, int n_vert_per_cell_dst, int n_cell_dst, |
---|
9 | const double* dst_pole, |
---|
10 | int order, int* n_weights); |
---|
11 | |
---|
12 | /* centre_??? or areas can be a NULL pointer if only one of them is required */ |
---|
13 | extern "C" void remap_get_barycentres_and_areas(const double* bounds_lon, const double* bounds_lat, int n_vert_per_cell, int n_cell, |
---|
14 | const double* pole, |
---|
15 | double* centre_lon, double* centre_lat, double* areas); |
---|
16 | |
---|
17 | /* |
---|
18 | extern "C" void remap_get_weights(double* weights, int* src_indices, int* src_ranks, int* dst_indices); |
---|
19 | */ |
---|
20 | extern "C" void remap_get_weights(double* weights, int* src_indices, int* dst_indices); |
---|
Note: See
TracBrowser
for help on using the repository browser.