From: Max Date: Mon, 19 Sep 2022 22:35:04 +0000 (+0300) Subject: asdsad X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=521b9b502401f7d94b64498a5a90c927deb718c9;p=alexxy%2Fgromacs-dssp.git asdsad --- diff --git a/src/dssptools.cpp b/src/dssptools.cpp index 1b9aec6..beac203 100644 --- a/src/dssptools.cpp +++ b/src/dssptools.cpp @@ -151,11 +151,10 @@ bool secondaryStructures::NoChainBreaksBetween(std::size_t Resi1, std::size_t Re } for (; i != j; ++i){ - if ( !(SecondaryStructuresStatusMap[i].isBreakPartnerWith(&SecondaryStructuresStatusMap[i + 1]) && SecondaryStructuresStatusMap[i + 1].isBreakPartnerWith(&SecondaryStructuresStatusMap[i])) ){ - + if ( SecondaryStructuresStatusMap[i].isBreakPartnerWith(&SecondaryStructuresStatusMap[i + 1]) && SecondaryStructuresStatusMap[i + 1].isBreakPartnerWith(&SecondaryStructuresStatusMap[i]) ){ + std::cout << "Patternsearch has detected a CHAINBREAK between " << Resi1 << " and " << Resi2 << std::endl; + return false; } - std::cout << "Patternsearch has detected a CHAINBREAK between " << Resi1 << " and " << Resi2 << std::endl; - return false; } return true; }