Update Colvars to version 2021-08-06 (silence Coverity Scan warnings)

Also include PDF copy of the manual forgotten in previous PR.
This commit is contained in:
Giacomo Fiorin
2021-08-06 10:25:12 -04:00
parent 5045595ad8
commit eb52f7c290
4 changed files with 10 additions and 2 deletions

View File

@ -103,7 +103,7 @@ void colvar::map_total::calc_value()
{ {
colvarproxy *proxy = cvm::main()->proxy; colvarproxy *proxy = cvm::main()->proxy;
int flags = is_enabled(f_cvc_gradient) ? colvarproxy::volmap_flag_gradients : int flags = is_enabled(f_cvc_gradient) ? colvarproxy::volmap_flag_gradients :
colvarproxy::volmap_flag_gradients; colvarproxy::volmap_flag_null;
if (atoms != NULL) { if (atoms != NULL) {
// Compute the map inside Colvars // Compute the map inside Colvars

View File

@ -166,6 +166,14 @@ colvar_grid_gradient::colvar_grid_gradient(std::string &filename)
} }
is >> nd; is >> nd;
if (nd > 50) {
cvm::error("Error: excessive number of dimensions in file \""+
filename+"\". Please ensure that the file is not corrupt.\n",
INPUT_ERROR);
return;
}
mult = nd; mult = nd;
std::vector<cvm::real> lower_in(nd), widths_in(nd); std::vector<cvm::real> lower_in(nd), widths_in(nd);
std::vector<int> nx_in(nd); std::vector<int> nx_in(nd);

View File

@ -1,3 +1,3 @@
#ifndef COLVARS_VERSION #ifndef COLVARS_VERSION
#define COLVARS_VERSION "2021-08-03" #define COLVARS_VERSION "2021-08-06"
#endif #endif