Commit 0d6ad936 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Fix gcc warning.

parent 2724ef97
......@@ -20,8 +20,8 @@
static void
remapFirstOrder(double *restrict dst_array, const RemapVars &rv, const double *restrict src_array)
{
const auto num_links = rv.num_links;
const auto num_wts = rv.num_wts;
auto num_links = rv.num_links;
auto num_wts = rv.num_wts;
const auto &map_wts = rv.wts;
const auto &dst_add = rv.tgt_cell_add;
const auto &src_add = rv.src_cell_add;
......@@ -40,7 +40,7 @@ remapFirstOrder(double *restrict dst_array, const RemapVars &rv, const double *r
const size_t *restrict dst_addx = links.dst_add[j];
const size_t *restrict src_addx = links.src_add[j];
const size_t *restrict windex = links.w_index[j];
const auto nlinks = links.num_links[j];
auto nlinks = links.num_links[j];
#ifdef HAVE_OPENMP4
#pragma omp parallel for simd default(none) shared(nlinks, dst_array, src_array, dst_addx, src_addx, map_wts, num_wts, windex)
......@@ -56,7 +56,7 @@ remapFirstOrder(double *restrict dst_array, const RemapVars &rv, const double *r
long lpv = links_per_value;
if (lpv > 0)
{
const size_t nlinks = num_links / lpv;
size_t nlinks = num_links / lpv;
if (lpv == 1)
{
......
......@@ -851,9 +851,9 @@ remapGradients(RemapGrid &grid, const std::vector<bool> &mask, const double *res
{
if (grid.rank != 2) cdoAbort("Internal problem (remapGradients), grid rank = %d!", grid.rank);
const size_t grid_size = grid.size;
const size_t nx = grid.dims[0];
const size_t ny = grid.dims[1];
size_t grid_size = grid.size;
size_t nx = grid.dims[0];
size_t ny = grid.dims[1];
#ifdef _OPENMP
#pragma omp parallel for default(none) shared(grid_size, gradients, grid, nx, ny, array, mask)
......
Supports Markdown
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