"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cgnstools/calclib/calc.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.

calc.c  (CGNS-4.1.0):calc.c  (CGNS-4.1.1)
skipping to change at line 208 skipping to change at line 208
cgnsCalcFatal ("no data for node"); cgnsCalcFatal ("no data for node");
if (np > CG_MAX_INT32) if (np > CG_MAX_INT32)
cgnsCalcFatal ("exceeded 32-bit integer"); cgnsCalcFatal ("exceeded 32-bit integer");
/* read the data */ /* read the data */
values = (char *) malloc ((size_t)(np * bytes)); values = (char *) malloc ((size_t)(np * bytes));
if (NULL == values) if (NULL == values)
cgnsCalcFatal ("malloc failed for node data"); cgnsCalcFatal ("malloc failed for node data");
if (cgio_read_all_data (cgio, nodeid, values)) { if (cgio_read_all_data_type (cgio, nodeid, type, values)) {
cgio_error_message (errmsg); cgio_error_message (errmsg);
cgnsCalcFatal (errmsg); cgnsCalcFatal (errmsg);
} }
if (np == 1) { if (np == 1) {
vd = vec_create (VEC_VALUE, 0, 1); vd = vec_create (VEC_VALUE, 0, 1);
if (dt == 0) { if (dt == 0) {
int *data = (int *)values; int *data = (int *)values;
vd->f.val = (VECFLOAT)*data; vd->f.val = (VECFLOAT)*data;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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