Changeset 471


Ignore:
Timestamp:
Oct 8, 2004 1:41:19 PM (15 years ago)
Author:
forrest
Message:

NDEBUG mistake

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClpModel.cpp

    r470 r471  
    293293}
    294294//------------------------------------------------------------------
     295#ifndef NDEBUG
     296// For errors to make sure print to screen
     297// only called in debug mode
     298static void indexError(int index,
     299                        std::string methodName)
     300{
     301  std::cerr<<"Illegal index "<<index<<" in ClpModel::"<<methodName<<std::endl;
     302  throw CoinError("Illegal index",methodName,"ClpModel");
     303}
     304#endif
    295305/* Set an objective function coefficient */
    296306void
  • trunk/ClpSimplexDual.cpp

    r460 r471  
    36613661
    36623662  int factorizationStatus = internalFactorize(0);
    3663   if (factorizationStatus<0)
    3664     return 1; // some error
     3663  if (factorizationStatus<0) {
     3664    // some error
     3665    // we should either debug or ignore
     3666#ifndef NDEBUG
     3667    printf("***** ClpDual strong branching factorization error - debug\n");
     3668#endif
     3669    return 0;
     3670  }
    36653671  else if (factorizationStatus)
    36663672    handler_->message(CLP_SINGULARITIES,messages_)
Note: See TracChangeset for help on using the changeset viewer.