/[ascend]/trunk/models/johnpye/fprops/test/sat.c
ViewVC logotype

Diff of /trunk/models/johnpye/fprops/test/sat.c

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

revision 2679 by jpye, Mon Jan 28 02:00:37 2013 UTC revision 2680 by jpye, Mon Jan 28 06:30:25 2013 UTC
# Line 116  int main(void){ Line 116  int main(void){
116          if(nerr)errfluids[nerrfluids++] = helmfluids[i];          if(nerr)errfluids[nerrfluids++] = helmfluids[i];
117      }      }
118    
119      MSG("There were %d fluids with saturation curve errors:",nerrfluids);      if(nerrfluids){
120      for(i=0; i<nerrfluids; ++i){          MSG("There were %d fluids with saturation curve errors:",nerrfluids);
121          fprintf(stderr,"  %s",errfluids[i]);          for(i=0; i<nerrfluids; ++i){
122                fprintf(stderr,"  %s",errfluids[i]);
123            }
124        }
125        if(nloggederrors){
126            fprintf(stderr,"\n");
127            MSG("First %d of the %d errors logged:",MAXNLOGGEDERRORS,nloggederrors);
128            fprintf(stderr,"%s",errorlog);
129      }      }
     fprintf(stderr,"\n");  
     MSG("First %d of the %d errors logged:",MAXNLOGGEDERRORS,nloggederrors);  
     fprintf(stderr,"%s",errorlog);  
130    
131      if(nerrfluids)return nerrfluids;      if(nerrfluids)return nerrfluids;
132    
133        fprintf(stderr,"\n");
134        color_on(stderr,ASC_FG_BRIGHTGREEN);
135        fprintf(stderr,"SUCCESS (%s)",__FILE__);
136        color_off(stderr);
137        fprintf(stderr,"\n");
138      return 0;      return 0;
139  }  }
140    

Legend:
Removed from v.2679  
changed lines
  Added in v.2680

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