This commit is contained in:
Shahram Najm 2017-08-24 10:49:17 +01:00
parent fcccf9438f
commit 36dc5e38db
2 changed files with 6 additions and 2 deletions

View File

@ -15,11 +15,13 @@
***************************************************************************/
#include "grib_api_internal.h"
/* For debugging purposes */
void grib_darray_print(const char* title, const grib_darray* darray)
{
Assert(darray);
size_t i;
printf("%s: darray.n = %ld\t", title, darray->n);
printf("%s: darray.n=%ld \t", title, darray->n);
for (i=0; i<darray->n; i++) {
printf("darray[%ld]=%g\t", i, darray->v[i]);
}

View File

@ -15,11 +15,13 @@
***************************************************************************/
#include "grib_api_internal.h"
/* For debugging purposes */
void grib_iarray_print(const char* title, const grib_iarray* iarray)
{
Assert(iarray);
size_t i;
printf("%s: iarray.n = %ld\t", title, iarray->n);
printf("%s: iarray.n=%ld \t", title, iarray->n);
for (i=0; i<iarray->n; i++) {
printf("iarray[%ld]=%ld\t", i, iarray->v[i]);
}