/[ascend]/trunk/pygtk/interface/solver.cpp
ViewVC logotype

Diff of /trunk/pygtk/interface/solver.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 153 by johnpye, Thu Dec 22 10:58:33 2005 UTC revision 154 by johnpye, Thu Dec 22 15:18:02 2005 UTC
# Line 20  extern "C"{ Line 20  extern "C"{
20      Warning, this ctor throws an exception if the name is invalid!      Warning, this ctor throws an exception if the name is invalid!
21  */  */
22  Solver::Solver(const string &name){  Solver::Solver(const string &name){
23      cerr << "CREATING SOLVER, name = " << name << endl;      //cerr << "CREATING SOLVER, name = " << name << endl;
24      this->name = name;      this->name = name;
25  }  }
26    
27  Solver::Solver(const Solver &old){  Solver::Solver(const Solver &old){
28      this->name = old.name;      this->name = old.name;
29      cerr << "COPIED SOLVER, name = " << name << endl;      //cerr << "COPIED SOLVER, name = " << name << endl;
30  }  }
31    
32  const int  const int
# Line 37  Solver::getIndex() const{ Line 37  Solver::getIndex() const{
37          ss << "Unknown or unregistered solver '" << name << "'";          ss << "Unknown or unregistered solver '" << name << "'";
38          throw runtime_error(ss.str());          throw runtime_error(ss.str());
39      }      }
40      cerr << "))))))))))))))SOLVER INDEX RETURNED IS " << index << endl;      //cerr << "))))))))))))))SOLVER INDEX RETURNED IS " << index << endl;
41      return index;      return index;
42  }  }
43    
# Line 81  getSolvers(){ Line 81  getSolvers(){
81  */  */
82  void  void
83  registerStandardSolvers(){  registerStandardSolvers(){
84      cerr << "------------- REGISTERING SOLVERS -----------------" << endl;      //cerr << "------------- REGISTERING SOLVERS -----------------" << endl;
85      registerSolver(slv3_register);      registerSolver(slv3_register);
86      registerSolver(slv9_register);      registerSolver(slv9_register);
87  }  }

Legend:
Removed from v.153  
changed lines
  Added in v.154

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22