21 "Text file(s) with the times, one per line");
22 params.
addParam<
unsigned int>(
"time_column_index", 0,
"Index for the column with the time");
24 params.
set<
bool>(
"auto_broadcast") =
false;
30 :
Times(parameters), _time_column_index(getParam<unsigned
int>(
"time_column_index"))
32 const auto & times_files = getParam<std::vector<FileName>>(
"files");
35 for (
const auto p_file_it :
index_range(times_files))
37 const std::string times_file = times_files[p_file_it];
42 const auto & data = file.
getData();
const unsigned int _time_column_index
Column in (all) the CSV file(s) where the time is.
CSVFileTimes(const InputParameters ¶meters)
Times objects are under the hood Reporters, but limited to a vector of Real.
const Parallel::Communicator & _communicator
registerMooseObject("MooseApp", CSVFileTimes)
static InputParameters validParams()
static InputParameters validParams()
void setFormatFlag(FormatFlag value)
void read()
Perform the actual data reading.
const std::vector< std::vector< T > > & getData() const
Return the rows/columns of data.
Utility class for reading delimited data (e.g., CSV data).
void ErrorVector unsigned int
auto index_range(const T &sizable)
std::vector< Real > & _times
The vector holding the times.