libtrixi
|
NOTE: It is a known limitation of doxygen that Fortran interfaces will be listed as "Data Types". Please refer to the "Functions/Subroutines" section instead. More...
Data Types | |
interface | trixi_initialize_c |
interface | trixi_finalize |
interface | trixi_version_library_major |
interface | trixi_version_library_minor |
interface | trixi_version_library_patch |
interface | trixi_version_library_c |
interface | trixi_version_julia_c |
interface | trixi_version_julia_extended_c |
interface | trixi_initialize_simulation_c |
interface | trixi_is_finished_c |
interface | trixi_step |
interface | trixi_finalize_simulation |
interface | trixi_calculate_dt |
interface | trixi_ndims |
interface | trixi_nelements |
interface | trixi_nelements_global |
interface | trixi_nvariables |
interface | trixi_load_cell_averages |
interface | trixi_eval_julia_c |
Functions/Subroutines | |
subroutine | trixi_initialize_c (project_directory, depot_path) |
Initialize Julia runtime environment (C char pointer version) More... | |
subroutine | trixi_finalize () |
Finalize Julia runtime environment. More... | |
integer(c_int) function | trixi_version_library_major () |
Return major version number of libtrixi. More... | |
integer(c_int) function | trixi_version_library_minor () |
Return minor version number of libtrixi. More... | |
integer(c_int) function | trixi_version_library_patch () |
Return patch version number of libtrixi. More... | |
type(c_ptr) function | trixi_version_library_c () |
Return full version string of libtrixi (C char pointer version). More... | |
type(c_ptr) function | trixi_version_julia_c () |
Return name and version of loaded julia packages LibTrixi directly depends on (C char pointer version). More... | |
type(c_ptr) function | trixi_version_julia_extended_c () |
Return name and version of all loaded julia packages (C char pointer version). More... | |
integer(c_int) function | trixi_initialize_simulation_c (libelixir) |
Set up Trixi simulation (C char pointer version) More... | |
integer(c_int) function | trixi_is_finished_c (handle) |
Check if simulation is finished (C integer version) More... | |
subroutine | trixi_step (handle) |
Perform next simulation step. More... | |
subroutine | trixi_finalize_simulation (handle) |
Finalize simulation. More... | |
real(c_double) function | trixi_calculate_dt (handle) |
Get time step length. More... | |
integer(c_int) function | trixi_ndims (handle) |
Return number of spatial dimensions. More... | |
integer(c_int) function | trixi_nelements (handle) |
Return number of local elements (cells) More... | |
integer(c_int) function | trixi_nelements_global (handle) |
Return number of global elements (cells) More... | |
integer(c_int) function | trixi_nvariables (handle) |
Return number of (conservative) variables. More... | |
subroutine | trixi_load_cell_averages (data, handle) |
Return cell averaged values. More... | |
subroutine | trixi_eval_julia_c (code) |
Execute Julia code (C char pointer version) More... | |
subroutine | trixi_initialize (project_directory, depot_path) |
Initialize Julia runtime environment (Fortran convenience version) More... | |
character(len=:) function, allocatable | trixi_version_library () |
Return full version string of libtrixi (Fortran convenience version). More... | |
character(len=:) function, allocatable | trixi_version_julia () |
Return name and version of loaded julia packages LibTrixi directly depends on (Fortran convenience version). More... | |
character(len=:) function, allocatable | trixi_version_julia_extended () |
Return name and version of all loaded julia packages (Fortran convenience version). More... | |
integer(c_int) function | trixi_initialize_simulation (libelixir) |
Set up Trixi simulation (Fortran convencience version) More... | |
logical function | trixi_is_finished (handle) |
Check if simulation is finished (Fortran convenience version) More... | |
subroutine | trixi_eval_julia (code) |
Execute Julia code (Fortran convenience version) More... | |
NOTE: It is a known limitation of doxygen that Fortran interfaces will be listed as "Data Types". Please refer to the "Functions/Subroutines" section instead.
trixi_calculate_dt | ( | integer(c_int), intent(in), value | handle | ) |
Get time step length.
[in] | handle | simulation handle |
subroutine libtrixi::trixi_eval_julia | ( | character(len=*), intent(in) | code | ) |
Execute Julia code (Fortran convenience version)
trixi_eval_julia_c | ( | character(kind=c_char), dimension(*), intent(in) | code | ) |
Execute Julia code (C char pointer version)
Finalize Julia runtime environment.
Clean up internal states. This routine should be executed near the end of the process' lifetime. After the call to trixi_finalize
, no other libtrixi routines may be called anymore, including trixi_finalize
itself.
trixi_finalize_simulation | ( | integer(c_int), intent(in), value | handle | ) |
Finalize simulation.
[in] | handle | simulation handle |
subroutine libtrixi::trixi_initialize | ( | character(len=*), intent(in) | project_directory, |
character(len=*), intent(in), optional | depot_path | ||
) |
Initialize Julia runtime environment (Fortran convenience version)
[in] | project_directory | Path to project directory (Fortran string). |
[in] | depot_path | Path to Julia depot path (Fortran string). |
trixi_initialize_c | ( | character(kind=c_char), dimension(*), intent(in) | project_directory, |
character(kind=c_char), dimension(*), intent(in), optional | depot_path | ||
) |
Initialize Julia runtime environment (C char pointer version)
Initialize Julia and activate the project at project_directory
. If depot_path
is given, forcefully set the environment variable JULIA_DEPOT_PATH
to the value of depot_path. If
depot_pathis not given, then proceed as follows: If
JULIA_DEPOT_PATHis already set, do not touch it. Otherwise, set
JULIA_DEPOT_PATHto
project_directory+
default_depot_path`.
This routine must be called before most other libtrixi routines can be used. Libtrixi maybe only be initialized once; subsequent calls to trixi_initialize
are erroneous.
[in] | project_directory | Path to project directory (C char pointer) |
[in] | depot_path | Path to Julia depot path (optional, C char pointer) |
integer(c_int) function libtrixi::trixi_initialize_simulation | ( | character(len=*), intent(in) | libelixir | ) |
Set up Trixi simulation (Fortran convencience version)
[in] | libelixir | Path to libelexir file. |
trixi_initialize_simulation_c | ( | character(kind=c_char), dimension(*), intent(in) | libelixir | ) |
Set up Trixi simulation (C char pointer version)
[in] | libelixir | Path to libelexir file. |
logical function libtrixi::trixi_is_finished | ( | integer(c_int), intent(in) | handle | ) |
Check if simulation is finished (Fortran convenience version)
[in] | handle | simulation handle |
trixi_is_finished_c | ( | integer(c_int), intent(in), value | handle | ) |
Check if simulation is finished (C integer version)
[in] | handle | simulation handle |
trixi_load_cell_averages | ( | real(c_double), dimension(*), intent(in) | data, |
integer(c_int), intent(in), value | handle | ||
) |
Return cell averaged values.
[in] | handle | simulation handle |
[out] | data | cell averaged values for all cells and all variables |
trixi_ndims | ( | integer(c_int), intent(in), value | handle | ) |
Return number of spatial dimensions.
[in] | handle | simulation handle |
trixi_nelements | ( | integer(c_int), intent(in), value | handle | ) |
Return number of local elements (cells)
[in] | handle | simulation handle |
trixi_nelements_global | ( | integer(c_int), intent(in), value | handle | ) |
Return number of global elements (cells)
[in] | handle | simulation handle |
trixi_nvariables | ( | integer(c_int), intent(in), value | handle | ) |
Return number of (conservative) variables.
[in] | handle | simulation handle |
trixi_step | ( | integer(c_int), intent(in), value | handle | ) |
character(len=:) function, allocatable libtrixi::trixi_version_julia |
Return name and version of loaded julia packages LibTrixi directly depends on (Fortran convenience version).
Return name and version of loaded julia packages LibTrixi directly depends on (C char pointer version).
character(len=:) function, allocatable libtrixi::trixi_version_julia_extended |
Return name and version of all loaded julia packages (Fortran convenience version).
Return name and version of all loaded julia packages (C char pointer version).
character(len=:) function, allocatable libtrixi::trixi_version_library |
Return full version string of libtrixi (Fortran convenience version).
Return full version string of libtrixi (C char pointer version).
Return major version number of libtrixi.
Return minor version number of libtrixi.
Return patch version number of libtrixi.