@@ -569,7 +569,7 @@ int colvarbias_meta::init_interval_params(std::string const &conf)
569
569
std::vector<int > interval_ulimit_cv;
570
570
size_t i;
571
571
size_t j;
572
- // allocate accessory variable of colvar values to be used in energy and forces calculation
572
+ // allocate accessory variable of colvar values to be used in energy and forces calculation
573
573
curr_values.resize (num_variables ());
574
574
for (i = 0 ; i < num_variables (); i++) {
575
575
curr_values[i].type (variables (i)->value ());
@@ -908,10 +908,10 @@ int colvarbias_meta::reflect_hill_multid(cvm::real const &h_scale)
908
908
909
909
case multiple_replicas:
910
910
add_hill (hill (cvm::step_absolute (), hill_weight*h_scale, curr_cv_values, colvar_sigmas, replica_id));
911
- std::ostream * replica_hills_os =
912
- cvm::proxy->get_output_stream (replica_hills_file);
911
+ std::ostream & replica_hills_os =
912
+ cvm::proxy->output_stream (replica_hills_file);
913
913
if (replica_hills_os) {
914
- * replica_hills_os << hills.back ();
914
+ replica_hills_os << hills.back ();
915
915
} else {
916
916
return cvm::error (" Error: in metadynamics bias \" " +this ->name +" \" " +
917
917
((comm != single_replica) ? " , replica \" " +replica_id+" \" " : " " )+
@@ -1328,7 +1328,7 @@ int colvarbias_meta::calc_forces(std::vector<colvarvalue> const *values)
1328
1328
curr_bin = hills_energy->get_colvars_index_bound (curr_values);
1329
1329
} else {
1330
1330
curr_bin = hills_energy->get_colvars_index (curr_values);
1331
- }
1331
+ }
1332
1332
1333
1333
if (hills_energy->index_ok (curr_bin)) {
1334
1334
for (ir = 0 ; ir < replicas.size (); ir++) {
@@ -1493,9 +1493,9 @@ void colvarbias_meta::project_hills(colvarbias_meta::hill_iter h_first,
1493
1493
colvarbias_meta::hill_iter h_last,
1494
1494
colvar_grid_scalar *he,
1495
1495
colvar_grid_gradient *hg,
1496
- std::vector<int > const &w_int_llimit_cv,
1496
+ std::vector<int > const &w_int_llimit_cv,
1497
1497
std::vector<int > const &w_int_ulimit_cv,
1498
- std::vector<cvm::real> const &int_llimit,
1498
+ std::vector<cvm::real> const &int_llimit,
1499
1499
std::vector<cvm::real> const &int_ulimit,
1500
1500
bool print_progress)
1501
1501
{
@@ -2105,7 +2105,7 @@ std::istream & colvarbias_meta::read_state_data(std::istream& is)
2105
2105
cvm::to_str (hills.size ())+" hills (this may take a while)...\n " );
2106
2106
project_hills (hills.begin (), hills.end (),
2107
2107
new_hills_energy, new_hills_energy_gradients,
2108
- which_int_llimit_cv, which_int_ulimit_cv,
2108
+ which_int_llimit_cv, which_int_ulimit_cv,
2109
2109
interval_llimit, interval_ulimit, true );
2110
2110
cvm::log (" rebinning done.\n " );
2111
2111
0 commit comments