++i;
resicompare = top.atoms()->atom[static_cast<std::size_t>(*ai)].resind;
IndexMap.push_back(_backboneAtoms);
- IndexMap[i].setInfo(top.atoms()->resinfo[i]);
+ *(IndexMap[i].resinfo) = top.atoms()->resinfo[resicompare];
+// std::cout << "First resi is " << IndexMap[i].resinfo->name << std::endl;
// if( verbose_ && i != 1 && (!IndexMap[i-1].getIndex(backboneAtomTypes::AtomCA) ||
// !IndexMap[i-1].getIndex(backboneAtomTypes::AtomC) ||