61 std::filesystem::path, std::vector<std::string>,
62 std::string, std::string, std::string, std::string,
63 std::string, std::string,
int>(
64 params,
"file_path",
"script_path",
"fields",
"mass_unit",
65 "length_unit",
"time_unit",
"force_unit",
"velocity_unit",
66 "charge_unit",
"chunk_size");
73 assert(m_h5md.use_count() == 0
u);
74 m_mpi_env_lock.reset();
78 if (
name ==
"write") {
80 auto const particles =
system.cell_structure->local_particles();
81 auto const sim_time =
system.get_sim_time();
82 auto const time_step =
system.get_time_step();
83 auto const n_steps =
static_cast<int>(std::round(sim_time / time_step));
85 }
else if (
name ==
"flush") {
87 }
else if (
name ==
"close") {
89 }
else if (
name ==
"valid_fields") {
void add_parameters(std::vector< AutoParameter > &¶ms)
std::string_view name() const
void do_construct(VariantMap const ¶ms) override
Variant do_call_method(const std::string &name, const VariantMap ¶meters) override
Class for writing H5MD files.
auto const & chunk_size() const
Retrieve the set chunk size.
auto const & length_unit() const
Retrieve the set length unit.
auto const & time_unit() const
Retrieve the set time unit.
auto const & file_path() const
Retrieve the path to the hdf5 file.
auto const & force_unit() const
Retrieve the set force unit.
auto const & mass_unit() const
Retrieve the set mass unit.
auto const & charge_unit() const
Retrieve the set charge unit.
auto const & velocity_unit() const
Retrieve the set velocity unit.
auto const & script_path() const
Retrieve the path to the simulation script.
std::unique_ptr< CommunicationEnvironment > communication_environment
This file contains the asynchronous MPI communication.
T get_value(Variant const &v)
Extract value of specific type T from a Variant.
std::unordered_map< std::string, Variant > VariantMap
auto make_vector_of_variants(std::vector< T > const &v)
std::shared_ptr< T > make_shared_from_args(VariantMap const &vals, ArgNames &&...args)
Make a new std::shared_ptr<T> with arguments extracted from a VariantMap.
static SteepestDescentParameters params
Currently active steepest descent instance.
static constexpr const ReadOnly read_only
Recursive variant implementation.