COIN-OR::LEMON - Graph Library

Changeset 584:0fec6a017ead in lemon


Ignore:
Timestamp:
02/23/09 22:54:25 (9 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Message:

Fix GLPK tests (#213)

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lemon/glpk.cc

    r485 r584  
    521521    rows.clear(); 
    522522    cols.clear(); 
     523  } 
     524 
     525  void GlpkBase::freeEnv() { 
     526    glp_free_env(); 
    523527  } 
    524528 
  • lemon/glpk.h

    r485 r584  
    102102 
    103103  public: 
     104 
     105    /// \brief Deallocates the globally allocated memory of GLPK. 
     106 
     107    /// Deallocates the globally allocated memory of GLPK.  \note 
     108    /// Usually, it do not have to be called, because the GLPK use 
     109    /// only a small amount of global memory, and it is deallocated 
     110    /// automatically at the end of program. 
     111    static void freeEnv(); 
    104112 
    105113    ///Pointer to the underlying GLPK data structure. 
  • test/lp_test.cc

    r485 r584  
    367367    aTest(lp_glpk2); 
    368368  } 
     369  GlpkLp::freeEnv(); 
    369370#endif 
    370371 
  • test/mip_test.cc

    r485 r584  
    116116    aTest(mip1); 
    117117  } 
     118  GlpkLp::freeEnv(); 
    118119#endif 
    119120 
Note: See TracChangeset for help on using the changeset viewer.