Commit 5de50aa6 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

corrected torsion-read after tsri


Former-commit-id: eac11d6f
parent 6c81c804
......@@ -742,12 +742,14 @@ int get_liganddata(const char* ligfilename, Liganddata* myligand, const double A
atom_counter++;
#if 0
// include last atom
if (atom_counter == myligand->num_of_atoms) {
for (i=0; i<branch_counter; i++) //for all branches found until now
if (branches [i][2] == 1) //if it is open, the atom has to be rotated
atom_rotbonds_temp [atom_counter][i] = 1; //modifying atom_rotbonds_temp
}
#endif
}
if (strcmp(tempstr, "BRANCH") == 0) //if new branch, stroing atom indexes into branches [][]
{
......@@ -778,6 +780,7 @@ int get_liganddata(const char* ligfilename, Liganddata* myligand, const double A
(myligand->rotbonds [endbranch_counter][0])--;
(myligand->rotbonds [endbranch_counter][1])--;
#if 0
// include last atom before ENDBRANCH
//if (atom_counter == myligand->num_of_atoms) {
for (i=0; i<branch_counter; i++) //for all branches found until now
......@@ -797,6 +800,7 @@ int get_liganddata(const char* ligfilename, Liganddata* myligand, const double A
}
*/
// ---------------------------
#endif
for (i=0; i<branch_counter; i++) //the branch have to be closed
if ((branches [i][0] == myligand->rotbonds [endbranch_counter][0]) &&
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment