libtrixi
Enumerations | Functions
api.c File Reference
#include "trixi.h"
#include "auxiliary.h"

Enumerations

enum  {
  TRIXI_FTPR_INITIALIZE_SIMULATION , TRIXI_FTPR_CALCULATE_DT , TRIXI_FTPR_IS_FINISHED , TRIXI_FTPR_STEP ,
  TRIXI_FTPR_FINALIZE_SIMULATION , TRIXI_FTPR_NDIMS , TRIXI_FPTR_NELEMENTS , TRIXI_FPTR_NELEMENTS_GLOBAL ,
  TRIXI_FTPR_NVARIABLES , TRIXI_FTPR_LOAD_CELL_AVERAGES , TRIXI_FTPR_VERSION_LIBRARY , TRIXI_FTPR_VERSION_LIBRARY_MAJOR ,
  TRIXI_FTPR_VERSION_LIBRARY_MINOR , TRIXI_FTPR_VERSION_LIBRARY_PATCH , TRIXI_FTPR_VERSION_JULIA , TRIXI_FTPR_VERSION_JULIA_EXTENDED ,
  TRIXI_FTPR_EVAL_JULIA , TRIXI_FTPR_GET_T8CODE_FOREST , TRIXI_NUM_FPTRS
}
 

Functions

void trixi_initialize (const char *project_directory, const char *depot_path)
 Initialize Julia runtime environment. More...
 
void trixi_finalize ()
 Finalize Julia runtime environment. More...
 
int trixi_version_library_major ()
 Return major version number of libtrixi. More...
 
int trixi_version_library_minor ()
 Return minor version number of libtrixi. More...
 
int trixi_version_library_patch ()
 Return patch version number of libtrixi. More...
 
const char * trixi_version_library ()
 Return full version string of libtrixi. More...
 
const char * trixi_version_julia ()
 Return name and version of loaded Julia packages LibTrixi directly depends on. More...
 
const char * trixi_version_julia_extended ()
 Return name and version of all loaded Julia packages. More...
 
int trixi_initialize_simulation (const char *libelixir)
 Set up Trixi simulation. More...
 
int trixi_is_finished (int handle)
 Check if simulation is finished. More...
 
void trixi_step (int handle)
 Perform next simulation step. More...
 
void trixi_finalize_simulation (int handle)
 Finalize simulation. More...
 
double trixi_calculate_dt (int handle)
 Get time step length. More...
 
int trixi_ndims (int handle)
 Return number of spatial dimensions. More...
 
int trixi_nelements (int handle)
 Return number of local elements (cells). More...
 
int trixi_nelements_global (int handle)
 Return number of global elements (cells). More...
 
int trixi_nvariables (int handle)
 Return number of (conservative) variables. More...
 
void trixi_load_cell_averages (double *data, int handle)
 Return cell averaged values. More...
 
t8_forest_t trixi_get_t8code_forest (int handle)
 
void trixi_eval_julia (const char *code)
 Execute Julia code. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TRIXI_FTPR_INITIALIZE_SIMULATION 
TRIXI_FTPR_CALCULATE_DT 
TRIXI_FTPR_IS_FINISHED 
TRIXI_FTPR_STEP 
TRIXI_FTPR_FINALIZE_SIMULATION 
TRIXI_FTPR_NDIMS 
TRIXI_FPTR_NELEMENTS 
TRIXI_FPTR_NELEMENTS_GLOBAL 
TRIXI_FTPR_NVARIABLES 
TRIXI_FTPR_LOAD_CELL_AVERAGES 
TRIXI_FTPR_VERSION_LIBRARY 
TRIXI_FTPR_VERSION_LIBRARY_MAJOR 
TRIXI_FTPR_VERSION_LIBRARY_MINOR 
TRIXI_FTPR_VERSION_LIBRARY_PATCH 
TRIXI_FTPR_VERSION_JULIA 
TRIXI_FTPR_VERSION_JULIA_EXTENDED 
TRIXI_FTPR_EVAL_JULIA 
TRIXI_FTPR_GET_T8CODE_FOREST 
TRIXI_NUM_FPTRS