|
accelerInt
v0.1
|
definition of the generic initial condition reader More...

Go to the source code of this file.
Macros | |
| #define | READ_INITIAL_CONDITIONS_CUH |
Functions | |
| int | read_initial_conditions (const char *, int, double **, double **) |
| Reads initial conditions for IVPs from binary file. More... | |
definition of the generic initial condition reader
Definition in file read_initial_conditions.cuh.
| #define READ_INITIAL_CONDITIONS_CUH |
Definition at line 11 of file read_initial_conditions.cuh.
| int read_initial_conditions | ( | const char * | filename, |
| int | NUM, | ||
| double ** | y_host, | ||
| double ** | variable_host | ||
| ) |
Reads initial conditions for IVPs from binary file.
| [in] | filename | the file to read from |
| [in] | NUM | the number of IVP initial conditions to read |
| [in,out] | y_host | Address of the host state vector pointer. This is initialized and populated by this method |
| [in,out] | variable_host | Address of the host pressure/density pointer. This is initialized and populated by this method |
Note: the data file is expected to be in the following format:
time, Temperature, Pressure, mass fractions (State #1)
time, Temperature, Pressure, mass fractions (State #2) ...
Definition at line 30 of file read_initial_conditions.c.
1.8.14