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)
registerMooseObject("MooseApp", FilePositions)
FilePositions(const InputParameters ¶meters)
static InputParameters validParams()
Utility class for reading delimited data (e.g., CSV data).
const std::vector< Point > getDataAsPoints() const
Get the data in Point format.
void setFormatFlag(FormatFlag value)
void read()
Perform the actual data reading.
Positions objects are under the hood Reporters.
std::vector< std::vector< Point > > _positions_2d
2D storage for all the positions
std::vector< Point > & _positions
For now, only the 1D vector will be shared across all ranks.
static InputParameters validParams()
virtual void finalize() override
In charge of reduction across all ranks & sorting for consistent output.
bool _initialized
Whether the positions object has been initialized. This must be set by derived objects.
const Parallel::Communicator & _communicator