// std::cout << "Resi " << IndexMap[i].info->nr << *(IndexMap[i].info->name) << std::endl;
// std::cout << "Prev resi is " << IndexMap[i].prevResi->info->nr << *(IndexMap[i].prevResi->info->name) << std::endl;
// std::cout << "Prev resi's next resi is " << IndexMap[i - 1].nextResi->info->nr << *(IndexMap[i - 1].nextResi->info->name) << std::endl;
+ if ( IndexMap[i].prevResi == nullptr){
+ std::cout << "SHIT" << std::endl;
+ }
std::cout << IndexMap[i].prevResi->info->nr;
std::cout << *(IndexMap[i - 1].prevResi->info->name) ;
std::cout << " have CA = " << IndexMap[i].prevResi->getIndex(backboneAtomTypes::AtomCA) ;