/[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 773 by johnpye, Fri Jul 14 06:03:47 2006 UTC revision 774 by johnpye, Fri Jul 14 08:01:48 2006 UTC
# Line 222  Simulation::getSingularityInfo() const{ Line 222  Simulation::getSingularityInfo() const{
222    
223  void  void
224  Simulation::run(const Method &method){  Simulation::run(const Method &method){
225        Instanc &model = getModel();
226        this->run(method,model);
227    }
228    
229    void
230    Simulation::run(const Method &method, Instanc &model){
231    
232      cerr << "RUNNING PROCEDURE " << method.getName() << endl;      cerr << "RUNNING PROCEDURE " << method.getName() << endl;
233      Nam name = Nam(method.getSym());      Nam name = Nam(method.getSym());
234      //cerr << "CREATED NAME '" << name.getName() << "'" << endl;      //cerr << "CREATED NAME '" << name.getName() << "'" << endl;
235      Proc_enum pe;      Proc_enum pe;
236      pe = Initialize(      pe = Initialize(
237          &*(getModel().getInternalType()) ,name.getInternalType(), "__not_named__"          &*(model.getInternalType()) ,name.getInternalType(), "__not_named__"
238          ,ASCERR          ,ASCERR
239          ,0, NULL, NULL          ,0, NULL, NULL
240      );      );
# Line 303  Simulation::run(const Method &method){ Line 310  Simulation::run(const Method &method){
310                  ss << "Invalid error code";                  ss << "Invalid error code";
311          }          }
312    
   
313          ss << " (" << int(pe) << ")";          ss << " (" << int(pe) << ")";
314          throw runtime_error(ss.str());          throw runtime_error(ss.str());
315      }      }

Legend:
Removed from v.773  
changed lines
  Added in v.774

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