Commit b36440b7 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

TEMP: trying to fix bug found by Philipp

parent 0b5cbdf1
......@@ -29,7 +29,8 @@
#include "pocketfft_hdronly.h"
#ifdef __GNUC__
#define RESTRICT __restrict__
//#define RESTRICT __restrict__
#define RESTRICT
#define NOINLINE __attribute__ ((noinline))
#else
#define RESTRICT
......@@ -903,8 +904,8 @@ template<typename T, typename T2=complex<T>> class Helper
bv0=((((iv0+nsafe)>>logsquare)<<logsquare))-nsafe;
if (grid_r) load();
}
p0r = rbuf.data() + sv*(iu0-bu0) + iv0-bv0;
p0w = wbuf.data() + sv*(iu0-bu0) + iv0-bv0;
p0r = grid_r ? rbuf.data() + sv*(iu0-bu0) + iv0-bv0 : nullptr;
p0w = grid_w ? wbuf.data() + sv*(iu0-bu0) + iv0-bv0 : nullptr;
}
};
......@@ -1316,7 +1317,7 @@ template<typename T> pyarr_c<complex<T>> apply_holo(
template<typename T> pyarr_c<T> get_correlations(
const Baselines<T> &baselines, const GridderConfig<T> &gconf,
const pyarr<uint32_t> &idx_, int du, int dv, py::object &wgt_)
const pyarr<uint32_t> &idx_, int du, int dv, const py::object &wgt_)
{
size_t nu=gconf.Nu(), nv=gconf.Nv();
size_t w = gconf.W();
......
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