|
Extension: Json and NetCDF utilities
#include "dg/file/file.h"
|
Parameter struct for probe values. More...
Public Member Functions | |
| unsigned | get_coords_sizes () const |
| Check that coords all have same size and return that size. | |
Public Attributes | |
| std::vector< std::vector< double > > | coords |
| Coordinates list. | |
| std::vector< std::string > | coords_names |
Name of coordinates (must have same size as coords) | |
| std::string | format |
Optional format string for coords. | |
| bool | probes = false |
| Indicate existence of probes. | |
Parameter struct for probe values.
dg::file::parse_probes and dg::file::Probes
|
inline |
Check that coords all have same size and return that size.
| std::vector< std::vector<double> > dg::file::ProbesParams::coords |
Coordinates list.
All lists must have same size. coords will be passed to dg::create::interpolation function in the dg::file::Probes class.
parse_probes only reads coords on the master thread the other ranks remain empty | std::vector< std::string> dg::file::ProbesParams::coords_names |
Name of coordinates (must have same size as coords)
| std::string dg::file::ProbesParams::format |
Optional format string for coords.
The Probes class will write this as a group attribute
| bool dg::file::ProbesParams::probes = false |
Indicate existence of probes.
If false then no probes exist. The dg::file::Probes class will write no probes in that case and all its member functions return immediately.
The dg::file::parse_probes will set this flag if "probes" field does not exist in input file.
probes