Skip to content

Commit

Permalink
fix that time0 and time0Elapsed were not available if compiling with …
Browse files Browse the repository at this point in the history
…-DCBC_QUIET

- these variables are now used for more than print statements
  • Loading branch information
svigerske committed Apr 20, 2023
1 parent bb4f02b commit a994fc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Cbc/src/CbcSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1453,14 +1453,12 @@ int CbcMain1(int argc, const char *argv[],
break;
}
}
#if CBC_QUIET == 0
double time0;
double time0Elapsed = CoinGetTimeOfDay();
#endif
{
double time1 = CoinCpuTime(), time2;
#if CBC_QUIET == 0
time0 = time1;
#if CBC_QUIET == 0
double time1Elapsed = time0Elapsed;
#endif
bool goodModel = (originalSolver->getNumCols()) ? true : false;
Expand Down

0 comments on commit a994fc5

Please sign in to comment.