Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
config.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "array.h"
#include "../ast/symbols.h"
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LINENO   __LINE__
 
#define assert(a)   if (!(a)) qassert (__FILE__, LINENO, #a)
 
#define p   = (type *)realloc(p, (size)*sizeof(type)) p = (type *) realloc (p, (size)*sizeof(type))
 
#define qmalloc(size, type)   ((type *) malloc ((size)*sizeof(type)))
 
#define qcalloc(size, type)   ((type *) calloc (size, sizeof(type)))
 
#define popen   qpopen
 
#define pclose   qpclose
 
#define show_dimension(...)   show_dimension_internal (__VA_ARGS__ + 10293847566574839201.)
 Macros overloaded by the interpreter.
 

Enumerations

enum  typedef_kind_t {
  sym_SCALAR = sym_root + 1 , sym_VECTOR , sym_TENSOR , sym_COORD ,
  sym__COORD , sym_VEC4 , sym_IVEC
}
 

Functions

define unmap (x, y) @define trash(x) auto macro2 BEGIN_FOREACH()
 
define macro OMP_SERIAL ()
 
define _NVARMAX define is_constant() v ((v).i >=_NVARMAX) @define const ant(v)(is_constant(v) ? _constant[(v).i - _NVARMAX]
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define pmalloc (s, func, file, line) malloc(s) @ define pcalloc(n
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line calloc (n, s) @ define prealloc(p
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line realloc (p, s) @ define pfree(p
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line free (p) @ define pstrdup(s
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line strdup (s) @ define tracing(...) @ define end_tracing(...) @define tid() 0 @define pid() 0 @define npe() 1 @define mpi_all_reduce(v
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line op define mpi_all_reduce_array (v, type, op, elem) @define mpi_sum_reduce_init(s
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line op define elem define mpi_sum_reduce_array (s, v, type, op, elem) macro2 OMP_PARALLEL()
 
define OMP_PARALLEL (...) @define NOT_UNUSED(x)(void)(x) macro2 VARIABLES()
 
define _index (a, m)(a.i) @define val(a
 
define m data (k, l, m)[_index(a
 
 if (_GNU_SOURCE||__APPLE__) &&!0 &&!_CADNA double undefined
 
if __APPLE__ include< stdint.h > include fp_osx h endif if _GPU define enable_fpe (flags) @else @ define enable_fpe(flags) feenableexcept(flags) @endif @ define disable_fpe(flags) fedisableexcept(flags) static void set_fpe(void)
 
else define undefined ((double) DBL_MAX) @ define enable_fpe(flags) @ define disable_fpe(flags) static void set_fpe(void)
 
FILEqpopen (const char *command, const char *type)
 
int qpclose (FILE *fp)
 
static void qpclose_all ()
 
FILElfopen (const char *name, const char *mode)
 
define attroffset() x (offsetof(_Attributes, x)) typedef int Reduce
 These are placeholders for internally-defined macros.
 
macro2 foreach_face (char flags=0, Reduce reductions=None, const char *order="xyz")
 
macro2 einstein_sum ()
 
macro2 diagonalize (int a)
 

Variables

define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define s
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define func
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define file
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line type
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line op define v
 
define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line op define op
 
define k
 
define l
 
define m m double _val_higher_dimension = 0.
 
static endif FILE ** qpopen_pipes = NULL
 

Macro Definition Documentation

◆ assert

#define assert (   a)    if (!(a)) qassert (__FILE__, LINENO, #a)

Definition at line 107 of file config.h.

◆ LINENO

#define LINENO   __LINE__

Definition at line 105 of file config.h.

◆ p

define n n define p   = (type *)realloc(p, (size)*sizeof(type)) p = (type *) realloc (p, (size)*sizeof(type))

Definition at line 320 of file tree.h.

Referenced by append_pid(), args(), array_shrink(), assemble_node(), average_temperature(), bflux(), bounding_box(), bulk_compressibility(), bview_destroy(), bview_new(), code(), curvature(), distance(), eigsrt(), eqstate_eos_alpha(), eqstate_eos_beta(), eqstate_eqstate1(), eqstate_rho_feistel(), eqstate_unesco(), equilibrium_tide_constituents(), event_acceleration(), event_defaults(), event_end_timestep(), event_init(), event_projection(), facets(), falsepos(), flux(), foreach_block_inner(), foreach_segment(), glvertex2d(), glvertex3d(), h_relax(), h_residual(), inclex(), includes(), independents(), init_grid(), input_stl(), input_xy(), interface_area(), interface_normal(), internal_energy(), interp(), interpolate_array(), intersects(), is_face_x(), is_face_y(), is_local_prolongation(), kdt_heap_get(), kdt_heap_put(), kdt_heap_split(), kdt_write(), level(), line_center(), line_length_center(), locals_pids(), lookup_tag(), main(), mapped_position(), matrix_new(), mempool_alloc(), mempool_destroy(), mempool_free(), mg_solve(), mpi_boundary_refine(), mpi_boundary_update_buffers(), neighbor(), no_coalescence(), okada_rectangular_source(), openpath(), parabola_fit_add(), parabola_fit_curvature(), parabola_fit_init(), parabola_fit_solve(), parse_params(), pcalloc(), pmfunc_index(), pmfuncs_free(), pmuntrace(), PointSegmentDistance(), poisson_thermal(), project(), put(), py_action(), py_end(), py_inc(), py_start(), quad_neighbor(), quad_neighbor_finest(), quad_x(), quad_y(), rcv_pid_append(), rcv_pid_append_pids(), rcv_pid_destroy(), rcv_pid_pointer(), rcv_pid_print(), rcv_pid_write(), realloc_scalar(), refine_cell(), refine_cm_axi(), refine_face_solenoidal(), relax(), relax_diffusion(), relax_thermal(), relax_viscosity(), residual(), residual_diffusion(), residual_thermal(), residual_viscosity(), restriction_embed_linear(), RPE(), segment_flux(), snd_rcv_free(), sound_speed(), stencil_val(), stencil_val_a(), sum_add_point(), tag(), update_bounds(), update_distance(), update_sum(), viscosity(), viscosity_explicit(), and ws_send_array().

◆ pclose

#define pclose   qpclose

Definition at line 667 of file config.h.

◆ popen

#define popen   qpopen

Definition at line 666 of file config.h.

◆ qcalloc

#define qcalloc (   size,
  type 
)    ((type *) calloc (size, sizeof(type)))

◆ qmalloc

#define qmalloc (   size,
  type 
)    ((type *) malloc ((size)*sizeof(type)))

◆ show_dimension

#define show_dimension (   ...)    show_dimension_internal (__VA_ARGS__ + 10293847566574839201.)

Macros overloaded by the interpreter.

Definition at line 707 of file config.h.

Enumeration Type Documentation

◆ typedef_kind_t

Enumerator
sym_SCALAR 
sym_VECTOR 
sym_TENSOR 
sym_COORD 
sym__COORD 
sym_VEC4 
sym_IVEC 

Definition at line 680 of file config.h.

Function Documentation

◆ _index()

define _index ( a  ,
m   
)

◆ calloc()

Referenced by display_poll(), event_defaults(), init_grid(), init_solver(), kdt_new(), mem_assign(), mem_new(), memrange_alloc(), and process_line().

Here is the caller graph for this function:

◆ data()

define m data ( k  ,
l  ,
m   
)

◆ diagonalize()

macro2 diagonalize ( int  a)

Definition at line 701 of file config.h.

Referenced by relax_hydro(), relax_nh(), and solve().

Here is the caller graph for this function:

◆ einstein_sum()

macro2 einstein_sum ( )

Definition at line 700 of file config.h.

◆ enable_fpe()

Definition at line 603 of file config.h.

Referenced by box_boundary_level(), bview_draw(), bview_new(), and last_events().

Here is the caller graph for this function:

◆ foreach_face()

macro2 foreach_face ( char  flags = 0,
Reduce  reductions = None,
const char order = "xyz" 
)

Definition at line 697 of file config.h.

◆ free()

Referenced by qpclose_all().

Here is the caller graph for this function:

◆ if()

if ( _GNU_SOURCE||  __APPLE__) &&

◆ lfopen()

FILE * lfopen ( const char name,
const char mode 
)

Definition at line 671 of file config.h.

References fname, and x.

Referenced by balance().

Here is the caller graph for this function:

◆ mpi_all_reduce_array()

◆ mpi_sum_reduce_array()

◆ OMP_PARALLEL()

define OMP_PARALLEL (   ...)

Definition at line 579 of file config.h.

References x.

◆ OMP_SERIAL()

define macro OMP_SERIAL ( )

Definition at line 55 of file config.h.

◆ pmalloc()

◆ qpclose()

int qpclose ( FILE fp)

Definition at line 641 of file config.h.

References fp, i, pclose, qpopen_pipes, and x.

◆ qpclose_all()

static void qpclose_all ( )
static

Definition at line 654 of file config.h.

References free(), i, pclose, qpopen_pipes, and x.

Referenced by free_solver().

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

◆ qpopen()

FILE * qpopen ( const char command,
const char type 
)

Definition at line 625 of file config.h.

References fp, i, n, popen, qpopen_pipes, type, and x.

◆ realloc()

◆ strdup()

◆ undefined()

else define undefined ( (double DBL_MAX)

Definition at line 615 of file config.h.

Referenced by alloc_children(), evaluate_expression(), init_grid(), mempool_alloc(), and mempool_free().

Here is the caller graph for this function:

◆ unmap()

define unmap ( x  ,
y   
)

Definition at line 20 of file config.h.

Referenced by output_gauges().

Here is the caller graph for this function:

◆ v()

define _NVARMAX define is_constant() v ( (v).i >=  _NVARMAX) const

Definition at line 72 of file config.h.

◆ x()

define attroffset() x ( offsetof(_Attributes, x)  )

These are placeholders for internally-defined macros.

Variable Documentation

◆ _val_higher_dimension

define m m double _val_higher_dimension = 0.

Definition at line 587 of file config.h.

Referenced by free_solver().

◆ file

◆ func

◆ k

define k

Definition at line 585 of file config.h.

◆ l

define l

Definition at line 585 of file config.h.

◆ op

◆ qpopen_pipes

endif FILE** qpopen_pipes = NULL
static

Definition at line 623 of file config.h.

Referenced by qpclose(), qpclose_all(), and qpopen().

◆ s

◆ type

◆ v