Skip to content

Commit

Permalink
fix: ensure the compatibility of the .kernels.dat file format with
Browse files Browse the repository at this point in the history
PLUMED tools
  • Loading branch information
HanatoK committed Sep 5, 2024
1 parent 5691fc8 commit 51ba7c2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! FIELDS time phi1 phi2 phi3 sigma_phi1 sigma_phi2 sigma_phi3 height logweight
#! SET action opes_metad1_kernels
#! SET action OPES_METAD_kernels
#! SET biasfactor 16.7741
#! SET epsilon 1.79174e-08
#! SET kernel_cutoff 5.97285
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! FIELDS time phi1 phi2 phi3 sigma_phi1 sigma_phi2 sigma_phi3 height logweight
#! SET action opes_metad1_kernels
#! SET action OPES_METAD_kernels
#! SET biasfactor 16.7741
#! SET epsilon 1.79174e-08
#! SET kernel_cutoff 5.97285
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! FIELDS time phi1 phi2 phi3 sigma_phi1 sigma_phi2 sigma_phi3 height logweight
#! SET action opes_metad1_kernels
#! SET action OPES_METAD_kernels
#! SET biasfactor 16.7741
#! SET epsilon 1.79174e-08
#! SET kernel_cutoff 5.97285
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! FIELDS time phi1 phi2 phi3 sigma_phi1 sigma_phi2 sigma_phi3 height logweight
#! SET action opes_metad1_kernels
#! SET action OPES_METAD_kernels
#! SET biasfactor 8.38705
#! SET epsilon 7.31923e-05
#! SET kernel_cutoff 4.36404
Expand Down
4 changes: 3 additions & 1 deletion src/colvarbias_opes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,9 @@ int colvarbias_opes::write_output_files() {
os_kernels << "sigma_" + variables(i)->name + " ";
}
os_kernels << "height logweight\n";
os_kernels << "#! SET action " + name + "_kernels\n";
// Make sure the action name compatible with the script in https://github.com/invemichele/opes/blob/master/postprocessing/State_from_Kernels.py
if (m_explore) os_kernels << "#! SET action OPES_METAD_EXPLORE_kernels\n";
else os_kernels << "#! SET action OPES_METAD_kernels\n";
os_kernels << "#! SET biasfactor " << m_biasfactor << "\n";
os_kernels << "#! SET epsilon " << m_epsilon << "\n";
os_kernels << "#! SET kernel_cutoff " << m_cutoff << "\n";
Expand Down

0 comments on commit 51ba7c2

Please sign in to comment.