"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/tools/cgnsdiff.c" between
CGNS-4.1.0.tar.gz and CGNS-4.1.1.tar.gz

About: The CGNS (CFD General Notation System) provides a standard for recording and recovering computer data associated with the numerical solution of fluid dynamics equations.

cgnsdiff.c  (CGNS-4.1.0):cgnsdiff.c  (CGNS-4.1.1)
skipping to change at line 207 skipping to change at line 207
if (data1 == NULL) { if (data1 == NULL) {
fprintf (stderr, "%s:malloc failed for node data\n", name1); fprintf (stderr, "%s:malloc failed for node data\n", name1);
exit (1); exit (1);
} }
data2 = malloc (bytes); data2 = malloc (bytes);
if (data2 == NULL) { if (data2 == NULL) {
fprintf (stderr, "%s:malloc failed for node data\n", name2); fprintf (stderr, "%s:malloc failed for node data\n", name2);
exit (1); exit (1);
} }
if (cgio_read_all_data_type (cgio1, id1, type1, data1)) if (cgio_read_all_data_type (cgio1, id1, type1, data1))
err_exit (name1, "cgio_read_all_data"); err_exit (name1, "cgio_read_all_data_type");
if (cgio_read_all_data_type (cgio2, id2, type2, data2)) if (cgio_read_all_data_type (cgio2, id2, type2, data2))
err_exit (name2, "cgio_read_all_data"); err_exit (name2, "cgio_read_all_data_type");
if (tol > 0.0 && n) { if (tol > 0.0 && n) {
if (n == 4) if (n == 4)
err = compare_floats (bytes >> 2, data1, data2); err = compare_floats (bytes >> 2, data1, data2);
else else
err = compare_doubles (bytes >> 3, data1, data2); err = compare_doubles (bytes >> 3, data1, data2);
} }
else { else {
err = compare_bytes (bytes, (unsigned char *)data1, err = compare_bytes (bytes, (unsigned char *)data1,
(unsigned char *)data2); (unsigned char *)data2);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)