World Builder  0.1.0-pre
A geodyanmic initial conditions generator
wrapper_c.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void create_world (void **ptr_ptr_world, const char *world_builder_file)
 
void temperature_2d (void *ptr_ptr_world, double x, double z, double depth, double gravity, double *temperature)
 
void temperature_3d (void *ptr_ptr_world, double x, double y, double z, double depth, double gravity, double *temperature)
 
void composition_2d (void *ptr_ptr_world, double x, double z, double depth, unsigned int composition_number, bool *composition)
 
void composition_3d (void *ptr_ptr_world, double x, double y, double z, double depth, unsigned int composition_number, bool *composition)
 
void release_world (void *ptr_ptr_world)
 

Function Documentation

◆ composition_2d()

void composition_2d ( void *  ptr_ptr_world,
double  x,
double  z,
double  depth,
unsigned int  composition_number,
bool *  composition 
)

This function return the composition at a specific location given x, z, depth and composition number.

Definition at line 67 of file wrapper_c.cc.

Here is the call graph for this function:

◆ composition_3d()

void composition_3d ( void *  ptr_ptr_world,
double  x,
double  y,
double  z,
double  depth,
unsigned int  composition_number,
bool *  composition 
)

This function return the composition at a specific location given x, y, z, depth and composition number.

Definition at line 78 of file wrapper_c.cc.

Here is the call graph for this function:

◆ create_world()

void create_world ( void **  ptr_ptr_world,
const char *  world_builder_file 
)

This function creates an object of the world builder and returns a pointer to it. This pointer can then be used to call the temperature and composition functions. When done call the release world function to destroy the object.

Definition at line 32 of file wrapper_c.cc.

◆ release_world()

void release_world ( void *  ptr_ptr_world)

The destructor for the world builder class. Call this function when done with the world builder.

Definition at line 89 of file wrapper_c.cc.

◆ temperature_2d()

void temperature_2d ( void *  ptr_ptr_world,
double  x,
double  z,
double  depth,
double  gravity,
double *  temperature 
)

This function return the temperature at a specific location given x, z, depth and gravity.

Definition at line 43 of file wrapper_c.cc.

Here is the call graph for this function:

◆ temperature_3d()

void temperature_3d ( void *  ptr_ptr_world,
double  x,
double  y,
double  z,
double  depth,
double  gravity,
double *  temperature 
)

This function return the temperature at a specific location given x, y, z, depth and gravity.

Definition at line 54 of file wrapper_c.cc.

Here is the call graph for this function: