/[ascend]/trunk/ascend4/solver/slv0.c
ViewVC logotype

Diff of /trunk/ascend4/solver/slv0.c

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

revision 1 by aw0a, Fri Oct 29 20:54:12 2004 UTC revision 2 by aw0a, Fri Nov 5 21:21:36 2004 UTC
# Line 3238  static void slv0_iterate(slv_system_t se Line 3238  static void slv0_iterate(slv_system_t se
3238    
3239        minor++;        minor++;
3240    
3241    /* code by AWW to eliminate runaway minor loop */
3242        int32 maxMinorIterations;
3243        maxMinorIterations = 30;
3244        if(minor >= maxMinorIterations){
3245          FPRINTF(stderr,"\nslv0: Too many minor iterations. Check variables on bounds.\n");
3246          sys->s.inconsistent = TRUE;
3247          iteration_ends(sys);
3248          update_status(sys);
3249          return;
3250        }
3251    
3252    /* end of code by AWW */
3253    
3254    
3255        if (first) {        if (first) {
3256       change_maxstep(sys, MAXDOUBLE);       change_maxstep(sys, MAXDOUBLE);
3257       first = FALSE;       first = FALSE;

Legend:
Removed from v.1  
changed lines
  Added in v.2

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