Skip to content

Commit

Permalink
BUG: dont want to output >main nProc times!
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjridley committed Aug 23, 2023
1 parent d5eb314 commit 7e57503
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Report::Report() {
current_entry = "";
nEntries = 0;
iVerbose = -2;
iDefaultVerbose = -2;
iProcReport = 0;
divider = ">";
divider_length = divider.length();
Expand Down Expand Up @@ -85,7 +86,7 @@ void Report::enter(std::string input, int &iFunction) {
iCurrentFunction = iEntry;

// Sometimes it is good to uncomment this line and see what is happening:
//std::cout << "iLevel : " << iLevel << " " << current_entry << "\n";
// std::cout << "iLevel : " << iLevel << " " << current_entry << "\n";
print(iLevel, "Entering function : " + current_entry);
}

Expand Down Expand Up @@ -140,8 +141,8 @@ void Report::times() {
if (iVerbose >= 0) {
std::cout << "Timing Summary :\n";
float min_timing = entries[0].timing_total * TimingPercent / 100.0;
std::cout << " --> Setting min timing to : " << min_timing << "\n";

if (min_timing < 0.01)
min_timing = 0.01;
for (int i = 0; i < nEntries; i++) {
if (entries[i].iLevel <= iTimingDepth &&
entries[i].timing_total >= min_timing) {
Expand Down Expand Up @@ -198,7 +199,7 @@ void Report::report_errors() {
int Report::test_verbose(int iLevel) {
int iPass = 0;

if (iLevel <= iVerbose) {
if (iLevel <= iVerbose && iVerbose > -1) {
iPass = 1;

for (int iL = 0; iL < iLevel; iL++)
Expand Down

0 comments on commit 7e57503

Please sign in to comment.