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

Diff of /trunk/pygtk/simulation.cpp

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

revision 208 by johnpye, Tue Jan 24 03:19:37 2006 UTC revision 225 by johnpye, Fri Jan 27 14:55:43 2006 UTC
# Line 389  Simulation::getSolver() const{ Line 389  Simulation::getSolver() const{
389  */  */
390  SolverParameters  SolverParameters
391  Simulation::getSolverParameters() const{  Simulation::getSolverParameters() const{
392      if(!sys)throw runtime_error("Can't solve: Simulation system has not been built yet.");      if(!sys)throw runtime_error("Can't getSolverParameters: Simulation system has not been built yet.");
393    
394      slv_parameters_t p;      slv_parameters_t p;
395      slv_get_parameters(sys,&p);      slv_get_parameters(sys,&p);
396      return SolverParameters(p);      return SolverParameters(p);
397  }  }
398    
399    /**
400        Update the solver parameters by passing a new set back
401    */
402    void
403    Simulation::setSolverParameters(SolverParameters &P){
404        if(!sys)throw runtime_error("Can't set solver parameters: simulation has not been built yet.");
405        slv_set_parameters(sys, &(P.getInternalType()));
406    }
407    

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

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