Skip to content

Commit

Permalink
fix cpu H bond eval
Browse files Browse the repository at this point in the history
  • Loading branch information
ysyecust committed Jan 18, 2024
1 parent 72668ea commit 6b3e806
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions unidock/src/lib/potentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ class vina_non_dir_h_bond : public Potential {
if (r >= cutoff) return 0.0;
if ((a.xs >= XS_TYPE_SIZE) || (b.xs >= XS_TYPE_SIZE)) return 0.0;
if (xs_h_bond_possible(a.xs, b.xs)) {
if (a.xs == XS_TYPE_O_XA || a.xs == XS_TYPE_N_XA || a.xs == XS_TYPE_O_XD
|| a.xs == XS_TYPE_N_XD || b.xs == XS_TYPE_O_XA || b.xs == XS_TYPE_N_XA
|| b.xs == XS_TYPE_O_XD || b.xs == XS_TYPE_N_XD) {
if(a.xs >= 32 && a.xs <= 35) || (b.xs >= 32 && b.xs <= 35) {
return 10.0 * slope_step(bad, good, r - optimal_distance(a.xs, b.xs));
} else
return slope_step(bad, good, r - optimal_distance(a.xs, b.xs));
Expand Down

0 comments on commit 6b3e806

Please sign in to comment.