12 #include "libmesh/serial_mesh.h" 13 #include "libmesh/exodusII_io.h" 22 params.
addRequiredParam<std::vector<FileName>>(
"files",
"Exodus file(s) with the times");
24 params.
set<
bool>(
"auto_broadcast") =
true;
32 const auto & times_files = getParam<std::vector<FileName>>(
"files");
36 for (
const auto p_file_it :
index_range(times_files))
45 exodusII_io.
read(times_files[p_file_it]);
48 for (
const auto & d : times)
static InputParameters validParams()
Times objects are under the hood Reporters, but limited to a vector of Real.
const Parallel::Communicator & _communicator
static InputParameters validParams()
Times from one or more Exodus files.
bool checkFileReadable(const std::string &filename, bool check_line_endings=false, bool throw_on_unreadable=true, bool check_for_git_lfs_pointer=true)
Checks to see if a file is readable (exists and permissions)
const std::vector< Real > & get_time_steps()
ExodusFileTimes(const InputParameters ¶meters)
virtual void read(const std::string &name) override
registerMooseObject("MooseApp", ExodusFileTimes)
virtual void finalize() override
In charge of reduction across all ranks.
processor_id_type processor_id() const
auto index_range(const T &sizable)
std::vector< Real > & _times
The vector holding the times.