22#ifndef ESPRESSO_SRC_SCRIPT_INTERFACE_H5MD_H5MD_HPP
23#define ESPRESSO_SRC_SCRIPT_INTERFACE_H5MD_H5MD_HPP
63 m_output_fields = get_value<std::vector<std::string>>(
params,
"fields");
65 std::string, std::vector<std::string>,
66 std::string, std::string, std::string,
67 std::string, std::string, std::string>(
68 params,
"file_path",
"script_path",
"fields",
"mass_unit",
69 "length_unit",
"time_unit",
"force_unit",
"velocity_unit",
77 m_mpi_env_lock.reset();
80 std::shared_ptr<boost::mpi::environment> m_mpi_env_lock;
81 std::shared_ptr<::Writer::H5md::File> m_h5md;
82 std::vector<std::string> m_output_fields;
Communication::MpiCallbacks manages MPI communication using a visitor pattern.
Bind parameters in the script interface.
void add_parameters(std::vector< AutoParameter > &¶ms)
boost::string_ref 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 & length_unit() const
Retrieve the set length unit.
auto const & time_unit() const
Retrieve the set time unit.
auto 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.
This file contains the defaults for ESPResSo.
This file contains the asynchronous MPI communication.
std::shared_ptr< MpiCallbacks > mpiCallbacksHandle()
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.
boost::make_recursive_variant< None, bool, int, std::size_t, double, std::string, ObjectRef, Utils::Vector3b, Utils::Vector3i, Utils::Vector2d, Utils::Vector3d, Utils::Vector4d, std::vector< int >, std::vector< double >, std::vector< boost::recursive_variant_ >, std::unordered_map< int, boost::recursive_variant_ >, std::unordered_map< std::string, boost::recursive_variant_ > >::type Variant
Possible types for parameters.
static SteepestDescentParameters params
Currently active steepest descent instance.
static constexpr const ReadOnly read_only