Skip to content

Commit

Permalink
Clarify comments in OPES
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenin committed Oct 16, 2024
1 parent 268d02c commit 7cd1881
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/colvarbias_opes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ cvm::real colvarbias_opes::getProbAndDerivatives(
}
}
#elif defined(CMK_SMP) && defined(USE_CKLOOP)
// TODO: Does this work??
// TODO: Test this once fine-grained parallelization is enabled
std::vector<std::vector<cvm::real>> derivs(m_num_threads, std::vector<cvm::real>(num_variables(), 0));
std::vector<std::vector<cvm::real>> dists(m_num_threads, std::vector<cvm::real>(num_variables(), 0));
auto worker = [&](int start, int end, void* result){
Expand All @@ -432,7 +432,7 @@ cvm::real colvarbias_opes::getProbAndDerivatives(
}
}
#else
cvm::error("OPES cannot run because this binary is not linked with a supported threading library.\n");
cvm::error("multiple threads required in OPES, but this binary is not linked with a supported threading library.\n");
#endif
}
} else {
Expand Down Expand Up @@ -462,7 +462,7 @@ cvm::real colvarbias_opes::getProbAndDerivatives(
}
}
#elif defined(CMK_SMP) && defined(USE_CKLOOP)
// TODO: Does this work??
// TODO: Test this once fine-grained parallelization is enabled
std::vector<std::vector<cvm::real>> derivs(m_num_threads, std::vector<cvm::real>(num_variables(), 0));
std::vector<std::vector<cvm::real>> dists(m_num_threads, std::vector<cvm::real>(num_variables(), 0));
auto worker = [&](int start, int end, void* result){
Expand All @@ -487,7 +487,7 @@ cvm::real colvarbias_opes::getProbAndDerivatives(
}
}
#else
cvm::error("OPES cannot run because this binary is not linked with a supported threading library.\n");
cvm::error("multiple threads required in OPES, but this binary is not linked with a supported threading library.\n");
#endif
}
}
Expand Down

0 comments on commit 7cd1881

Please sign in to comment.