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;
26 params.
set<
bool>(
"dynamic_time_sequence") =
false;
32 :
Times(parameters), _time_column_index(getParam<unsigned
int>(
"time_column_index"))
34 const auto & times_files = getParam<std::vector<FileName>>(
"files");
37 for (
const auto p_file_it : index_range(times_files))
39 const std::string times_file = times_files[p_file_it];
44 const auto & data = file.
getData();
registerMooseObject("MooseApp", CSVFileTimes)
void ErrorVector unsigned int
CSVFileTimes(const InputParameters ¶meters)
const unsigned int _time_column_index
Column in (all) the CSV file(s) where the time is.
static InputParameters validParams()
Utility class for reading delimited data (e.g., CSV data).
const std::vector< std::vector< T > > & getData() const
Return the rows/columns of data.
void setFormatFlag(FormatFlag value)
void read()
Perform the actual data reading.
Times objects are under the hood Reporters, but limited to a vector of Real.
static InputParameters validParams()
std::vector< Real > & _times
The vector holding the times.
const Parallel::Communicator & _communicator