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
This function must be called before most other libtrixi functions can be used. Libtrixi maybe only be initialized once; subsequent calls to trixi_initialize
are erroneous.
- Parameters
-
[in] | project_directory | Path to project directory. |
[in] | depot_path | Path to Julia depot path (optional; can be null pointer). |
void trixi_load_cell_averages |
( |
double * |
data, |
|
|
int |
handle |
|
) |
| |
Return cell averaged values.
Cell averaged values for each cell and each primitive variable are stored in a contiguous array, where cell values for the first variable appear first and values for the other variables subsequently (structure-of-arrays layout).
The given array has to be of correct size and memory has to be allocated beforehand.
- Parameters
-
[in] | handle | simulation handle |
[out] | data | cell averaged values for all cells and all primitive variables |
const char* trixi_version_julia |
( |
| ) |
|
Return name and version of loaded Julia packages LibTrixi directly depends on.
The return value is a read-only pointer to a NULL-terminated string with the name and version information of the loaded Julia packages, separated by newlines.
The returned pointer is to static memory and must not be used to change the contents of the version string. Multiple calls to the function will return the same address.
This function is thread-safe. It must be run after trixi_initialize
has been called.
- Returns
- Pointer to a read-only, NULL-terminated character array with the names and versions of loaded Julia packages.
const char* trixi_version_julia_extended |
( |
| ) |
|
Return name and version of all loaded Julia packages.
The return value is a read-only pointer to a NULL-terminated string with the name and version information of all loaded Julia packages, including implicit dependencies, separated by newlines.
The returned pointer is to static memory and must not be used to change the contents of the version string. Multiple calls to the function will return the same address.
This function is thread-safe. It must be run after trixi_initialize
has been called.
- Returns
- Pointer to a read-only, NULL-terminated character array with the names and versions of all loaded Julia packages.
const char* trixi_version_library |
( |
| ) |
|
Return full version string of libtrixi.
The return value is a read-only pointer to a NULL-terminated string with the version information. This may include not just MAJOR.MINOR.PATCH but possibly also additional build or development version information.
The returned pointer is to static memory and must not be used to change the contents of the version string. Multiple calls to the function will return the same address.
This function is thread-safe and may be run before trixi_initialize
has been called.
- Returns
- Pointer to a read-only, NULL-terminated character array with the full version of libtrixi.