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

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

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

revision 501 by johnpye, Fri Feb 24 06:05:10 2006 UTC revision 502 by johnpye, Tue Apr 18 12:57:30 2006 UTC
# Line 171  Simulation::checkStructuralSingularity() Line 171  Simulation::checkStructuralSingularity()
171      }      }
172      ascfree(vil);      ascfree(vil);
173      ascfree(ril);      ascfree(ril);
174      ascfree(fil);        ascfree(fil);
175  }  }
176    
177  void  void
# Line 271  Simulation::check(){ Line 271  Simulation::check(){
271      cerr << "...DONE CHECKING" << endl;      cerr << "...DONE CHECKING" << endl;
272      this->checkConsistency();      this->checkConsistency();
273      this->checkStructuralSingularity();      this->checkStructuralSingularity();
274        return true;
275  }  }
276    
277  void  void
# Line 374  Simulation::getVariablesNearBounds(const Line 375  Simulation::getVariablesNearBounds(const
375      ascfree(vip);      ascfree(vip);
376      return vars;      return vars;
377  }  }
378        
379  void  void
380  Simulation::solve(Solver solver, SolverReporter &reporter){  Simulation::solve(Solver solver, SolverReporter &reporter){
381      if(!is_built){      if(!is_built){
# Line 420  Simulation::solve(Solver solver, SolverR Line 421  Simulation::solve(Solver solver, SolverR
421          }          }
422    
423          status.getSimulationStatus(*this);          status.getSimulationStatus(*this);
424            
425          if(reporter.report(&status)){          if(reporter.report(&status)){
426              stop = true;              stop = true;
427          }          }
# Line 520  Simulation::getIncidenceMatrix(){ Line 521  Simulation::getIncidenceMatrix(){
521      return IncidenceMatrix(*this);      return IncidenceMatrix(*this);
522  }  }
523    
524  const string  const string
525  Simulation::getInstanceName(const Instanc &i) const{  Simulation::getInstanceName(const Instanc &i) const{
526      char *n;      char *n;
527      n = WriteInstanceNameString(i.getInternalType(),simroot.getInternalType());      n = WriteInstanceNameString(i.getInternalType(),simroot.getInternalType());

Legend:
Removed from v.501  
changed lines
  Added in v.502

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