/[ascend]/trunk/pygtk/solverstatus.cpp
ViewVC logotype

Diff of /trunk/pygtk/solverstatus.cpp

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

revision 1548 by jpye, Sun Jun 10 05:09:34 2007 UTC revision 1549 by jpye, Mon Jul 23 14:30:35 2007 UTC
# Line 1  Line 1 
1  #include "solverstatus.h"  #include "solverstatus.h"
2  #include "simulation.h"  #include "simulation.h"
3    
4    #include <stdexcept>
5    
6  extern "C"{  extern "C"{
7  #include <solver/solver.h>  #include <solver/solver.h>
8  }  }
# Line 15  SolverStatus::SolverStatus(const SolverS Line 17  SolverStatus::SolverStatus(const SolverS
17    
18  void  void
19  SolverStatus::getSimulationStatus(Simulation &sim){  SolverStatus::getSimulationStatus(Simulation &sim){
20      slv_get_status(sim.getSystem(), &s);      int res = slv_get_status(sim.getSystem(), &s);
21        if(res)throw std::runtime_error("Error requesting solver status");
22  }  }
23    
24  const bool  const bool

Legend:
Removed from v.1548  
changed lines
  Added in v.1549

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