#include <Csv.h>
|
| static void | write (t_real i_dxy, t_idx i_nx, t_idx i_ny, t_idx i_stride, t_real const *i_h, t_real const *i_hu, t_real const *i_hv, t_real const *i_bm, std::ostream &io_stream) |
| |
| template<typename... Types> |
| static std::vector< std::tuple< Types... > > | getRows (std::string filename, std::uint32_t skipLines, std::uint32_t maxRows=0) |
| |
◆ getRows()
template<typename... Types>
| static std::vector< std::tuple< Types... > > tsunami_lab::io::Csv::getRows |
( |
std::string | filename, |
|
|
std::uint32_t | skipLines, |
|
|
std::uint32_t | maxRows = 0 ) |
|
inlinestatic |
◆ write()
Writes the data as CSV to the given stream.
- Parameters
-
| i_dxy | cell width in x- and y-direction. |
| i_nx | number of cells in x-direction. |
| i_ny | number of cells in y-direction. |
| i_stride | stride of the data arrays in y-direction (x is assumed to be stride-1). |
| i_h | water height of the cells; optional: use nullptr if not required. |
| i_hu | momentum in x-direction of the cells; optional: use nullptr if not required. |
| i_hv | momentum in y-direction of the cells; optional: use nullptr if not required. |
| i_bm | bathymetry of the cells; optional: use nullptr if not required. |
| io_stream | stream to which the CSV-data is written. |
- Author
- Alexander Breuer (alex.breuer AT uni-jena.de)
DESCRIPTION
IO-routines for writing a snapshot as Comma Separated Values (CSV).
The documentation for this class was generated from the following files:
- /builds/na48gom/tsunami/src/io/Csv.h
- /builds/na48gom/tsunami/src/io/Csv.cpp