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

Last change on this file since 1022 was 1022, checked in by mhnguyen, 7 years ago
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). */
6extern "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 */
13extern "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/*
18extern "C" void remap_get_weights(double* weights, int* src_indices, int* src_ranks, int* dst_indices);
19*/
20extern "C" void remap_get_weights(double* weights, int* src_indices, int* dst_indices);
Note: See TracBrowser for help on using the repository browser.