Changeset 608


Ignore:
Timestamp:
Apr 15, 2005 1:17:02 PM (14 years ago)
Author:
forrest
Message:

add try/catch for readMps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClpModel.cpp

    r603 r608  
    21872187  m.messageHandler()->setPrefix(handler_->prefix());
    21882188  double time1 = CoinCpuTime(),time2;
    2189   int status=m.readMps(fileName,"");
     2189  int status=0;
     2190  try {
     2191    status=m.readMps(fileName,"");
     2192  }
     2193  catch (CoinError e) {
     2194    e.print();
     2195    status=-1;
     2196  }
    21902197  m.messageHandler()->setPrefix(savePrefix);
    21912198  if (!status||ignoreErrors) {
Note: See TracChangeset for help on using the changeset viewer.