10#ifndef COLVARBIAS_META_H
11#define COLVARBIAS_META_H
18#include "colvarbias.h"
47 virtual int init(std::string
const &conf);
48 virtual int init_replicas_params(std::string
const &conf);
49 virtual int init_well_tempered_params(std::string
const &conf);
50 virtual int init_ebmeta_params(std::string
const &conf);
55 virtual int update_grid_params();
56 virtual int update_bias();
57 virtual int update_grid_data();
58 virtual int replica_share();
61 virtual int calc_energy(std::vector<colvarvalue>
const *values);
62 virtual int calc_forces(std::vector<colvarvalue>
const *values);
74 template <
typename IST,
typename GT>
75 IST &read_grid_data_template_(IST &is, std::string
const &key, GT *grid, GT *backup_grid);
77 template <
typename IST> IST &read_state_data_template_(IST &is);
79 template <
typename OST> OST &write_state_data_template_(OST &os);
88 virtual void write_pmf();
92 typedef std::list<hill>::iterator hill_iter;
140 template <
typename IST> IST &read_hill_template_(IST &is);
143 std::istream &
read_hill(std::istream &is);
151 std::list<hill>::const_iterator
add_hill(
hill const &h);
155 std::list<hill>::const_iterator
delete_hill(hill_iter &h);
162 std::vector<colvarvalue>
const *values);
170 std::vector<colvarvalue> &forces,
171 std::vector<colvarvalue>
const *values);
339 std::vector<colvarvalue>
const &cv_values,
340 std::vector<cvm::real>
const &cv_sigmas,
341 std::string
const &
replica =
"");
389 inline std::vector<colvarvalue> &
center()
403 if (h1.
it < h2.
it)
return true;
410 if (h1.
it <= h2.
it)
return true;
417 if (h1.
it > h2.
it)
return true;
424 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:333
Collective variable bias, base class.
Definition: colvarbias.h:23
double real
Defining an abstract real number allows to switch precision.
Definition: colvarmodule.h:100
long long step_number
Use a 64-bit integer to store the step number.
Definition: colvarmodule.h:97
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