Skip to content

Commit

Permalink
halogen-bond detection and display (PYMOL-3466)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonschrodin authored and JarrettSJohnson committed Jan 30, 2024
1 parent 9e2ca7d commit 465a281
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layer3/Interactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,15 @@ DistSet* FindHalogenBondInteractions(PyMOLGlobals* G, DistSet* ds, int sele1,
float* vv0 = coords + (numVerts * 3);

if (don_vv != nullptr && acc_vv != nullptr) {
const size_t count_to_copy = 6;
const size_t count_to_copy = 3;

std::copy_n(don_vv, count_to_copy, vv0);
vv0 += count_to_copy;
don_vv += count_to_copy;

std::copy_n(acc_vv, count_to_copy, vv0);
vv0 += count_to_copy;
acc_vv += count_to_copy;
}

numVerts += 2;
Expand Down

0 comments on commit 465a281

Please sign in to comment.