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 Dec 15, 2023
1 parent bdfb158 commit f0dfd8d
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 @@ -909,9 +909,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 @@ -1167,7 +1167,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 @@ -2474,7 +2474,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 f0dfd8d

Please sign in to comment.