10#ifndef COLVARBIAS_META_H
11#define COLVARBIAS_META_H
18#include "colvarbias.h"
47 int init(std::string
const &conf)
override;
48 int init_replicas_params(std::string
const &conf);
49 int init_well_tempered_params(std::string
const &conf);
50 int init_ebmeta_params(std::string
const &conf);
55 int update_grid_params();
57 int update_grid_data();
59 int replica_share()
override;
62 int calc_energy(std::vector<colvarvalue>
const *values)
override;
63 int calc_forces(std::vector<colvarvalue>
const *values)
override;
75 template <
typename IST,
typename GT>
76 IST &read_grid_data_template_(IST &is, std::string
const &key, GT *grid, GT *backup_grid);
78 template <
typename IST> IST &read_state_data_template_(IST &is);
80 template <
typename OST> OST &write_state_data_template_(OST &os);
93 typedef std::list<hill>::iterator hill_iter;
141 template <
typename IST> IST &read_hill_template_(IST &is);
144 std::istream &
read_hill(std::istream &is);
152 std::list<hill>::const_iterator
add_hill(
hill const &h);
156 std::list<hill>::const_iterator
delete_hill(hill_iter &h);
163 std::vector<colvarvalue>
const *values);
171 std::vector<colvarvalue> &forces,
172 std::vector<colvarvalue>
const *values);
340 std::vector<colvarvalue>
const &cv_values,
341 std::vector<cvm::real>
const &cv_sigmas,
342 std::string
const &
replica =
"");
390 inline std::vector<colvarvalue> &
center()
404 if (h1.
it < h2.
it)
return true;
411 if (h1.
it <= h2.
it)
return true;
418 if (h1.
it > h2.
it)
return true;
425 if (h1.
it >= h2.
it)
return true;
Class for accumulating the gradient of a scalar function on a grid.
Definition: colvargrid.h:1598
Class for accumulating a scalar function on a grid.
Definition: colvargrid.h:1283
Base class for unconstrained thermodynamic-integration FE estimator.
Definition: colvarbias.h:336
Collective variable bias, base class.
Definition: colvarbias.h:23
double real
Defining an abstract real number allows to switch precision.
Definition: colvarmodule.h:150
long long step_number
Use a 64-bit integer to store the step number.
Definition: colvarmodule.h:147
Value of a collective variable: this is a metatype which can be set at runtime. By default it is set ...
Definition: colvarvalue.h:43
Definition: colvars_memstream.h:30