YetAnotherCoupler 3.5.2
Loading...
Searching...
No Matches
generate_cubed_sphere.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "generate_cubed_sphere.h"
#include "generate_reg2d.h"
#include "geometry.h"
#include "ppm/ppm_xfuncs.h"
#include "io_utils.h"
#include <netcdf.h>
Include dependency graph for generate_cubed_sphere.c:

Go to the source code of this file.

Functions

void yac_generate_cubed_sphere_grid_information (unsigned n, unsigned *num_cells, unsigned *num_vertices, double **x_vertices, double **y_vertices, double **z_vertices, unsigned **cell_to_vertex, unsigned **face_id)
 
struct yac_basic_grid_data yac_generate_cubed_sphere_grid (unsigned n)
 
struct yac_basic_gridyac_generate_cubed_sphere_basic_grid (char const *name, size_t n)
 
static void decompose_domain_simple (unsigned n, int size, int *cell_owner)
 
static void decompose_domain_2d (unsigned n, int size, int *cell_owner)
 
static void decompose_domain (unsigned n, int size, int *cell_owner)
 
void yac_generate_part_cube_grid_information (unsigned n, unsigned *nbr_vertices, unsigned *nbr_cells, unsigned **num_vertices_per_cell, unsigned **cell_to_vertex, double **x_vertices, double **y_vertices, double **x_cells, double **y_cells, int **global_cell_id, int **cell_core_mask, int **global_corner_id, int **corner_core_mask, int rank, int size)
 
void yac_write_cubed_sphere_grid (unsigned n, char const *filename)
 

Function Documentation

◆ decompose_domain()

static void decompose_domain ( unsigned n,
int size,
int * cell_owner )
static

Definition at line 558 of file generate_cubed_sphere.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decompose_domain_2d()

static void decompose_domain_2d ( unsigned n,
int size,
int * cell_owner )
static

Definition at line 521 of file generate_cubed_sphere.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decompose_domain_simple()

static void decompose_domain_simple ( unsigned n,
int size,
int * cell_owner )
static

Definition at line 513 of file generate_cubed_sphere.c.

Here is the caller graph for this function:

◆ yac_generate_cubed_sphere_basic_grid()

struct yac_basic_grid * yac_generate_cubed_sphere_basic_grid ( char const * name,
size_t n )

Definition at line 504 of file generate_cubed_sphere.c.

Here is the call graph for this function:

◆ yac_generate_cubed_sphere_grid()

struct yac_basic_grid_data yac_generate_cubed_sphere_grid ( unsigned n)
Examples
test_generate_cubed_sphere.c.

Definition at line 458 of file generate_cubed_sphere.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_generate_cubed_sphere_grid_information()

void yac_generate_cubed_sphere_grid_information ( unsigned n,
unsigned * num_cells,
unsigned * num_vertices,
double ** x_vertices,
double ** y_vertices,
double ** z_vertices,
unsigned ** cell_to_vertex,
unsigned ** face_id )
Examples
test_vtk_output.c.

Definition at line 21 of file generate_cubed_sphere.c.

Here is the caller graph for this function:

◆ yac_generate_part_cube_grid_information()

void yac_generate_part_cube_grid_information ( unsigned n,
unsigned * nbr_vertices,
unsigned * nbr_cells,
unsigned ** num_vertices_per_cell,
unsigned ** cell_to_vertex,
double ** x_vertices,
double ** y_vertices,
double ** x_cells,
double ** y_cells,
int ** global_cell_id,
int ** cell_core_mask,
int ** global_corner_id,
int ** corner_core_mask,
int rank,
int size )
Examples
test_dummy_coupling2_c.c, test_dummy_coupling3_c.c, test_generate_cubed_sphere.c, test_restart2.c, and test_restart_c.c.

Definition at line 567 of file generate_cubed_sphere.c.

Here is the call graph for this function:

◆ yac_write_cubed_sphere_grid()

void yac_write_cubed_sphere_grid ( unsigned n,
char const * filename )
Examples
test_generate_cubed_sphere.c.

Definition at line 757 of file generate_cubed_sphere.c.

Here is the call graph for this function: