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

index 313bd8b6ac007dca790ae9233dbf4f5f9218dce7..5af1cd411c5d883568bbef968b2bffba3374f49e 100644 (file)
@@ -751,6 +751,9 @@ void DsspTool::initAnalysis(/*const TrajectoryAnalysisSettings &settings,*/const
 //           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) ;