10#ifndef COLVARBIAS_META_H
11#define COLVARBIAS_META_H
17#include "colvarbias.h"
18#include "colvargrid.h"
43 virtual int init(std::string
const &conf);
44 virtual int init_replicas_params(std::string
const &conf);
45 virtual int init_well_tempered_params(std::string
const &conf);
46 virtual int init_ebmeta_params(std::string
const &conf);
51 virtual int update_grid_params();
52 virtual int update_bias();
53 virtual int update_grid_data();
54 virtual int replica_share();
57 virtual int calc_energy(std::vector<colvarvalue>
const *values);
58 virtual int calc_forces(std::vector<colvarvalue>
const *values);
70 template <
typename IST,
typename GT>
71 IST &read_grid_data_template_(IST &is, std::string
const &key, GT *grid, GT *backup_grid);
73 template <
typename IST> IST &read_state_data_template_(IST &is);
75 template <
typename OST> OST &write_state_data_template_(OST &os);
84 virtual void write_pmf();
88 typedef std::list<hill>::iterator hill_iter;
137 template <
typename IST> IST &read_hill_template_(IST &is);
140 std::istream &
read_hill(std::istream &is);
148 std::list<hill>::const_iterator
add_hill(
hill const &h);
152 std::list<hill>::const_iterator
delete_hill(hill_iter &h);
159 std::vector<colvarvalue>
const *values);
167 std::vector<colvarvalue> &forces,
168 std::vector<colvarvalue>
const *values);
234 bool print_progress =
false);
337 std::vector<colvarvalue>
const &cv_values,
338 std::vector<cvm::real>
const &cv_sigmas,
339 std::string
const &
replica =
"");
387 inline std::vector<colvarvalue> &
center()
401 if (h1.
it < h2.
it)
return true;
408 if (h1.
it <= h2.
it)
return true;
415 if (h1.
it > h2.
it)
return true;
422 if (h1.
it >= h2.
it)
return true;
Class for accumulating the gradient of a scalar function on a grid.
Definition: colvargrid.h:1555
Class for accumulating a scalar function on a grid.
Definition: colvargrid.h:1242
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:95
long long step_number
Use a 64-bit integer to store the step number.
Definition: colvarmodule.h:92
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