Skip to content
Snippets Groups Projects
Commit 3dca7965 authored by pascal's avatar pascal
Browse files

Get Handle for interaction potenial in order to have correct residue index

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2661 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent b3cb29dc
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,8 @@ public: ...@@ -81,7 +81,8 @@ public:
if (d<0) d=0.0; if (d<0) d=0.0;
if (d>options_.lower_cutoff) { if (d>options_.lower_cutoff) {
if (abs(atom_handle.GetResidue().GetIndex()-a.GetResidue().GetIndex())<options_.sequence_sep) { // GetHandle() necessary to retriev original index of the view (as compared to index in the view):
if (abs(atom_handle.GetResidue().GetIndex()-a.GetResidue().GetHandle().GetIndex())<options_.sequence_sep) {
continue; continue;
} }
energy_+=energies_.Get(type_a, type_b, d); energy_+=energies_.Get(type_a, type_b, d);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment