Changeset 433


Ignore:
Timestamp:
Sep 10, 2004 5:25:52 PM (15 years ago)
Author:
forrest
Message:

for gz failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Test/unitTest.cpp

    r393 r433  
    634634    CoinMpsIO m;
    635635    std::string fn = netlibDir+"finnis";
    636     m.readMps(fn.c_str(),"mps");
     636    int returnCode = m.readMps(fn.c_str(),"mps");
     637    if (returnCode) {
     638      // probable cause is that gz not there
     639      fprintf(stderr,"Unable to open finnis.mps in COIN/Mps/Netlib!\n");
     640      fprintf(stderr,"Most probable cause is finnis.mps is gzipped i.e. finnis.mps.gz and libz has not been activated\n");
     641      fprintf(stderr,"Either gunzip files or edit Makefiles/Makefile.location to get libz\n");
     642      exit(999);
     643    }
    637644    ClpModel model;
    638645    model.loadProblem(*m.getMatrixByCol(),m.getColLower(),
Note: See TracChangeset for help on using the changeset viewer.