#include <colvargrid.h>
Inheritance diagram for colvar_grid_gradient:
Definition at line 1446 of file colvargrid.h.
[inline, virtual]
Constructor from a multicol file.
Definition at line 218 of file colvargrid.C.
References colvarproxy_io::close_input_stream, COLVARS_INPUT_ERROR, colvarmodule::error, colvarproxy_io::input_stream, colvar_grid< cvm::real >::lower_boundaries, colvarmodule::main, colvar_grid< cvm::real >::mult, colvar_grid< cvm::real >::nd, NULL, colvar_grid< cvm::real >::periodic, colvarmodule::proxy, read_multicol, colvar_grid< cvm::real >::setup, and colvar_grid< cvm::real >::widths.
[inline]
\brief Accumulate the gradient based on the force (i.e. sums the opposite of the force).
Definition at line 1530 of file colvargrid.h.
References colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, colvar_grid_count::incr_count, and colvar_grid< cvm::real >::mult.
Referenced by colvarbias_meta::project_hills, and colvarbias_abf::update.
[inline]
\brief Accumulate the gradient based on the force (i.e. sums the opposite of the force) with a non-integer weight.
Definition at line 1540 of file colvargrid.h.
References colvar_grid_scalar::acc_value, colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, and colvar_grid< cvm::real >::mult.
[inline]
\brief Accumulate the value.
Definition at line 1520 of file colvargrid.h.
References colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, colvar_grid_count::incr_count, and colvar_grid< cvm::real >::mult.
Referenced by colvarbias_ti::update_system_forces.
[inline]
Compute and return average value for a 1D gradient grid.
Definition at line 1586 of file colvargrid.h.
References colvar_grid< cvm::real >::incr, colvar_grid< cvm::real >::index_ok, n, colvar_grid< cvm::real >::nd, colvar_grid< cvm::real >::new_index, colvar_grid< cvm::real >::nx, colvarmodule::real, colvar_grid< cvm::real >::value, and colvar_grid< size_t >::value.
Referenced by integrate_potential::integrate, colvarbias_abf::update, and write_1D_integral.
[virtual]
Read a grid written by write_multicol(), incrementin if data is true.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 289 of file colvargrid.C.
References colvar_grid::read_multicol.
[virtual]
Read a grid written by write_multicol(), incrementin if data is true.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 284 of file colvargrid.C.
References colvar_grid::read_multicol.
Referenced by colvar_grid_gradient.
[inline, virtual]
\brief Get the value from a formatted output and transform it into the internal representation (it may have been rescaled or manipulated).
Reimplemented from colvar_grid< cvm::real >.
Definition at line 1565 of file colvargrid.h.
References colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, colvar_grid< cvm::real >::has_data, colvar_grid_count::new_count, and colvar_grid< size_t >::value.
[inline, virtual]
\brief Return the value of the function at ix divided by its number of samples (if the count grid is defined).
Reimplemented from colvar_grid< cvm::real >.
Definition at line 1551 of file colvargrid.h.
References colvar_grid< cvm::real >::address, colvar_grid< cvm::real >::data, colvarmodule::real, and colvar_grid< size_t >::value.
Referenced by integrate_potential::integrate.
[inline]
\brief Get a vector with the binned value(s) indexed by ix, normalized if applicable.
Definition at line 1497 of file colvargrid.h.
References colvar_grid< cvm::real >::mult, colvar_grid< size_t >::value, and colvar_grid< cvm::real >::value.
Referenced by colvarbias_abf::update.
\brief If the grid is 1-dimensional, integrate it and write the integral to a file.
Definition at line 319 of file colvargrid.C.
References average, bin, colvar_grid< cvm::real >::cv, colvarmodule::error, colvar_grid< cvm::real >::incr, colvar_grid< cvm::real >::index_ok, colvar_grid< cvm::real >::new_index, colvar_grid< cvm::real >::nx, colvar_grid< cvm::real >::periodic, colvarmodule::real, samples, colvar_grid< cvm::real >::value, and colvar_grid< size_t >::value.
Referenced by colvarbias_ti::write_output_files.
[virtual]
Write grid in a format which is both human-readable and gnuplot-friendly.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 301 of file colvargrid.C.
References colvar_grid::write_multicol.
[virtual]
Write grid in a format which is both human-readable and gnuplot-friendly.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 296 of file colvargrid.C.
References colvar_grid::write_multicol.
Referenced by colvarbias_reweightaMD::write_cumulant_expansion_pmf, colvarbias_reweightaMD::write_exponential_reweighted_pmf, and colvarbias_ti::write_output_files.
[virtual]
Write the grid data without labels, as they are represented in memory.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 312 of file colvargrid.C.
References colvar_grid::write_opendx.
[virtual]
Write the grid data without labels, as they are represented in memory.
Reimplemented from colvar_grid< cvm::real >.
Definition at line 307 of file colvargrid.C.
References colvar_grid::write_opendx.
\brief Provide the sample count by which each binned value should be divided.
Definition at line 1452 of file colvargrid.h.
Referenced by integrate_potential::get_grad, colvarbias_abf::init, colvarbias_ti::init_grids, and write_1D_integral.
\brief Provide the floating point weights by which each binned value should be divided (alternate to samples, only one should be non-null).
Definition at line 1456 of file colvargrid.h.