|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
#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"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 } |
| 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().
| #define show_dimension | ( | ... | ) | show_dimension_internal (__VA_ARGS__ + 10293847566574839201.) |
| define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line calloc | ( | n | , |
| s | |||
| ) |
Referenced by display_poll(), event_defaults(), init_grid(), init_solver(), kdt_new(), mem_assign(), mem_new(), memrange_alloc(), and process_line().
Definition at line 701 of file config.h.
Referenced by relax_hydro(), relax_nh(), and solve().
Definition at line 603 of file config.h.
Referenced by box_boundary_level(), bview_draw(), bview_new(), and last_events().
| if | ( | _GNU_SOURCE|| | __APPLE__ | ) | && |
| 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 sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define pmalloc | ( | s | , |
| func | , | ||
| file | , | ||
| line | |||
| ) |
Definition at line 654 of file config.h.
References free(), i, pclose, qpopen_pipes, and x.
Referenced by free_solver().
| define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line realloc | ( | p | , |
| s | |||
| ) |
Referenced by add_cexpr(), append_tag(), array_append(), array_shrink(), bview_interface_json(), cache_level_shrink(), display(), display_add(), event_register(), gpu_errorsrealloc(), increalloc(), init_const_scalar(), input_gfs(), list_append(), list_prepend(), memrange_alloc(), memrange_free(), new_bid(), postlex(), postrealloc(), str_append(), tag(), tensors_append(), and vectors_append().
| define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line strdup | ( | s | ) |
References index, stack, type, and x.
Referenced by add_cexpr(), append_tag(), cartesian_init_scalar(), check_stencil(), compile_expression(), display(), display_add(), display_command(), display_control_internal(), display_control_update(), display_init(), fclone(), inclex(), includes(), input_gfs(), main(), merge(), open_image(), py_register_event(), rcv_pid_new(), and replace_().
Definition at line 615 of file config.h.
Referenced by alloc_children(), evaluate_expression(), init_grid(), mempool_alloc(), and mempool_free().
Definition at line 20 of file config.h.
Referenced by output_gauges().
| define _NVARMAX define is_constant() v | ( | (v).i >= | _NVARMAX | ) | const |
| define attroffset() x | ( | offsetof(_Attributes, x) | ) |
These are placeholders for internally-defined macros.
Definition at line 587 of file config.h.
Referenced by free_solver().
| define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line file |
Definition at line 120 of file config.h.
Referenced by append_tag(), close_image(), compdir(), event_runtime(), extension(), gpu_errors_create_buffer(), gpu_errors_init_buffer(), if(), inc_create_buffer(), inc_init_buffer(), inclex(), include(), includes(), input_gfs(), is_animation(), is_code(), load(), main(), main(), open_image(), open_image_lookup(), pcalloc(), pmalloc(), pmfunc_alloc(), pmfunc_index(), post_create_buffer(), post_init_buffer(), ppm_fallback(), prealloc(), process_line(), pstrdup(), py_register_event(), save(), shortpath(), stencil_val(), and stencil_val_a().
| define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line func |
Definition at line 120 of file config.h.
Referenced by fraction(), free_solver_func_add(), pcalloc(), pmalloc(), pmfunc_alloc(), pmfunc_index(), prealloc(), pstrdup(), solid(), solve(), and tracing().
| define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line op define op |
Definition at line 573 of file config.h.
Referenced by cpu_reduction(), gpu_reduction(), and sum_add_sum().
Definition at line 623 of file config.h.
Referenced by qpclose(), qpclose_all(), and qpopen().
| define sysmalloc malloc define syscalloc calloc define sysrealloc realloc define sysfree free define systrdup strdup define line line line line op define type |
Definition at line 571 of file config.h.
Referenced by display_onmessage(), display_send(), GLDebugMessageCallback(), qpopen(), strdup(), turbulence_epsilon_bc(), turbulence_k_bc(), turbulence_psi_bc(), turbulence_q2l_bc(), turbulence_q2over2_bc(), update_distance(), and ws_send_array().