asdasd
authorMax <Infinity2573@gmail.com>
Mon, 29 Aug 2022 22:53:37 +0000 (01:53 +0300)
committerMax <Infinity2573@gmail.com>
Mon, 29 Aug 2022 22:53:37 +0000 (01:53 +0300)
src/dssptools.cpp

index 5af1cd411c5d883568bbef968b2bffba3374f49e..5fa684b6f18f3f6b88032a6baa861a0bf815c4f7 100644 (file)
@@ -744,16 +744,13 @@ void DsspTool::initAnalysis(/*const TrajectoryAnalysisSettings &settings,*/const
            if( proLINE.compare("PRO") == 0 ){
                IndexMap[i].is_proline = true;
            }
-           IndexMap[i].prevResi = &(IndexMap[i - 1]);
+           IndexMap[i].prevResi = &(IndexMap[0]);
 
            IndexMap[i - 1].nextResi = &(IndexMap[i]);
 
 //           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) ;