Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
common.h File Reference
#include "grid/config.h"
#include "grid/boundaries.h"
Include dependency graph for common.h:

Go to the source code of this file.

Data Structures

struct  Grid
 
struct  scalar
 
struct  vector
 
struct  vectorl
 
struct  tensor
 
struct  coord
 
struct  ivec
 
struct  _Attributes
 
struct  timer
 
struct  _coord
 
struct  vec4
 
struct  mat3
 
struct  Adler32Hash
 

Macros

#define pi   3.14159265358979
 
#define HUGE   1e30f
 
#define nodata   HUGE
 
#define swap(type, a, b)   do { type _tmp_ = a; a = b; b = _tmp_; } while(false)
 
#define norm(v)   (sqrt(sq(v.x[]) + sq(v.y[])))
 
#define dv()   (sq(Delta)*cm[])
 
#define none   -1
 
#define define   /* foreach_blockf */
 
#define vector(x)   (*((vector *)&(x)))
 
#define SEPS   0.
 
#define face_gradient_x(a, i)   ((a[i] - a[i-1])/Delta)
 
#define face_gradient_y(a, i)   ((a[0,i] - a[0,i-1])/Delta)
 
#define face_gradient_z(a, i)   ((a[0,0,i] - a[0,0,i-1])/Delta)
 
#define face_value(a, i)   ((a[i] + a[i-1])/2.)
 
#define center_gradient(a)   ((a[1] - a[-1])/(2.*Delta))
 
#define display_control(val, ...)
 
#define avector(x, y, ...)   {x, y}
 

Typedefs

typedef double number
 
typedef struct _Point Point
 
typedef double(* BoundaryFunc) (Point, Point, scalar, bool *)
 
typedef void(* BoundaryStencilFunc) (Point, Point, scalar, void *)
 
typedef void(* free_solver_func) (void)
 

Enumerations

enum  { right , left , top , bottom }
 

Functions

static number max (number a, number b)
 
static number min (number a, number b)
 
static number sq (number x)
 
static number cube (number x)
 
static int sign (number x)
 
static int sign2 (number x)
 
static number clamp (number x, number a, number b)
 
static double noise ()
 
void normalize (coord *n)
 
void origin (double x=0., double y=0., double z=0.)
 
void size (double L)
 
double zero (double s0, double s1, double s2)
 
int list_len (scalar *list)
 
scalarlist_append (scalar *list, scalar s)
 
scalarlist_prepend (scalar *list, scalar s)
 
scalarlist_add (scalar *list, scalar s)
 
int list_lookup (scalar *l, scalar s)
 
scalarlist_copy (scalar *l)
 
scalarlist_concat (scalar *l1, scalar *l2)
 
void list_print (scalar *l, FILE *fp)
 
int vectors_len (vector *list)
 
vectorvectors_append (vector *list, vector v)
 
vectorvectors_add (vector *list, vector v)
 
vectorvectors_copy (vector *l)
 
vectorvectors_from_scalars (scalar *s)
 
int tensors_len (tensor *list)
 
tensortensors_append (tensor *list, tensor t)
 
tensortensors_from_vectors (vector *v)
 
static bool is_vertex_scalar (scalar s)
 
timer timer_start (void)
 
double timer_elapsed (timer t)
 
void matrix_inverse3 (double m[3][3])
 
double smatrix_inverse (const int n, double m[n][n], double pivmin)
 
voidmatrix_new (int n, int=(type *) realloc(p,(size) *sizeof(type)) p=(type *) realloc(p,(size) *sizeof(type)), size_t size)
 
double matrix_inverse (double **m, int n, double pivmin)
 
void matrix_free (void *m)
 
void free_solver_func_add (free_solver_func func)
 
static void free_display_defaults ()
 
void display (const char *commands, bool overwrite=false)
 
static void a32_hash_init (Adler32Hash *hash)
 
static void a32_hash_add (Adler32Hash *hash, const void *data, size_t size)
 
static uint32_t a32_hash (const Adler32Hash *hash)
 

Variables

Gridgrid = NULL
 
double X0 = 0.
 
double Y0 = 0.
 
double Z0 = 0.
 
double L0 = 1. [1]
 
int N = 64
 
struct { 
 
   int   x 
 
   int   y 
 
   int   z 
 
Period = {false, false, false
 
int nboundary = 2*2
 
double_constant = NULL
 
size_t datasize = 0
 
static _Attributes_attribute = NULL
 
ivec Dimensions = {1,1}
 
scalarall = NULL
 
scalarbaseblock = NULL
 
scalar(* init_scalar )(scalar, const char *)
 
scalar(* init_vertex_scalar )(scalar, const char *)
 
vector(* init_vector )(vector, const char *)
 
vector(* init_face_vector )(vector, const char *)
 
tensor(* init_tensor )(tensor, const char *)
 
void(* scalar_clone )(scalar, scalar)
 
const vector zerof [] = {0.,0.,0.}
 
const vector unityf [] = {1.,1.,1.}
 
const scalar unity [] = 1.
 
const scalar zeroc [] = 0.
 
const vector fm [] = {1.[0],1.[0],1.[0]}
 
const scalar cm [] = 1.[0]
 
static Arrayfree_solver_funcs = NULL
 
static chardisplay_defaults = NULL
 

Macro Definition Documentation

◆ avector

#define avector (   x,
  y,
  ... 
)    {x, y}

Definition at line 568 of file common.h.

◆ center_gradient

#define center_gradient (   a)    ((a[1] - a[-1])/(2.*Delta))

Definition at line 407 of file common.h.

◆ define

#define define   /* foreach_blockf */

◆ display_control

#define display_control (   val,
  ... 
)

Definition at line 547 of file common.h.

◆ dv

#define dv ( )    (sq(Delta)*cm[])

Definition at line 92 of file common.h.

◆ face_gradient_x

#define face_gradient_x (   a,
  i 
)    ((a[i] - a[i-1])/Delta)

Definition at line 403 of file common.h.

◆ face_gradient_y

#define face_gradient_y (   a,
  i 
)    ((a[0,i] - a[0,i-1])/Delta)

Definition at line 404 of file common.h.

◆ face_gradient_z

#define face_gradient_z (   a,
  i 
)    ((a[0,0,i] - a[0,0,i-1])/Delta)

Definition at line 405 of file common.h.

◆ face_value

#define face_value (   a,
  i 
)    ((a[i] + a[i-1])/2.)

Definition at line 406 of file common.h.

◆ HUGE

#define HUGE   1e30f

Definition at line 6 of file common.h.

◆ nodata

#define nodata   HUGE

Definition at line 7 of file common.h.

◆ none

#define none   -1

Definition at line 129 of file common.h.

◆ norm

#define norm (   v)    (sqrt(sq(v.x[]) + sq(v.y[])))

Definition at line 91 of file common.h.

◆ pi

#define pi   3.14159265358979

Definition at line 4 of file common.h.

◆ SEPS

#define SEPS   0.

Definition at line 402 of file common.h.

◆ swap

#define swap (   type,
  a,
  b 
)    do { type _tmp_ = a; a = b; b = _tmp_; } while(false)

Definition at line 19 of file common.h.

◆ vector

#define vector (   x)    (*((vector *)&(x)))

Definition at line 354 of file common.h.

Typedef Documentation

◆ BoundaryFunc

typedef double(* BoundaryFunc) (Point, Point, scalar, bool *)

Definition at line 148 of file common.h.

◆ BoundaryStencilFunc

typedef void(* BoundaryStencilFunc) (Point, Point, scalar, void *)

Definition at line 149 of file common.h.

◆ free_solver_func

typedef void(* free_solver_func) (void)

Definition at line 508 of file common.h.

◆ number

Definition at line 3 of file common.h.

◆ Point

Definition at line 133 of file common.h.

Enumeration Type Documentation

◆ anonymous enum

Enumerator
right 
left 
top 
bottom 

Definition at line 123 of file common.h.

Function Documentation

◆ a32_hash()

static uint32_t a32_hash ( const Adler32Hash hash)
inlinestatic

Definition at line 608 of file common.h.

References x.

Referenced by gpu_reduction(), and save().

Here is the caller graph for this function:

◆ a32_hash_add()

static void a32_hash_add ( Adler32Hash hash,
const void data,
size_t  size 
)
inlinestatic

Definition at line 600 of file common.h.

References data, n, size, and x.

Referenced by gpu_reduction(), and save().

Here is the caller graph for this function:

◆ a32_hash_init()

static void a32_hash_init ( Adler32Hash hash)
inlinestatic

Definition at line 594 of file common.h.

References Adler32Hash::s, and x.

Referenced by gpu_reduction(), and save().

Here is the caller graph for this function:

◆ clamp()

static number clamp ( number  x,
number  a,
number  b 
)
inlinestatic

Definition at line 15 of file common.h.

References b, and x.

Referenced by average_pressure(), average_temperature(), balance(), bulk_compressibility(), curvature(), display_control_update(), event_acceleration(), event_end_timestep(), event_tracer_advection(), event_vof(), foreach_segment(), line_alpha(), line_area(), line_length_center(), sound_speed(), and thermal_expansion().

Here is the caller graph for this function:

◆ cube()

static number cube ( number  x)
inlinestatic

Definition at line 12 of file common.h.

References x.

Referenced by area_integral(), distance_curvature(), event_stability(), line_center(), poolsize(), relax_GN(), and residual_GN().

Here is the caller graph for this function:

◆ display()

void display ( const char commands,
bool  overwrite = false 
)

Definition at line 527 of file common.h.

References display_defaults, free(), free_display_defaults(), free_solver_func_add(), realloc(), strdup(), and x.

Referenced by event_cleanup(), event_defaults(), and main().

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

◆ free_display_defaults()

static void free_display_defaults ( )
static

Definition at line 523 of file common.h.

References display_defaults, and free().

Referenced by display().

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

◆ free_solver_func_add()

void free_solver_func_add ( free_solver_func  func)

Definition at line 512 of file common.h.

References array_append(), array_new(), free_solver_funcs, and func.

Referenced by display(), display_init(), get_view(), and open_image().

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

◆ is_vertex_scalar()

static bool is_vertex_scalar ( scalar  s)
inlinestatic

Definition at line 334 of file common.h.

References dimension, s, and x.

Referenced by box_boundary_level(), and periodic_boundary().

Here is the caller graph for this function:

◆ list_add()

scalar * list_add ( scalar list,
scalar  s 
)

Definition at line 208 of file common.h.

References scalar::i, list, list_append(), s, t, and x.

Referenced by adapt_wavelet(), boundary_internal(), box_boundary_level(), box_boundary_level(), event_acceleration(), event_defaults(), event_vof(), for(), for(), multigrid_restriction(), periodic_boundary_level_x(), rcv_pid_sync(), and tree_boundary_level().

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

◆ list_append()

scalar * list_append ( scalar list,
scalar  s 
)

Definition at line 188 of file common.h.

References scalar::i, list, list_len(), realloc(), and s.

Referenced by advection(), boundary_flux(), box_boundary_level(), check_stencil(), event_defaults(), event_vof(), if(), input_gfs(), list_add(), list_add_depend(), list_add_depends(), list_clone(), list_concat(), list_copy(), no_coalescence(), restore_mpi(), and vof_advection().

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

◆ list_concat()

scalar * list_concat ( scalar l1,
scalar l2 
)

Definition at line 234 of file common.h.

References list_append(), list_copy(), s, and x.

Referenced by adapt_wavelet(), event_defaults(), event_metric(), event_vof(), and restore_mpi().

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

◆ list_copy()

scalar * list_copy ( scalar l)

Definition at line 225 of file common.h.

References l, list, list_append(), s, and x.

Referenced by adapt_wavelet(), cartesian_scalar_clone(), event_defaults(), event_defaults0(), event_metric(), list_concat(), no_coalescence(), and update_conservation().

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

◆ list_len()

int list_len ( scalar list)

Definition at line 180 of file common.h.

References list, and x.

Referenced by advection(), event_defaults(), gradients(), list_append(), list_prepend(), msolve(), no_coalescence(), output_gauges(), restore_mpi(), update_conservation(), and vertical_remapping().

Here is the caller graph for this function:

◆ list_lookup()

int list_lookup ( scalar l,
scalar  s 
)

Definition at line 216 of file common.h.

References scalar::i, l, s, and x.

Referenced by check_stencil().

Here is the caller graph for this function:

◆ list_prepend()

scalar * list_prepend ( scalar list,
scalar  s 
)

Definition at line 197 of file common.h.

References scalar::i, i, list, list_len(), realloc(), and s.

Referenced by gpu_boundary_level().

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

◆ list_print()

void list_print ( scalar l,
FILE fp 
)

Definition at line 242 of file common.h.

References fp, i, s, and x.

◆ matrix_free()

void matrix_free ( void m)

Definition at line 500 of file common.h.

References free(), and m().

Referenced by check_snd_rcv_matrix(), and event_cleanup().

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

◆ matrix_inverse()

double matrix_inverse ( double **  m,
int  n,
double  pivmin 
)

Definition at line 495 of file common.h.

References m(), n, smatrix_inverse(), and x.

Here is the call graph for this function:

◆ matrix_inverse3()

void matrix_inverse3 ( double  m[3][3])

Definition at line 411 of file common.h.

References assert, m(), and x.

Here is the call graph for this function:

◆ matrix_new()

void * matrix_new ( int  n,
int  = (type *)realloc(p, (size)*sizeof(type)) p = (type *) realloc (p, (size)*sizeof(type)),
size_t  size 
)

Definition at line 486 of file common.h.

References a, i, m(), n, p, qmalloc, and size.

Referenced by check_snd_rcv_matrix().

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

◆ max()

static number max ( number  a,
number  b 
)
inlinestatic

Definition at line 9 of file common.h.

References a, and b.

◆ min()

static number min ( number  a,
number  b 
)
inlinestatic

Definition at line 10 of file common.h.

References a, and b.

◆ noise()

static double noise ( )
inlinestatic

Definition at line 23 of file common.h.

References x.

Referenced by randomap().

Here is the caller graph for this function:

◆ normalize()

void normalize ( coord n)

Definition at line 98 of file common.h.

References dimension, n, sq(), and x.

Referenced by embed_flux(), embed_geometry(), event_properties(), parabola_fit_init(), and segment_flux().

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

◆ origin()

void origin ( double  x = 0.,
double  y = 0.,
double  z = 0. 
)

Definition at line 108 of file common.h.

References x, X0, y, Y0, z, and Z0.

◆ sign()

static int sign ( number  x)
inlinestatic

Definition at line 13 of file common.h.

References x.

Referenced by advect(), bflux(), curvature(), DistancePointEllipse(), embed_interpolate(), event_acceleration(), event_face_fields(), for(), height_curvature(), interpolate_linear(), line_center(), PointSegmentOrientation(), PointTriangleOrientation(), prediction(), refine_distance(), refine_face_x_axi(), tracer_fluxes(), and update_distance().

Here is the caller graph for this function:

◆ sign2()

static int sign2 ( number  x)
inlinestatic

Definition at line 14 of file common.h.

References x.

Referenced by dphidt(), and givens().

Here is the caller graph for this function:

◆ size()

void size ( double  L)

Definition at line 112 of file common.h.

References L0.

◆ smatrix_inverse()

double smatrix_inverse ( const int  n,
double  m[n][n],
double  pivmin 
)

Definition at line 434 of file common.h.

References HUGE, i, j, k, l, m(), n, swap, and x.

Referenced by matrix_inverse(), parabola_fit_solve(), and right_value().

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

◆ sq()

◆ tensors_append()

tensor * tensors_append ( tensor list,
tensor  t 
)

Definition at line 311 of file common.h.

References list, realloc(), t, and tensors_len().

Referenced by tensors_from_vectors().

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

◆ tensors_from_vectors()

tensor * tensors_from_vectors ( vector v)

Definition at line 320 of file common.h.

References assert, dimension, list, t, tensors_append(), v, and x.

Referenced by update_conservation().

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

◆ tensors_len()

int tensors_len ( tensor list)

Definition at line 303 of file common.h.

References list, nt, and x.

Referenced by tensors_append().

Here is the caller graph for this function:

◆ timer_elapsed()

double timer_elapsed ( timer  t)

Definition at line 379 of file common.h.

References t, and x.

Referenced by event__progress(), event_refresh_display(), timer_timing(), and update_perf().

Here is the caller graph for this function:

◆ timer_start()

timer timer_start ( void  )

Definition at line 368 of file common.h.

References timer::c, t, and x.

Referenced by event__progress(), event_refresh_display(), run(), and run().

Here is the caller graph for this function:

◆ vectors_add()

vector * vectors_add ( vector list,
vector  v 
)

Definition at line 267 of file common.h.

References dimension, scalar::i, list, v, vectors_append(), w, vector::x, and x.

Referenced by rcv_pid_sync(), and tree_boundary_level().

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

◆ vectors_append()

vector * vectors_append ( vector list,
vector  v 
)

Definition at line 258 of file common.h.

References list, realloc(), v, vector, and vectors_len().

Referenced by event_defaults(), ohmic_flux(), update_conservation(), vectors_add(), vectors_copy(), and vectors_from_scalars().

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

◆ vectors_copy()

vector * vectors_copy ( vector l)

Definition at line 280 of file common.h.

References l, list, v, vectors_append(), and x.

Referenced by update_conservation().

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

◆ vectors_from_scalars()

vector * vectors_from_scalars ( scalar s)

Definition at line 289 of file common.h.

References assert, dimension, scalar::i, list, s, v, vectors_append(), and x.

Referenced by update_conservation().

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

◆ vectors_len()

int vectors_len ( vector list)

Definition at line 250 of file common.h.

References list, and x.

Referenced by gradients(), and vectors_append().

Here is the caller graph for this function:

◆ zero()

double zero ( double  s0,
double  s1,
double  s2 
)

Definition at line 116 of file common.h.

Referenced by advection(), run(), update_conservation(), and update_saint_venant().

Here is the caller graph for this function:

Variable Documentation

◆ _attribute

◆ _constant

double* _constant = NULL

Definition at line 131 of file common.h.

Referenced by free_solver(), and init_const_scalar().

◆ all

◆ baseblock

scalar* baseblock = NULL

Definition at line 343 of file common.h.

Referenced by delete(), foreach_stencil(), foreach_stencil_generic(), free_solver(), and init_solver().

◆ cm

◆ datasize

◆ Dimensions

ivec Dimensions = {1,1}

◆ display_defaults

char* display_defaults = NULL
static

Definition at line 521 of file common.h.

Referenced by display(), display_onopen(), and free_display_defaults().

◆ fm

◆ free_solver_funcs

Array* free_solver_funcs = NULL
static

Definition at line 510 of file common.h.

Referenced by free_solver(), and free_solver_func_add().

◆ grid

◆ init_face_vector

vector(* init_face_vector) (vector, const char *) ( vector  ,
const char  
)

Definition at line 350 of file common.h.

Referenced by cartesian_methods(), check_stencil(), multigrid_methods(), and tree_methods().

◆ init_scalar

scalar(* init_scalar) (scalar, const char *) ( scalar  ,
const char  
)

Definition at line 347 of file common.h.

Referenced by cartesian_methods(), multigrid_methods(), and tree_methods().

◆ init_tensor

tensor(* init_tensor) (tensor, const char *) ( tensor  ,
const char  
)

◆ init_vector

vector(* init_vector) (vector, const char *) ( vector  ,
const char  
)

Definition at line 349 of file common.h.

Referenced by cartesian_methods(), multigrid_methods(), and tree_methods().

◆ init_vertex_scalar

scalar(* init_vertex_scalar) (scalar, const char *) ( scalar  ,
const char  
)

Definition at line 348 of file common.h.

Referenced by cartesian_methods(), check_stencil(), multigrid_methods(), and tree_methods().

◆ L0

◆ N

◆ nboundary

◆ [struct]

◆ scalar_clone

void(* scalar_clone) (scalar, scalar) ( scalar  ,
scalar   
)

◆ unity

const scalar unity[] = 1.

Definition at line 391 of file common.h.

Referenced by event_defaults(), and event_projection().

◆ unityf

const vector unityf[] = {1.,1.,1.}

Definition at line 390 of file common.h.

Referenced by event_defaults().

◆ x

o x = height(h.x[])*Delta

Definition at line 76 of file common.h.

Referenced by _box_json(), _cells_json(), _draw_string_json(), _draw_vof_json(), _isoline_json(), _isosurface_json(), _labels_json(), _lines_json(), _radiation(), _squares_json(), _travelling_json(), _vectors_json(), _view_json(), a32_hash(), a32_hash_add(), a32_hash_init(), adapt_wavelet(), add_boundary(), add_cexpr(), advance_generic(), advance_saint_venant(), advect(), airsea_airsea_fluxes(), airsea_albedo_cogley(), airsea_albedo_payne(), airsea_albedo_water(), airsea_do_air_sea(), airsea_fairall(), airsea_flux_from_meteo(), airsea_get_global(), airsea_humidity(), airsea_init_air_sea(), airsea_kondo(), airsea_psi(), airsea_set_sst(), airsea_set_ssuv(), airsea_solar_zenith_angle(), airsea_variables_get_global(), alloc_children(), allocated(), alpha_refine(), append_pid(), append_tag(), apply_bc(), area(), area_integral(), area_z2(), args(), array_append(), array_new(), array_remove(), assemble_node(), atobool(), atoi_check(), average_pressure(), average_temperature(), balance(), balanced_pid(), barycenter(), bc_grd(), bflux(), bilinear(), biquadratic(), blue_white_red(), boundary_flux(), boundary_internal(), boundary_stencil(), bounding_box(), box_boundary_level(), box_boundary_level(), box_boundary_level(), box_boundary_level_normal(), box_boundary_level_normal(), box_boundary_level_tangent(), box_matrix(), bubbles_are_close(), buffer_new(), bulk_compressibility(), bview_destroy(), bview_draw(), bview_interface_json(), bview_new(), cache_append(), cache_level_append(), cache_level_init(), cache_level_shrink(), cartesian_boundary_face(), cartesian_debug(), cartesian_init_face_vector(), cartesian_init_scalar(), cartesian_init_tensor(), cartesian_init_vector(), cartesian_init_vertex_scalar(), cartesian_scalar_clone(), catch_fpe(), caught_abort(), caught_fpe(), caught_segfault(), cell(), centered_gradient(), cfilter(), change(), check_32_bits(), check_depth(), check_flags(), check_snd_rcv_matrix(), check_stencil(), check_tag(), check_two_one(), clamp(), close_gl(), close_image(), coarsen_cell(), coarsen_cell_recursive(), coarsen_distance(), coeffs1(), coeffs2(), colorized(), colormap_color(), column_propagation(), comment(), compdir(), compdir(), compile_expression(), compose_image(), constant_NNT(), cool_warm(), correct_qz(), correction(), cpu_reduction(), createShaderFromString(), cube(), cvmix_1d_print(), cvmix_allocate_2d(), de(), debug_mpi(), debug_plot(), default_stencil(), delete(), delete_distance(), delete_terrain(), diagnostics_do_diagnostics(), diagnostics_get_global(), diagnostics_init_diagnostics(), diagonalization_2D(), dimensions(), dirichlet(), dirichlet_gradient(), display(), display_add(), display_command(), display_control_internal(), display_control_json(), display_control_lookup(), display_control_update(), display_destroy(), display_display(), display_init(), display_onmessage(), display_onopen(), display_poll(), display_remove(), display_send(), display_update(), display_url(), distance(), distance_curvature(), DistancePointEllipse(), dname(), dopen(), dphidt(), draw(), draw_lines(), dtheta(), dtnext(), echo(), echo_c(), eigenvalues(), embed_area_center(), embed_flux(), embed_force(), embed_fraction_refine(), embed_gradient(), embed_interpolate(), embed_vorticity(), end_event_do(), energy(), eqstate_eos_alpha(), eqstate_eos_beta(), eqstate_eqstate1(), eqstate_get_global(), eqstate_init_eqstate(), eqstate_rho_feistel(), eqstate_unesco(), equilibrium_tide(), equilibrium_tide_constituents(), eta_prolongation(), eta_restriction(), evaluate_expression(), event(), event__progress(), event_acceleration(), event_adapt(), event_advance(), event_advection_term(), event_cleanup(), event_cond(), event_defaults(), event_defaults0(), event_do(), event_end_timestep(), event_error(), event_face_fields(), event_finished(), event_init(), event_metric(), event_perf_plot(), event_perfs(), event_pressure(), event_properties(), event_refresh_display(), event_register(), event_runtime(), event_slave(), event_slave_end(), event_stability(), event_tracer_advection(), event_tracer_diffusion(), event_update_eta(), event_velocity(), event_viscous_term(), event_vof(), events(), exiting(), extension(), face_average(), face_fraction(), facet_normal(), facets(), falsepos(), fault(), fclone(), fE_refine(), fhdl(), fields_stats(), find_comma(), find_coreGL(), find_extensionsGL(), flag_border_cells(), flux(), fopen_prefix(), for(), for(), for(), for(), for(), for(), for(), for(), foreach(), foreach_boundary_dir(), foreach_cell_all(), foreach_cell_post(), foreach_cell_post_all(), foreach_cell_post_root(), foreach_cell_restore(), foreach_child(), foreach_coarse_level_stencil(), foreach_face_generic(), foreach_face_stencil(), foreach_halo_prolongation(), foreach_level_or_leaf_stencil(), foreach_level_stencil(), foreach_level_stencil(), foreach_mem(), foreach_neighbor(), foreach_point_stencil(), foreach_region_stencil(), foreach_segment(), foreach_slice_x(), foreach_slice_y(), foreach_stencil(), foreach_stencil(), foreach_stencil_generic(), foreach_tree(), foreach_vertex_stencil(), foreach_vertex_stencil(), foreach_visible(), fraction(), fraction_refine(), fractions_cleanup(), free_boundaries(), free_exts(), free_grid(), free_solver(), fwrite_check(), gdb(), generic_limiter(), geometric_beta(), geostrophic_velocity(), get_cexpr(), get_double(), get_exts(), get_proc(), getProgramLogInfo(), getput(), getput(), GetRoot(), getShaderLogInfo(), givens(), gladLoadGL(), gladLoadGLLoader(), GLDebugMessageCallback(), glvertex2d(), glvertex3d(), glvertex_normal3d(), gotm_deprecated_output(), gotm_init_gotm(), gotm_read_restart(), gotm_step(), gpu_boundary_level(), gpu_check_error(), gpu_errors(), gpu_errors_init_buffer(), gpu_errors_scan_buffer(), gpu_errors_scan_bytes(), gpu_errors_scan_string(), gpu_errors_switch_to_buffer(), gpu_errorsalloc(), gpu_errorsensure_buffer_stack(), gpu_errorslex(), gpu_errorslex_destroy(), gpu_errorspop_buffer_state(), gpu_errorspush_buffer_state(), gpu_errorsrestart(), gpu_errorsset_debug(), gpu_errorsset_in(), gpu_errorsset_lineno(), gpu_errorsset_out(), gpu_free_solver(), gpu_reduction(), gradients(), gray(), h_relax(), h_residual(), half_column(), halo_face(), has_ext(), has_local_child(), has_local_children(), heap_read(), heap_write(), heavier_than(), height(), heights(), hllc(), horizontal_diffusion(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), if(), implicit_horizontal_diffusion(), inc_init_buffer(), inc_scan_buffer(), inc_scan_bytes(), inc_scan_string(), inc_switch_to_buffer(), incalloc(), incensure_buffer_stack(), inclex(), inclex_destroy(), include(), includes(), includes(), includes_point(), incpop_buffer_state(), incpush_buffer_state(), increment_neighbors(), increstart(), incset_debug(), incset_in(), incset_lineno(), incset_out(), init_const_scalar(), init_const_vector(), init_event(), init_grid(), init_solver(), input(), input(), input0(), input_do_input(), input_get_observed_profiles(), input_get_observed_scalars(), input_gfs(), input_initialize_profile_file(), input_initialize_timeseries_file(), input_netcdf_handle_err(), input_netcdf_read_restart_data(), input_pgm(), input_read_obs(), input_read_profiles(), input_register_input_0d(), input_register_input_1d(), input_stl(), input_xy(), interface_area(), internal_energy(), interp(), interpolate(), interpolate_array(), interpolate_linear(), intersection(), intersection_area(), intersects(), intersects_point(), inverse_wavelet(), is_animation(), is_code(), is_face_x(), is_face_x(), is_face_y(), is_face_y(), is_local_prolongation(), is_newpid(), is_refined_check(), is_root(), is_vertex_scalar(), jet(), kdt_create(), kdt_destroy(), kdt_heap_create(), kdt_heap_flush(), kdt_heap_free(), kdt_heap_resize(), kdt_heap_rewind(), kdt_heap_sort(), kdt_heap_split(), kdt_includes(), kdt_init(), kdt_intersects(), kdt_new(), kdt_open(), kdt_query(), kdt_query_sum(), kdt_rect_write(), kdt_sum_core_init(), kdt_tmpfile(), kdt_write(), key_callback(), kinetic(), kpp_bottom_layer(), kpp_do_kpp(), kpp_get_global(), kpp_init_kpp(), kpp_interior(), kpp_surface_layer(), kpp_wscale(), kurganov(), lambda2(), last_events(), length(), levelset_to_vof(), lfopen(), line_alpha(), line_area(), line_center(), line_length_center(), list_add(), list_add_depend(), list_add_depends(), list_clone(), list_concat(), list_copy(), list_len(), list_lenb(), list_lookup(), list_print(), load(), loadNormalShader(), locals_pids(), locate(), locate(), lookup_field(), lookup_tag(), lookup_tag(), lookup_vector(), main(), main(), mapped_position(), masked_average(), matrix(), matrix1(), matrix_inverse(), matrix_inverse3(), maxruntime(), meanflow_buoyancy(), meanflow_convectiveadjustment(), meanflow_coriolis(), meanflow_extpressure(), meanflow_friction(), meanflow_get_global(), meanflow_init_meanflow(), meanflow_intpressure(), meanflow_post_init_meanflow(), meanflow_salinity(), meanflow_shear(), meanflow_stratification(), meanflow_temperature(), meanflow_uequation(), meanflow_updategrid(), meanflow_vequation(), meanflow_wequation(), mem_allocated(), mem_allocated(), mem_assign(), mem_destroy(), mem_free(), mem_free1d(), mempool_alloc(), mempool_alloc0(), mempool_free(), memrange_alloc(), memrange_free(), merge(), merge(), mg_cycle(), mg_solve(), minmod(), minmod2(), minmod3(), minmodremap(), momentum_refine(), momentum_restriction(), mpi_boundary_coarsen(), mpi_boundary_refine(), mpi_boundary_update(), mpi_boundary_update_buffers(), mpi_partitioning(), mpi_recv_check(), mpi_waitany(), msolve(), mtridiagonal_tridiagonal(), multigrid_debug(), multigrid_init_face_vector(), multigrid_init_tensor(), multigrid_restriction(), multigrid_setup_vector(), mycs(), mystrtok(), neighborhood(), neumann(), new_bid(), new_const_scalar(), new_const_vector(), new_layer(), next_char(), next_error(), next_string(), no_coalescence(), no_data(), noise(), normal_neighbor(), normalize(), normf(), observations_analytical_profile(), observations_const_nns(), observations_const_nnt(), observations_get_all_obs(), observations_get_global(), observations_init_observations(), ohmic_flux(), okada(), okada_rectangular_source(), OMP_PARALLEL(), OMP_PARALLEL(), open_ext(), open_gl(), open_image(), open_image_cleanup(), open_image_lookup(), openpath(), orientation(), origin(), output_fluxes(), output_gauges(), output_tree(), output_vtk(), parabola_fit_add(), parabola_fit_curvature(), parabola_fit_init(), parabola_fit_solve(), parse_intel(), parse_nvidia(), parse_params(), pcalloc(), periodic(), periodic_boundary(), periodic_boundary_level_x(), pfree(), planeBoxOverlap(), pmalloc(), pmaxsort(), pmfunc_alloc(), pmfunc_free(), pmfunc_index(), pmfunc_trace(), pmfuncs_free(), pmuntrace(), POINT_VARIABLES(), PointSegmentDistance(), PointSegmentOrientation(), PointTriangleDistance(), PointTriangleOrientation(), poisson_thermal(), post_init_buffer(), post_scan_buffer(), post_scan_bytes(), post_scan_string(), post_switch_to_buffer(), postalloc(), postensure_buffer_stack(), postlex(), postlex_destroy(), postpop_buffer_state(), postproc(), postpush_buffer_state(), postrestart(), postset_debug(), postset_in(), postset_lineno(), postset_out(), ppm_fallback(), prealloc(), prediction(), prepend_path(), printWorkGroupsCapabilities(), process_line(), progress(), progress(), project(), prolongation_elevation(), prolongation_vertex(), psort(), pstrdup(), ptotalsort(), push(), push_once(), put(), py_action(), py_end(), py_inc(), py_register_event(), py_start(), qpclose(), qpclose_all(), qpopen(), quadtree(), query(), query_sum(), randomap(), rcv_append(), rcv_free_buf(), rcv_pid_append_pids(), rcv_pid_pointer(), rcv_pid_print(), rcv_pid_receive(), rcv_pid_row(), rcv_pid_send(), rcv_pid_sync(), rcv_pid_write(), rcv_print(), read_file_into_buffer(), realloc_scalar(), realloc_scalar_gpu(), receive_tree(), reconstruction(), rectangle_fraction(), rectangular_source(), recursive(), redraw(), refine(), refine_bilinear(), refine_biquadratic(), refine_cell(), refine_cm_lonlat(), refine_cm_spherisym(), refine_distance(), refine_elevation(), refine_embed_linear(), refine_eta(), refine_eta(), refine_face(), refine_face_solenoidal(), refine_face_x_spherisym(), refine_face_y_lonlat(), refine_injection(), refine_layered_elevation(), refine_level(), refine_linear_single(), refine_reset(), register_all_variables_do_register_all_variables(), register_all_variables_register_aaa_variables(), register_all_variables_register_airsea_variables(), register_all_variables_register_coordinate_variables(), register_all_variables_register_diagnostic_variables(), register_all_variables_register_meanflow_variables(), register_all_variables_register_observation_variables(), register_all_variables_register_stream_variables(), relative(), relax(), relax_diffusion(), relax_GN(), relax_hydro(), relax_nh(), relax_nh(), relax_nh1(), relax_thermal(), relax_viscosity(), remap_c(), remap_central(), remap_neumann(), remap_robin(), remove_blanks(), remove_droplets(), replace_(), reset(), residual(), residual_diffusion(), residual_GN(), residual_hydro(), residual_nh(), residual_nh(), residual_nh2(), residual_nh3(), residual_thermal(), residual_viscosity(), restore_mpi(), restriction_average(), restriction_elevation(), restriction_embed_linear(), restriction_tag(), restriction_volume_average(), riemann(), right_value(), RobustLength(), root_pids(), RPE(), run(), runge_kutta(), save(), scalar_depends_from(), scalar_is_dirty(), segBoxOverlap(), segment_flux(), send_tree(), shortpath(), sign(), sign2(), singleslash(), slave_interpolate(), smatrix_inverse(), snd_rcv_free(), snd_rcv_init(), solid(), solve(), solve_hessenberg(), sort_x(), sort_y(), sound_speed(), split(), sq(), statsf(), stencil_val(), stencil_val_a(), str_append(), strcmps(), strdup(), strip_path(), stripname(), stripslash(), strlencheck(), subtree_size(), sum_add_sum(), superbee(), sweby(), tag(), tensors_from_vectors(), tensors_len(), terrain(), thermal_expansion(), time_calendar_date(), time_get_global(), time_init_time(), time_julian_day(), time_read_time_string(), time_sunrise_sunset(), time_time_diff(), time_write_time_string(), timer_elapsed(), timer_print(), timer_start(), timer_timing(), timestep(), tracer_is_close(), translate(), tree_boundary_level(), tree_check(), tree_init_face_vector(), tree_init_tensor(), tree_setup_vector(), treex(), triBoxOverlap(), turbulence_algebraiclength(), turbulence_alpha_mnb(), turbulence_cmue_a(), turbulence_cmue_b(), turbulence_cmue_c(), turbulence_cmue_d(), turbulence_cmue_ma(), turbulence_cmue_rf(), turbulence_cmue_sg(), turbulence_dissipationeq(), turbulence_do_epsb(), turbulence_do_kb(), turbulence_do_lengthscale(), turbulence_do_tke(), turbulence_do_turbulence(), turbulence_epsbalgebraic(), turbulence_epsilon_bc(), turbulence_fk_craig(), turbulence_genericeq(), turbulence_get_global(), turbulence_init_scnd(), turbulence_init_turbulence(), turbulence_internal_wave(), turbulence_ispralength(), turbulence_k_bc(), turbulence_kbalgebraic(), turbulence_kbeq(), turbulence_kolpran(), turbulence_lengthscaleeq(), turbulence_post_init_turbulence(), turbulence_potentialml(), turbulence_production(), turbulence_psi_bc(), turbulence_q2l_bc(), turbulence_q2over2_bc(), turbulence_q2over2eq(), turbulence_r_ratio(), turbulence_stabilityfunctions(), turbulence_tkealgebraic(), turbulence_tkeeq(), turbulence_variances(), unrefine(), update(), update_bounds(), update_cache_f(), update_conservation(), update_distance(), update_green_naghdi(), update_saint_venant(), update_sum(), update_tracer(), util_adv_center(), util_convert_fluxes(), util_diff_center(), util_diff_face(), util_findp_bisection(), util_lagrange(), val(), VARIABLES(), vectors_add(), vectors_copy(), vectors_from_scalars(), vectors_len(), vectors_lenb(), vertex_buffer_free(), vertex_buffer_glBegin(), vertex_buffer_glColor3f(), vertex_buffer_glNormal3d(), vertex_buffer_glVertex2d(), vertex_buffer_glVertex3d(), vertical_diffusion(), vertical_fluxes(), vertical_remapping(), vertical_velocity(), vertical_viscosity(), viscosity(), viscosity_explicit(), vof_advection(), vof_concentration_refine(), volumez(), vorticity(), wait_tree(), wavelet(), which(), write_stencil_index(), writepath(), ws_send_array(), youngs_normal(), yy_fatal_error(), yy_fatal_error(), yy_fatal_error(), yy_get_next_buffer(), yy_get_next_buffer(), yy_get_next_buffer(), yy_get_previous_state(), yy_get_previous_state(), yy_get_previous_state(), yy_init_globals(), yy_init_globals(), yy_init_globals(), yy_try_NUL_trans(), yy_try_NUL_trans(), yy_try_NUL_trans(), yyerror(), yyunput(), yyunput(), yyunput(), z_indexing(), zarea(), zareaval(), and zvolume().

◆ X0

◆ y

◆ Y0

◆ z

◆ Z0

double Z0 = 0.

Definition at line 34 of file common.h.

Referenced by locate(), locate(), origin(), and VARIABLES().

◆ zeroc

const scalar zeroc[] = 0.

Definition at line 392 of file common.h.

Referenced by event_viscous_term().

◆ zerof

const vector zerof[] = {0.,0.,0.}

Definition at line 389 of file common.h.

Referenced by event_acceleration().