Skip to content

Commit

Permalink
Fix remaining merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Oct 13, 2023
1 parent ec53b9b commit 7957ec4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/colvarbias_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,9 @@ int colvarbias_meta::reflect_hill_multid(cvm::real const &h_scale)
case multiple_replicas:
add_hill(hill(cvm::step_absolute(), hill_weight*h_scale, curr_cv_values, colvar_sigmas, replica_id));
std::ostream &replica_hills_os =
cvm::proxy->output_stream(replica_hills_file);
cvm::proxy->output_stream(replica_hills_file, "replica hills file");
if (replica_hills_os) {
replica_hills_os << hills.back();
write_hill(replica_hills_os, hills.back());
} else {
return cvm::error("Error: in metadynamics bias \""+this->name+"\""+
((comm != single_replica) ? ", replica \""+replica_id+"\"" : "")+
Expand Down Expand Up @@ -1170,7 +1170,7 @@ int colvarbias_meta::update_bias()
std::ostream &replica_hills_os =
cvm::proxy->output_stream(replica_hills_file, "replica hills file");
if (replica_hills_os) {
replica_hills_os << hills.back();
write_hill(replica_hills_os, hills.back());
} else {
return cvm::error("Error: in metadynamics bias \""+this->name+"\""+
((comm != single_replica) ? ", replica \""+replica_id+"\"" : "")+
Expand Down Expand Up @@ -2471,7 +2471,10 @@ template <typename OST> OST &colvarbias_meta::write_state_data_template_(OST &os

// this is a very good time to project hills, if you haven't done
// it already!
project_hills(new_hills_begin, hills.end(), hills_energy, hills_energy_gradients);
project_hills(new_hills_begin, hills.end(),
hills_energy, hills_energy_gradients,
which_int_llimit_cv, which_int_ulimit_cv,
interval_llimit, interval_ulimit);
new_hills_begin = hills.end();

// write down the grids to the restart file
Expand Down

0 comments on commit 7957ec4

Please sign in to comment.