Skip to content
Snippets Groups Projects
Commit 99b1f72e authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Move declaration of function to header and rename.

parent 4ccb3ea7
No related branches found
No related tags found
No related merge requests found
......@@ -744,10 +744,6 @@ struct passPlan
int varStart, varEnd;
};
void
deco1D_CCP(size_t n, const size_t weightPfxSums[n],
size_t nparts, size_t separators[nparts + 1]);
/**
* @param[out] passes_ pointer to pointer to 2-dimensional array of
* records of dimensions $number of passes \cdot number of collectors$,
......@@ -793,8 +789,8 @@ planPasses(size_t streamIdx, const struct streamMapping *mapping,
* instead */
numPasses = 1;
struct passPlan *passes = Malloc(sizeof (*passes) * collSize);
deco1D_CCP(numWrittenRecords, recordDataSizePfxSums,
collSize, recordSeparations);
cdiPioDeco1D_CCP(numWrittenRecords, recordDataSizePfxSums,
collSize, recordSeparations);
for (size_t rank = 0; rank < collSize; ++rank)
{
size_t startRecord = recordSeparations[rank],
......
......@@ -198,8 +198,8 @@ cdiPioQueryVarDims(int varShape[3], int vlistID, int varID)
void
deco1D_CCP(size_t nelems, const size_t *restrict weightPfxSums,
size_t nparts, size_t *restrict separators)
cdiPioDeco1D_CCP(size_t nelems, const size_t *restrict weightPfxSums,
size_t nparts, size_t *restrict separators)
{
separators[0] = 0;
separators[nparts] = nelems;
......
......@@ -105,6 +105,10 @@ void printArray ( const char *, const char *, const void *, int, int, const char
int
cdiPioQueryVarDims(int varShape[3], int vlistID, int varID);
void
cdiPioDeco1D_CCP(size_t n, const size_t weightPfxSums[n],
size_t nparts, size_t separators[nparts + 1]);
#endif
/*
* Local Variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment