Skip to content
Snippets Groups Projects
Commit fba9b149 authored by carlocamilloni's avatar carlocamilloni
Browse files

CS2Backbone: fix a bug when using more than 2 chains

parent d4140cd6
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,7 @@ For users: ...@@ -207,6 +207,7 @@ For users:
- Fix some performances regression issue with OpenMP - Fix some performances regression issue with OpenMP
- Updated NAMD patches to version 2.12 and 2.13. Old patches have been removed. - Updated NAMD patches to version 2.12 and 2.13. Old patches have been removed.
- GROMACS patch for gromacs-2018.4. - GROMACS patch for gromacs-2018.4.
- Fix a bug in CS2BACKBONE when using more than 2 chains
For developers: For developers:
- Small fix in LDFLAGS when enabling coverage. - Small fix in LDFLAGS when enabling coverage.
......
...@@ -1476,7 +1476,7 @@ void CS2Backbone::init_sidechain(const PDB &pdb) { ...@@ -1476,7 +1476,7 @@ void CS2Backbone::init_sidechain(const PDB &pdb) {
} }
} }
old_size += aend.index()+1; old_size = aend.index()+1;
} }
} }
...@@ -1566,7 +1566,7 @@ void CS2Backbone::init_xdist(const PDB &pdb) { ...@@ -1566,7 +1566,7 @@ void CS2Backbone::init_xdist(const PDB &pdb) {
atom[s][a].xd2.push_back(add2); atom[s][a].xd2.push_back(add2);
} }
} }
old_size += aend.index()+1; old_size = aend.index()+1;
} }
} }
...@@ -1689,7 +1689,7 @@ void CS2Backbone::init_rings(const PDB &pdb) { ...@@ -1689,7 +1689,7 @@ void CS2Backbone::init_rings(const PDB &pdb) {
plumed_merror("Unkwown Ring Fragment"); plumed_merror("Unkwown Ring Fragment");
} }
} }
old_size += aend.index()+1; old_size = aend.index()+1;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment