Commit 40acf8ea authored by mvalle's avatar mvalle
Browse files

Added print num internal branches

git-svn-id: https://svn.vital-it.ch/svn/hp2c/trunk/Codeml_Variants/Fastcodeml@5343 95c5a404-1f88-0410-a6b0-c3f062b6f34a
parent 98bf503e
......@@ -372,14 +372,15 @@ void Forest::cleanReductionWorkingData(ForestNode* aNode)
std::ostream& operator<< (std::ostream& aOut, const Forest& aForest)
{
size_t i;
// General forest statistics
aOut << std::endl;
aOut << "Num branches: " << std::setw(7) << aForest.mNumBranches << std::endl;
aOut << "Internal branches: " << std::setw(7) << aForest.mNumInternalBranches << std::endl;
aOut << "Unique sites: " << std::setw(7) << aForest.mNumSites << std::endl;
aOut << "Total branches: " << std::setw(7) << aForest.mNumBranches*aForest.mNumSites << std::endl;
// Count total branches on the reduced forest
size_t i;
unsigned int cnt = 0;
unsigned int cntAggressive = 0;
for(i=0; i < aForest.mNumSites; ++i)
......
......@@ -267,7 +267,7 @@ int main(int aRgc, char **aRgv)
if(cmd.mVerboseLevel >= VERBOSE_INFO_OUTPUT) std::cerr << std::endl << "Invalid branch requested. Ignoring" << std::endl;
}
// Compute branch to compute (or switch to the entire range of branches
// Compute branch to compute (or switch to the entire range of branches)
if(cmd.mBranchFromFile && marked_branch < num_branches)
{
// Branch from file and valid
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment