accelerInt
v0.1
|
the generic initial condition reader More...
#include "header.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
Go to the source code of this file.
Functions | |
void | read_initial_conditions (const char *filename, int NUM, double **y_host, double **variable_host) |
Reads initial conditions for IVPs from binary file. More... | |
void 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.