Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/main.c
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/main.c

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

revision 653, Mon Mar 21 00:31:29 2011 UTC revision 654, Mon Mar 21 17:10:54 2011 UTC
# Line 70  Line 70 
70          exit (8);          exit (8);
71      }      }
72    
     float minV = HUGE_VAL;  
     float maxV = -HUGE_VAL;  
73      for (int i = 0;  i < wrld->numStrands;  i++) {      for (int i = 0;  i < wrld->numStrands;  i++) {
74          float outV = getOutf (wrld->inState[i]);          Diderot_Strands[0]->print (outS, wrld->inState[i]);
         if (outV < minV) minV = outV;  
         if (outV > maxV) maxV = outV;  
         fprintf (outS, "%f\n", outV);  
75      }      }
76      fclose (outS);      fclose (outS);
 printf("value range = [%f .. %f]\n", minV, maxV);  
77    
78      return 0;      return 0;
79    

Legend:
Removed from v.653  
changed lines
  Added in v.654

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0