/[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 207 by johnpye, Mon Jan 23 06:47:06 2006 UTC revision 208 by johnpye, Tue Jan 24 03:19:37 2006 UTC
# Line 48  extern "C"{ Line 48  extern "C"{
48    
49  #include "simulation.h"  #include "simulation.h"
50  #include "solver.h"  #include "solver.h"
51    #include "solverparameters.h"
52  #include "name.h"  #include "name.h"
53    
54  /**  /**
# Line 383  Simulation::getSolver() const{ Line 384  Simulation::getSolver() const{
384  }  }
385    
386    
387    /**
388        Get solver parameters struct wrapped up as a SolverParameters class.
389    */
390    SolverParameters
391    Simulation::getSolverParameters() const{
392        if(!sys)throw runtime_error("Can't solve: Simulation system has not been built yet.");
393    
394        slv_parameters_t p;
395        slv_get_parameters(sys,&p);
396        return SolverParameters(p);
397    }
398    

Legend:
Removed from v.207  
changed lines
  Added in v.208

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