YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_basic_grid.c File Reference
#include <string.h>
#include "tests.h"
#include "test_common.h"
#include "grids/basic_grid.h"
#include "geometry.h"
Include dependency graph for test_basic_grid.c:

Go to the source code of this file.

Enumerations

enum  { NUM_LOCACTIONS = sizeof(locations) / sizeof(locations[0]) }
 

Functions

size_t yac_basic_grid_get_data_size_f2c (struct yac_basic_grid *grid, int location)
 
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_f2c (struct yac_basic_grid *grid, int location, double *coordinates, size_t count)
 
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_f2c (struct yac_basic_grid *grid, int location, int const *mask, size_t count, char const *mask_name)
 

Variables

static enum yac_location locations []
 

Detailed Description

Test
Test basic grids.

Definition in file test_basic_grid.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NUM_LOCACTIONS 

Definition at line 19 of file test_basic_grid.c.

Function Documentation

◆ yac_basic_grid_add_coordinates_f2c()

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.

Here is the call graph for this function:

◆ yac_basic_grid_add_coordinates_nocpy_f2c()

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.

Here is the call graph for this function:

◆ yac_basic_grid_add_mask_f2c()

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.

Here is the call graph for this function:

◆ yac_basic_grid_add_mask_nocpy_f2c()

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.

Here is the call graph for this function:

◆ yac_basic_grid_get_data_size_f2c()

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.

Here is the call graph for this function:

Variable Documentation

◆ locations

enum yac_location locations[]
static
Initial value:
=
@ YAC_LOC_CORNER
Definition location.h:15
@ YAC_LOC_EDGE
Definition location.h:16
@ YAC_LOC_CELL
Definition location.h:14

Definition at line 17 of file test_basic_grid.c.