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

Diff of /trunk/pygtk/interface/simulation.cpp

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

revision 253 by johnpye, Wed Feb 1 06:29:46 2006 UTC revision 254 by johnpye, Thu Feb 2 06:27:17 2006 UTC
# Line 338  Simulation::solve(Solver solver){ Line 338  Simulation::solve(Solver solver){
338          ERROR_REPORTER_NOLINE(ASC_USER_SUCCESS,"Solver converged: %d iterations (%.2f s)"          ERROR_REPORTER_NOLINE(ASC_USER_SUCCESS,"Solver converged: %d iterations (%.2f s)"
339              ,status.iteration,elapsed);              ,status.iteration,elapsed);
340      }else{      }else{
341          ERROR_REPORTER_NOLINE(ASC_USER_ERROR,"Solver not converged after %d iterations (%.2f s).",status.iteration,elapsed);          ERROR_REPORTER_NOLINE(ASC_USER_ERROR,"Solver not converged in block %d after overall %d iterations"
342                " (%.2f s).",status.block.current_block,status.iteration,elapsed);
343            IncidenceMatrix inc = getIncidenceMatrix();
344            vector<Variable> v = inc.getBlockVars(status.block.current_block);
345    
346            for(vector<Variable>::iterator vi = v.begin(); vi < v.end(); ++vi){
347                cerr << vi->getName() << " = " << vi->getValue() << endl;
348            }
349            ERROR_REPORTER_NOLINE(ASC_USER_ERROR,
350                "The names of the variables in the current block have been output to the console");
351      }      }
352    
353  }  }

Legend:
Removed from v.253  
changed lines
  Added in v.254

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