accelerInt
v0.1
|
the generic CUDA initial condition reader More...
#include "header.cuh"
#include "gpu_memory.cuh"
#include "gpu_macros.cuh"
#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... | |
the generic CUDA initial condition reader
Definition in file read_initial_conditions.cu.
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 32 of file read_initial_conditions.cu.