|
libtrixi
|
Functions | |
| void | trixi_initialize (const char *project_directory, const char *depot_path) |
| Initialize Julia runtime environment. More... | |
| int | trixi_initialize_simulation (const char *libelixir) |
| Set up Trixi simulation. More... | |
| double | trixi_calculate_dt (int handle) |
| Get time step length. 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... | |
| void | trixi_finalize () |
| Finalize Julia runtime environment. More... | |
| void | julia_eval_string (const char *code) |
| Execute Julia code. More... | |
| void julia_eval_string | ( | const char * | code | ) |
| double trixi_calculate_dt | ( | int | handle | ) |
| void trixi_finalize_simulation | ( | int | handle | ) |
| void trixi_initialize | ( | const char * | project_directory, |
| const char * | depot_path | ||
| ) |
Initialize Julia runtime environment.
Initialize Julia and activate the project at project_directory. If depot_path is not a null pointer, forcefully set the environment variable JULIA_DEPOT_PATH to the value of depot_path. If depot_path is null, then proceed as follows: If JULIA_DEPOT_PATH is already set, do not touch it. Otherwise, set JULIA_DEPOT_PATH to project_directory + default_depot_path
| [in] | project_directory | Path to project directory. |
| [in] | depot_path | Path to Julia depot path (optional; can be null pointer). |
| int trixi_initialize_simulation | ( | const char * | libelixir | ) |
Set up Trixi simulation.
Set up a Trixi simulation by reading the provided libelixir file. It resembles Trixi's typical elixir files with the following differences:
using ...) has to be inside a function init_simstate()init (instead of solve)SimulationState has to be created from the semidiscretization and the integrator See the examples in the LibTrixi.jl/examples folder| [in] | libelixir | Path to libelexir file. |
| int trixi_is_finished | ( | int | handle | ) |