Public Member Functions | |
RegularGridBDataWriter (OutputStream os) | |
Constructs a bdata writer. | |
void | init (int nfields, String tname, String xname, String[] fields) |
(Re)initializes the bdata writer. | |
void | write (double t, double xmin, double dx, int npoints, float[] data, int dataPos) throws IOException |
Writes time slice data into the bdata file. | |
void | write (double t, double xmin, double dx, int npoints, double[] data, int dataPos) throws IOException |
Writes time slice data into the bdata file. | |
void | close () throws IOException |
Closes the underlying output stream. |
gridripper::io::RegularGridBDataWriter::RegularGridBDataWriter | ( | OutputStream | os | ) | [inline] |
Constructs a bdata writer.
os | the output stream |
void gridripper::io::RegularGridBDataWriter::init | ( | int | nfields, | |
String | tname, | |||
String | xname, | |||
String[] | fields | |||
) | [inline] |
(Re)initializes the bdata writer.
nfields | the number of field components | |
tname | name of the time coordinate | |
xname | name of the x coordinate | |
fields | array of field names |
void gridripper::io::RegularGridBDataWriter::write | ( | double | t, | |
double | xmin, | |||
double | dx, | |||
int | npoints, | |||
float[] | data, | |||
int | dataPos | |||
) | throws IOException [inline] |
Writes time slice data into the bdata file.
t | the time | |
xmin | the minimum x coordinate | |
dx | the grid spacing | |
npoints | the number of grid points on a time slice | |
data | the data array | |
dataPos | starting position of the time slice in the data array |
void gridripper::io::RegularGridBDataWriter::write | ( | double | t, | |
double | xmin, | |||
double | dx, | |||
int | npoints, | |||
double[] | data, | |||
int | dataPos | |||
) | throws IOException [inline] |
Writes time slice data into the bdata file.
t | the time | |
xmin | the minimum x coordinate | |
dx | the grid spacing | |
npoints | the number of grid points on a time slice | |
data | the data array | |
dataPos | starting position of the time slice in the data array |