/[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 1116 by johnpye, Thu Jan 11 04:07:02 2007 UTC revision 1117 by johnpye, Thu Jan 11 10:57:24 2007 UTC
# Line 613  Simulation::getFixableVariables(){ Line 613  Simulation::getFixableVariables(){
613      return vars;      return vars;
614  }  }
615    
616    vector<Variable>
617    Simulation::getFixedVariables(){
618        if(!sys)throw runtime_error("Simulation system not build yet");
619        vector<Variable> vars;
620        var_variable **vlist = slv_get_solvers_var_list(sys);
621        unsigned long nvars = slv_get_num_solvers_vars(sys);
622        for(int i=0;i<nvars;++i){
623            if(!var_fixed(vlist[i]))continue;
624            vars.push_back(Variable(this,vlist[i]));
625        }
626        return vars;
627    }
628    
629  /**  /**
630      Get the list of variables near their bounds. Helps to indentify why      Get the list of variables near their bounds. Helps to indentify why
631      you might be having non-convergence problems.      you might be having non-convergence problems.

Legend:
Removed from v.1116  
changed lines
  Added in v.1117

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