"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cgns_io.c" between
CGNS-4.1.2.tar.gz and CGNS-4.2.0.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.

cgns_io.c  (CGNS-4.1.2):cgns_io.c  (CGNS-4.2.0)
skipping to change at line 1272 skipping to change at line 1272
ADFH_Get_Number_of_Dimensions(id_inp, &ndims, &ierr); ADFH_Get_Number_of_Dimensions(id_inp, &ndims, &ierr);
if (ierr > 0) return set_error(ierr); if (ierr > 0) return set_error(ierr);
if (ndims > 0) { if (ndims > 0) {
ADFH_Get_Dimension_Values(id_inp, dims, &ierr); ADFH_Get_Dimension_Values(id_inp, dims, &ierr);
if (ierr > 0) return set_error(ierr); if (ierr > 0) return set_error(ierr);
data_size = compute_data_size(data_type, ndims, dims); data_size = compute_data_size(data_type, ndims, dims);
if (data_size) { if (data_size) {
data = malloc((size_t)data_size); data = malloc((size_t)data_size);
if (data == NULL) return set_error(CGIO_ERR_MALLOC); if (data == NULL) return set_error(CGIO_ERR_MALLOC);
ADFH_Read_All_Data(id_inp, NULL, (char *)data, &ierr); ADFH_Read_All_Data(id_inp, data_type, (char *)data, &ierr);
if (ierr > 0) { if (ierr > 0) {
free(data); free(data);
return set_error(ierr); return set_error(ierr);
} }
} }
} }
} }
#endif #endif
else { else {
return set_error(CGIO_ERR_FILE_TYPE); return set_error(CGIO_ERR_FILE_TYPE);
 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)