21 "Text file(s) with the positions, one per line");
24 params.
set<
bool>(
"auto_sort") =
false;
26 params.
set<
bool>(
"auto_broadcast") =
false;
33 const auto & positions_files = getParam<std::vector<FileName>>(
"files");
37 for (
const auto p_file_it :
index_range(positions_files))
39 const std::string positions_file = positions_files[p_file_it];
45 for (
const auto & d : data)
static InputParameters validParams()
const std::vector< Point > getDataAsPoints() const
Get the data in Point format.
registerMooseObject("MooseApp", FilePositions)
Positions objects are under the hood Reporters.
const Parallel::Communicator & _communicator
bool _initialized
Whether the positions object has been initialized. This must be set by derived objects.
std::vector< std::vector< Point > > _positions_2d
2D storage for all the positions
void setFormatFlag(FormatFlag value)
std::vector< Point > & _positions
For now, only the 1D vector will be shared across all ranks.
void read()
Perform the actual data reading.
static InputParameters validParams()
Utility class for reading delimited data (e.g., CSV data).
virtual void finalize() override
In charge of reduction across all ranks & sorting for consistent output.
auto index_range(const T &sizable)
FilePositions(const InputParameters ¶meters)