/[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 1132 by johnpye, Sat Jan 13 06:11:02 2007 UTC revision 1133 by johnpye, Sun Jan 14 11:51:48 2007 UTC
# Line 549  Simulation::build(){ Line 549  Simulation::build(){
549      Get solver parameters struct wrapped up as a SolverParameters class.      Get solver parameters struct wrapped up as a SolverParameters class.
550  */  */
551  SolverParameters  SolverParameters
552  Simulation::getSolverParameters() const{  Simulation::getParameters() const{
553      //if(!is_built)throw runtime_error("Can't getSolverParameters: Simulation system has not been built yet.");      //if(!is_built)throw runtime_error("Can't getSolverParameters: Simulation system has not been built yet.");
554      if(!sys)throw runtime_error("Can't getSolverParameters: Simulation system has no 'sys' assigned.");      if(!sys)throw runtime_error("Can't getSolverParameters: Simulation system has no 'sys' assigned.");
555    
# Line 562  Simulation::getSolverParameters() const{ Line 562  Simulation::getSolverParameters() const{
562      Update the solver parameters by passing a new set back      Update the solver parameters by passing a new set back
563  */  */
564  void  void
565  Simulation::setSolverParameters(SolverParameters &P){  Simulation::setParameters(SolverParameters &P){
566      if(!sys)throw runtime_error("Can't set solver parameters: simulation has not been built yet.");      if(!sys)throw runtime_error("Can't set solver parameters: simulation has not been built yet.");
567      CONSOLE_DEBUG("Calling slv_set_parameters");      CONSOLE_DEBUG("Calling slv_set_parameters");
568      slv_set_parameters(sys, &(P.getInternalType()));      slv_set_parameters(sys, &(P.getInternalType()));

Legend:
Removed from v.1132  
changed lines
  Added in v.1133

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