Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions include/nc4internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#ifndef _NC4INTERNAL_
#define _NC4INTERNAL_
#include "netcdf.h"

#include "config.h"
#include <stdio.h>
Expand All @@ -23,12 +24,12 @@
#include "ncindex.h"
#include "nc_provenance.h"


#include "netcdf_f.h"
#include "netcdf_mem.h"
#ifdef USE_PARALLEL
#include "netcdf_par.h"
#endif /* USE_PARALLEL */
#include "netcdf.h"
#include "netcdf_f.h"
#include "netcdf_mem.h"

/* Always needed */
#include "nc.h"
Expand Down
3 changes: 2 additions & 1 deletion include/nc_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "netcdf.h"
#include "nc_logging.h"
#ifdef USE_PARALLEL
#include "netcdf_par.h"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to have netcdf_par.h #include netcdf.h?

#endif
#include "netcdf.h"


/** NC_MAX_DIMS for tests. Allows different NC_MAX_DIMS values
* without breaking this test with a heap or stack overflow. */
Expand Down
9 changes: 5 additions & 4 deletions libdap2/dapdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*********************************************************************/

#include "config.h"
#include "netcdf.h"
#ifdef USE_PARALLEL
#include "netcdf_par.h"
#endif
Expand Down Expand Up @@ -91,7 +92,7 @@ dumpmetadata(int ncid, NChdr** hdrp)
CHECK(stat);
fprintf(stdout,"dim[%d]: name=%s size=%lu\n",
i,hdr->dims[i].name,(unsigned long)hdr->dims[i].size);
}
}
hdr->vars = (Var*)malloc(hdr->nvars*sizeof(Var));
MEMCHECK(hdr->vars,NC_ENOMEM);
for(i=0;i<hdr->nvars;i++) {
Expand Down Expand Up @@ -145,7 +146,7 @@ dumpmetadata(int ncid, NChdr** hdrp)
}
fprintf(stdout,"\n");
}
}
}
fflush(stdout);
return NC_NOERR;
}
Expand Down Expand Up @@ -338,7 +339,7 @@ dumptreer(CDFnode* root, NCbytes* buf, int indent, int visible)
ncbytescat(buf," ");
ncbytescat(buf,(root->ncbasename?root->ncbasename:"<?>"));
break;
default: break;
default: break;
}

if(nclistlength(root->array.dimsetplus) > 0) dimset = root->array.dimsetplus;
Expand Down Expand Up @@ -415,7 +416,7 @@ dumpnode(CDFnode* node)
default: break;
}
break;
default: break;
default: break;
}
snprintf(tmp,sizeof(tmp),"%s %s {\n",
(nctype?nctype:primtype),node->ocname);
Expand Down