Commit 7173cafc authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add const declaration to intent(in) parameters.

parent 47884691
......@@ -53,7 +53,7 @@ PPM_uniform_partition_symmetric(struct PPM_extent set_interval, int nparts,
void
PPM_uniform_partition_nd(int ndims, const struct PPM_extent set_interval[ndims],
int nparts[ndims], int part_idx[ndims],
const int nparts[ndims], const int part_idx[ndims],
struct PPM_extent part_interval[ndims]);
void
......@@ -67,12 +67,17 @@ PPM_uniform_decomposition_1d(struct PPM_extent set_interval, int nparts,
struct PPM_extent parts[nparts],
int symmetric);
/**
* @param symmetric either NULL (no dimension needs symmetric
* decomposition) or array of int where symmetric[i] != 0 if symmetric
* decomposition of dimension i is requested
*/
void
PPM_uniform_decomposition_nd(int ndims,
struct PPM_block_decomposition pgrid[ndims],
struct PPM_extent set_interval[ndims],
int nparts[ndims],
int *symmetric);
const struct PPM_extent set_interval[ndims],
const int nparts[ndims],
const int *symmetric);
/*
* Local Variables:
......
......@@ -97,7 +97,7 @@ PPM_uniform_partition_symmetric(struct PPM_extent set_interval, int nparts,
void
PPM_uniform_partition_nd(int ndims, const struct PPM_extent set_interval[ndims],
int nparts[ndims], int part_idx[ndims],
const int nparts[ndims], const int part_idx[ndims],
struct PPM_extent part_interval[ndims])
{
for (int i = 0; i < ndims; ++i)
......@@ -136,9 +136,9 @@ PPM_uniform_decomposition_1d(struct PPM_extent set_interval, int nparts,
void
PPM_uniform_decomposition_nd(int ndims,
struct PPM_block_decomposition pgrid[ndims],
struct PPM_extent set_interval[ndims],
int nparts[ndims],
int *symmetric)
const struct PPM_extent set_interval[ndims],
const int nparts[ndims],
const int *symmetric)
{
if (symmetric)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment