YetAnotherCoupler 3.5.2
|
#include <stdio.h>
#include <string.h>
#include "basic_grid.h"
#include "grid_cell.h"
#include "field_data_set.h"
#include "io_utils.h"
#include "yac_mpi_internal.h"
#include "time.h"
#include "yac_config.h"
#include "geometry.h"
Go to the source code of this file.
Data Structures | |
struct | yac_basic_grid |
Functions | |
struct yac_basic_grid * | yac_basic_grid_new (char const *name, struct yac_basic_grid_data grid_data) |
struct yac_basic_grid * | yac_basic_grid_empty_new (char const *name) |
void | yac_basic_grid_delete (struct yac_basic_grid *grid) |
yac_const_coordinate_pointer | yac_basic_grid_get_field_coordinates (struct yac_basic_grid *grid, struct yac_interp_field field) |
int const * | yac_basic_grid_get_core_mask (struct yac_basic_grid *grid, enum yac_location location) |
int const * | yac_basic_grid_get_field_mask (struct yac_basic_grid *grid, struct yac_interp_field field) |
char const * | yac_basic_grid_get_name (struct yac_basic_grid *grid) |
struct yac_basic_grid_data * | yac_basic_grid_get_data (struct yac_basic_grid *grid) |
size_t | yac_basic_grid_get_data_size (struct yac_basic_grid *grid, enum yac_location location) |
size_t | yac_basic_grid_get_data_size_f2c (struct yac_basic_grid *grid, int location) |
size_t | yac_basic_grid_get_named_mask_idx (struct yac_basic_grid *grid, enum yac_location location, char const *mask_name) |
size_t | yac_basic_grid_add_coordinates_nocpy (struct yac_basic_grid *grid, enum yac_location location, yac_coordinate_pointer coordinates) |
size_t | yac_basic_grid_add_coordinates_nocpy_f2c (struct yac_basic_grid *grid, int location, double *coordinates) |
size_t | yac_basic_grid_add_coordinates (struct yac_basic_grid *grid, enum yac_location location, yac_coordinate_pointer coordinates, size_t count) |
size_t | yac_basic_grid_add_coordinates_f2c (struct yac_basic_grid *grid, int location, double *coordinates, size_t count) |
size_t | yac_basic_grid_add_mask_nocpy (struct yac_basic_grid *grid, enum yac_location location, int const *mask, char const *mask_name) |
size_t | yac_basic_grid_add_mask_nocpy_f2c (struct yac_basic_grid *grid, int location, int const *mask, char const *mask_name) |
size_t | yac_basic_grid_add_mask (struct yac_basic_grid *grid, enum yac_location location, int const *mask, size_t count, char const *mask_name) |
size_t | yac_basic_grid_add_mask_f2c (struct yac_basic_grid *grid, int location, int const *mask, size_t count, char const *mask_name) |
struct yac_field_data * | yac_basic_grid_get_field_data (struct yac_basic_grid *grid, enum yac_location location) |
struct yac_basic_grid * | yac_basic_grid_reg_2d_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices) |
struct yac_basic_grid * | yac_basic_grid_reg_2d_deg_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices) |
struct yac_basic_grid * | yac_basic_grid_curve_2d_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices) |
struct yac_basic_grid * | yac_basic_grid_curve_2d_deg_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices) |
struct yac_basic_grid * | yac_basic_grid_unstruct_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_unstruct_deg_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_unstruct_ll_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_unstruct_ll_deg_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_unstruct_edge_new (char const *name, size_t nbr_vertices, size_t nbr_cells, size_t nbr_edges, int *num_edges_per_cell, double *x_vertices, double *y_vertices, int *cell_to_edge, int *edge_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_unstruct_edge_deg_new (char const *name, size_t nbr_vertices, size_t nbr_cells, size_t nbr_edges, int *num_edges_per_cell, double *x_vertices, double *y_vertices, int *cell_to_edge, int *edge_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_unstruct_edge_ll_new (char const *name, size_t nbr_vertices, size_t nbr_cells, size_t nbr_edges, int *num_edges_per_cell, double *x_vertices, double *y_vertices, int *cell_to_edge, int *edge_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_unstruct_edge_ll_deg_new (char const *name, size_t nbr_vertices, size_t nbr_cells, size_t nbr_edges, int *num_edges_per_cell, double *x_vertices, double *y_vertices, int *cell_to_edge, int *edge_to_vertex) |
struct yac_basic_grid * | yac_basic_grid_cloud_new (char const *name, size_t nbr_points, double *x_points, double *y_points) |
struct yac_basic_grid * | yac_basic_grid_cloud_deg_new (char const *name, size_t nbr_points, double *x_points, double *y_points) |
static int | def_dim (char const *filename, int ncid, char const *name, size_t dim_len, int file_is_new) |
static void | def_var (char const *filename, int ncid, char const *name, nc_type type, int ndims, const int *dimids, char const *att_name, char const *att_value, int file_is_new) |
static void | create_grid_file (char const *filename, char const *grid_name, size_t num_cells, int num_vertices_per_cell, int cell_center_coords_avaiable, int cell_global_ids_available, int core_cell_mask_available, int vertex_global_ids_available, int core_vertex_mask_available, int edge_global_ids_available, int core_edge_mask_available) |
static void | put_vara (int ncid, char const *grid_name, char const *var_ext, size_t *start, size_t *count, void const *buffer) |
void | yac_basic_grid_to_file_parallel (struct yac_basic_grid *grid, char const *filename, MPI_Comm comm) |
void | yac_basic_grid_compute_cell_areas (struct yac_basic_grid *grid, double *cell_areas) |
Variables | |
static struct yac_basic_grid_data | yac_basic_grid_data_empty |
|
static |
Definition at line 597 of file basic_grid.c.
|
static |
|
static |
|
static |
Definition at line 719 of file basic_grid.c.
size_t yac_basic_grid_add_coordinates | ( | struct yac_basic_grid * | grid, |
enum yac_location | location, | ||
yac_coordinate_pointer | coordinates, | ||
size_t | count ) |
Definition at line 232 of file basic_grid.c.
size_t yac_basic_grid_add_coordinates_f2c | ( | struct yac_basic_grid * | grid, |
int | location, | ||
double * | coordinates, | ||
size_t | count ) |
Definition at line 248 of file basic_grid.c.
size_t yac_basic_grid_add_coordinates_nocpy | ( | struct yac_basic_grid * | grid, |
enum yac_location | location, | ||
yac_coordinate_pointer | coordinates ) |
Definition at line 208 of file basic_grid.c.
size_t yac_basic_grid_add_coordinates_nocpy_f2c | ( | struct yac_basic_grid * | grid, |
int | location, | ||
double * | coordinates ) |
Definition at line 224 of file basic_grid.c.
size_t yac_basic_grid_add_mask | ( | struct yac_basic_grid * | grid, |
enum yac_location | location, | ||
int const * | mask, | ||
size_t | count, | ||
char const * | mask_name ) |
Definition at line 284 of file basic_grid.c.
size_t yac_basic_grid_add_mask_f2c | ( | struct yac_basic_grid * | grid, |
int | location, | ||
int const * | mask, | ||
size_t | count, | ||
char const * | mask_name ) |
Definition at line 300 of file basic_grid.c.
size_t yac_basic_grid_add_mask_nocpy | ( | struct yac_basic_grid * | grid, |
enum yac_location | location, | ||
int const * | mask, | ||
char const * | mask_name ) |
Definition at line 258 of file basic_grid.c.
size_t yac_basic_grid_add_mask_nocpy_f2c | ( | struct yac_basic_grid * | grid, |
int | location, | ||
int const * | mask, | ||
char const * | mask_name ) |
Definition at line 275 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_cloud_deg_new | ( | char const * | name, |
size_t | nbr_points, | ||
double * | x_points, | ||
double * | y_points ) |
Definition at line 481 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_cloud_new | ( | char const * | name, |
size_t | nbr_points, | ||
double * | x_points, | ||
double * | y_points ) |
Definition at line 472 of file basic_grid.c.
void yac_basic_grid_compute_cell_areas | ( | struct yac_basic_grid * | grid, |
double * | cell_areas ) |
Definition at line 1263 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_curve_2d_deg_new | ( | char const * | name, |
size_t | nbr_vertices[2], | ||
int | cyclic[2], | ||
double * | lon_vertices, | ||
double * | lat_vertices ) |
Definition at line 357 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_curve_2d_new | ( | char const * | name, |
size_t | nbr_vertices[2], | ||
int | cyclic[2], | ||
double * | lon_vertices, | ||
double * | lat_vertices ) |
Definition at line 346 of file basic_grid.c.
void yac_basic_grid_delete | ( | struct yac_basic_grid * | grid | ) |
Definition at line 70 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_empty_new | ( | char const * | name | ) |
Definition at line 63 of file basic_grid.c.
int const * yac_basic_grid_get_core_mask | ( | struct yac_basic_grid * | grid, |
enum yac_location | location ) |
Definition at line 101 of file basic_grid.c.
struct yac_basic_grid_data * yac_basic_grid_get_data | ( | struct yac_basic_grid * | grid | ) |
Definition at line 137 of file basic_grid.c.
size_t yac_basic_grid_get_data_size | ( | struct yac_basic_grid * | grid, |
enum yac_location | location ) |
Definition at line 147 of file basic_grid.c.
size_t yac_basic_grid_get_data_size_f2c | ( | struct yac_basic_grid * | grid, |
int | location ) |
Definition at line 170 of file basic_grid.c.
yac_const_coordinate_pointer yac_basic_grid_get_field_coordinates | ( | struct yac_basic_grid * | grid, |
struct yac_interp_field | field ) |
Definition at line 81 of file basic_grid.c.
struct yac_field_data * yac_basic_grid_get_field_data | ( | struct yac_basic_grid * | grid, |
enum yac_location | location ) |
Definition at line 309 of file basic_grid.c.
int const * yac_basic_grid_get_field_mask | ( | struct yac_basic_grid * | grid, |
struct yac_interp_field | field ) |
Definition at line 118 of file basic_grid.c.
char const * yac_basic_grid_get_name | ( | struct yac_basic_grid * | grid | ) |
Definition at line 128 of file basic_grid.c.
size_t yac_basic_grid_get_named_mask_idx | ( | struct yac_basic_grid * | grid, |
enum yac_location | location, | ||
char const * | mask_name ) |
Definition at line 177 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_new | ( | char const * | name, |
struct yac_basic_grid_data | grid_data ) |
Definition at line 50 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_reg_2d_deg_new | ( | char const * | name, |
size_t | nbr_vertices[2], | ||
int | cyclic[2], | ||
double * | lon_vertices, | ||
double * | lat_vertices ) |
Definition at line 335 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_reg_2d_new | ( | char const * | name, |
size_t | nbr_vertices[2], | ||
int | cyclic[2], | ||
double * | lon_vertices, | ||
double * | lat_vertices ) |
Definition at line 324 of file basic_grid.c.
void yac_basic_grid_to_file_parallel | ( | struct yac_basic_grid * | grid, |
char const * | filename, | ||
MPI_Comm | comm ) |
Definition at line 742 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_deg_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
int * | num_vertices_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_vertex ) |
Definition at line 381 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_edge_deg_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
size_t | nbr_edges, | ||
int * | num_edges_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_edge, | ||
int * | edge_to_vertex ) |
Definition at line 433 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_edge_ll_deg_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
size_t | nbr_edges, | ||
int * | num_edges_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_edge, | ||
int * | edge_to_vertex ) |
Definition at line 459 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_edge_ll_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
size_t | nbr_edges, | ||
int * | num_edges_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_edge, | ||
int * | edge_to_vertex ) |
Definition at line 446 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_edge_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
size_t | nbr_edges, | ||
int * | num_edges_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_edge, | ||
int * | edge_to_vertex ) |
Definition at line 420 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_ll_deg_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
int * | num_vertices_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_vertex ) |
Definition at line 407 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_ll_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
int * | num_vertices_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_vertex ) |
Definition at line 394 of file basic_grid.c.
struct yac_basic_grid * yac_basic_grid_unstruct_new | ( | char const * | name, |
size_t | nbr_vertices, | ||
size_t | nbr_cells, | ||
int * | num_vertices_per_cell, | ||
double * | x_vertices, | ||
double * | y_vertices, | ||
int * | cell_to_vertex ) |
Definition at line 368 of file basic_grid.c.
|
static |
Definition at line 24 of file basic_grid.c.