Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
terrain.h File Reference
#include <stdarg.h>
#include <kdt/kdt.h>
Include dependency graph for terrain.h:

Go to the source code of this file.

Macros

#define NPROC   1
 
#define PROC   0
 

Functions

static int includes_point (KdtRect rect, Point point)
 
static int includes (KdtRect rect, Point *p)
 
static int intersects_point (KdtRect rect, Point point)
 
static int intersects (KdtRect rect, Point *p)
 
void delete_terrain (scalar zb)
 
define CHARP char *trace void terrain (scalar zb,...)
 

Variables

 attribute
 
scalar nt
 
scalar dmin
 
scalar dmax
 

Macro Definition Documentation

◆ NPROC

#define NPROC   1

Definition at line 11 of file terrain.h.

◆ PROC

#define PROC   0

Definition at line 12 of file terrain.h.

Function Documentation

◆ delete_terrain()

void delete_terrain ( scalar  zb)

Definition at line 85 of file terrain.h.

References free(), i, kdt_destroy(), NPROC, x, and zb.

Referenced by terrain().

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

◆ includes()

static int includes ( KdtRect  rect,
Point p 
)
static

Definition at line 27 of file terrain.h.

References includes_point(), p, and x.

Referenced by terrain().

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

◆ includes_point()

static int includes_point ( KdtRect  rect,
Point  point 
)
static

Definition at line 20 of file terrain.h.

References h, l, x, and y.

Referenced by includes().

Here is the caller graph for this function:

◆ intersects()

static int intersects ( KdtRect  rect,
Point p 
)
static

Definition at line 39 of file terrain.h.

References intersects_point(), p, and x.

Referenced by kdt_query_sum(), query_sum(), and terrain().

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

◆ intersects_point()

static int intersects_point ( KdtRect  rect,
Point  point 
)
static

Definition at line 32 of file terrain.h.

References h, l, x, and y.

Referenced by intersects().

Here is the caller graph for this function:

◆ terrain()

define CHARP char *trace void terrain ( scalar  zb,
  ... 
)

Definition at line 101 of file terrain.h.

References boundary_level, cpu, delete_terrain(), depth, dmax, dmin, fname, free(), i, includes(), intersects(), kdt_new(), kdt_open(), kdt_query_sum(), kdt_sum_init(), l, n, no_restriction(), nodata, NPROC, nt, point, PROC, qcalloc, s, x, y, and zb.

Here is the call graph for this function:

Variable Documentation

◆ attribute

attribute
Initial value:
{
void ** kdt
int x
Definition common.h:76

Definition at line 15 of file terrain.h.

◆ dmax

scalar dmax

Definition at line 17 of file terrain.h.

Referenced by terrain().

◆ dmin

scalar dmin

Definition at line 17 of file terrain.h.

Referenced by event_stability(), and terrain().

◆ nt

scalar nt

Definition at line 17 of file terrain.h.

Referenced by balance(), balanced_pid(), mpi_partitioning(), restore_mpi(), tensors_len(), and terrain().