/[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 2040 by jpye, Wed Apr 29 03:38:10 2009 UTC revision 2041 by jpye, Sat Jun 13 08:06:10 2009 UTC
# Line 439  Simulation::checkStructuralSingularity() Line 439  Simulation::checkStructuralSingularity()
439    
440      struct var_variable **varlist = slv_get_solvers_var_list(sys);      struct var_variable **varlist = slv_get_solvers_var_list(sys);
441      struct rel_relation **rellist = slv_get_solvers_rel_list(sys);      struct rel_relation **rellist = slv_get_solvers_rel_list(sys);
442        int32 nv = slv_get_num_solvers_vars(sys);
443        
444      // pull in the lists of vars and rels, and the freeable vars:      // pull in the lists of vars and rels, and the freeable vars:
445      for(int i=0; ril[i]!=-1; ++i){      for(int i=0; ril[i]!=-1; ++i){
446          sing->rels.push_back( Relation(this, rellist[ril[i]]) );          sing->rels.push_back( Relation(this, rellist[ril[i]]) );
447      }      }
448    
449      for(int i=0; vil[i]!=-1; ++i){      for(int i=0; vil[i]!=-1; ++i){
450            assert(vil[i] < nv);
451          sing->vars.push_back( Variable(this, varlist[vil[i]]) );          sing->vars.push_back( Variable(this, varlist[vil[i]]) );
452      }      }
453    

Legend:
Removed from v.2040  
changed lines
  Added in v.2041

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