diff --git a/src/grid.hpp b/src/grid.hpp index 7265c38..76f488a 100644 --- a/src/grid.hpp +++ b/src/grid.hpp @@ -94,8 +94,8 @@ static std::array mapNeigbourIndexToRank(const std::array mapNeighbourRankToIndex(const std::array& indexToRankMap, int32_t numRanks) { - std::vector indices(static_cast(numRanks), MPI_PROC_NULL); +static std::vector mapNeighbourRankToIndex(const std::array& indexToRankMap, int32_t numRanks) { + std::vector indices(static_cast(numRanks), MPI_PROC_NULL); std::for_each(indexToRankMap.cbegin(), indexToRankMap.cend(), [&indices, &numRanks, n = 0u](int32_t rank) mutable { if (rank >= 0 && numRanks > rank) { indices[static_cast(rank)] = static_cast(n); @@ -627,7 +627,7 @@ template class FsGrid { MPI_PROC_NULL, MPI_PROC_NULL, MPI_PROC_NULL, MPI_PROC_NULL, MPI_PROC_NULL, MPI_PROC_NULL, }; //!< Lookup table from rank to index in the neighbour array - const std::vector neighbourRankToIndex = {}; + const std::vector neighbourRankToIndex = {}; //!< Type containing data computed from FsGrid values that are constant for all stencils const StencilConstants stencilConstants = {};