|
YAC 3.12.0
Yet Another Coupler
|


Go to the source code of this file.
Enumerations | |
| enum | yac_point_selection_type { YAC_POINT_SELECTION_TYPE_EMPTY , YAC_POINT_SELECTION_TYPE_BND_CIRCLE } |
Functions | |
| struct yac_point_selection * | yac_point_selection_bnd_circle_new (double center_lon, double center_lat, double inc_angle) |
| void | yac_point_selection_delete (struct yac_point_selection *point_select) |
| struct yac_point_selection * | yac_point_selection_copy (struct yac_point_selection const *point_select) |
| size_t | yac_point_selection_get_pack_size (struct yac_point_selection const *point_select, MPI_Comm comm) |
| void | yac_point_selection_pack (struct yac_point_selection const *point_select, void *buffer, int buffer_size, int *position, MPI_Comm comm) |
| struct yac_point_selection * | yac_point_selection_unpack (void const *buffer, int buffer_size, int *position, MPI_Comm comm) |
| int | yac_point_selection_compare (struct yac_point_selection const *a, struct yac_point_selection const *b) |
| void | yac_point_selection_apply (struct yac_point_selection const *point_select, yac_coordinate_pointer point_coordinates, size_t *point_indices, size_t num_points, size_t *num_selected_points) |
| enum yac_point_selection_type | yac_point_selection_get_type (struct yac_point_selection const *point_select) |
| void | yac_point_selection_bnd_circle_get_config (struct yac_point_selection const *point_selection, double *center_lon, double *center_lat, double *inc_angle) |
Available point selection types
| Enumerator | |
|---|---|
| YAC_POINT_SELECTION_TYPE_EMPTY | empty selection (no points will match) |
| YAC_POINT_SELECTION_TYPE_BND_CIRCLE | point selection based on a bounding circle |
Definition at line 18 of file point_selection.h.
| void yac_point_selection_apply | ( | struct yac_point_selection const * | point_select, |
| yac_coordinate_pointer | point_coordinates, | ||
| size_t * | point_indices, | ||
| size_t | num_points, | ||
| size_t * | num_selected_points ) |
Generates a list of points that match a given point selection criterion.
| [in] | point_select | point selection criterion |
| [in,out] | point_coordinates | point coordinates |
| [in,out] | point_indices | indices of point associated with the provided coordinates |
| [in] | num_points | number of entries in point_indices and point_coordinates |
| [out] | num_selected_points | number of entries in selected_point_indices |
Definition at line 248 of file point_selection.c.


| void yac_point_selection_bnd_circle_get_config | ( | struct yac_point_selection const * | point_selection, |
| double * | center_lon, | ||
| double * | center_lat, | ||
| double * | inc_angle ) |
Gets the configuration of a bounding circle point selection
| [in] | point_selection | point selection criterion |
| [out] | center_lon | longitude coordinate of the center of the bounding circle (in radians) |
| [out] | center_lat | latitude coordinate of the center of the bounding circle (in radians) |
| [out] | inc_angle | the angle between center vector and a vector pointing to any point on the bounding circle (in radians) |
Definition at line 307 of file point_selection.c.


| struct yac_point_selection * yac_point_selection_bnd_circle_new | ( | double | center_lon, |
| double | center_lat, | ||
| double | inc_angle ) |
Generates a point selection based on a bounding circle
| [in] | center_lon | longitude coordinate of the center of the bounding circle (in radians) |
| [in] | center_lat | latitude coordinate of the center of the bounding circle (in radians) |
| [in] | inc_angle | the angle between center vector and a vector pointing to any point on the bounding circle (in radians) |
Definition at line 23 of file point_selection.c.

| int yac_point_selection_compare | ( | struct yac_point_selection const * | a, |
| struct yac_point_selection const * | b ) |
Compares two point selections
| [in] | a | point selection a |
| [in] | b | point selection b |
Definition at line 179 of file point_selection.c.


| struct yac_point_selection * yac_point_selection_copy | ( | struct yac_point_selection const * | point_select | ) |
Copies a given point selection
| [in] | point_select | point selection to be copied |
Definition at line 48 of file point_selection.c.


| void yac_point_selection_delete | ( | struct yac_point_selection * | point_select | ) |
Deletes a given point selection
Definition at line 73 of file point_selection.c.

| size_t yac_point_selection_get_pack_size | ( | struct yac_point_selection const * | point_select, |
| MPI_Comm | comm ) |
Computes the minimum size required for packing a give point selection using MPI_Pack
| [in] | point_select | point selection |
| [in] | comm | MPI communicator going to be used for the packing |
Definition at line 77 of file point_selection.c.


| enum yac_point_selection_type yac_point_selection_get_type | ( | struct yac_point_selection const * | point_select | ) |
Gets the type of a provided point selection
| [in] | point_select | point selection criterion |
Definition at line 300 of file point_selection.c.

| void yac_point_selection_pack | ( | struct yac_point_selection const * | point_select, |
| void * | buffer, | ||
| int | buffer_size, | ||
| int * | position, | ||
| MPI_Comm | comm ) |
Packs a given point selection into a buffer using MPI_Pack
| [in] | point_select | point selection |
| [in,out] | buffer | packing buffer |
| [in] | buffer_size | size of packing buffer |
| [in,out] | position | current packing position |
| [in] | comm | MPI communicator used to communicate the buffer |
Definition at line 106 of file point_selection.c.


| struct yac_point_selection * yac_point_selection_unpack | ( | void const * | buffer, |
| int | buffer_size, | ||
| int * | position, | ||
| MPI_Comm | comm ) |
Unpack a point selection from a given buffer using MPI_Unpack
| [in] | buffer | packing buffer |
| [in] | buffer_size | buffer size |
| [in,out] | position | current unpacking position |
| [in] | comm | MPI communicator used to receive the buffer |
Definition at line 140 of file point_selection.c.

