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

avoid nu, nv which are too small

parent fc601ac0
......@@ -643,8 +643,9 @@ class GridderConfig
GridderConfig(size_t nxdirty, size_t nydirty,
double epsilon, double pixsize_x, double pixsize_y, size_t nthreads_)
: GridderConfig(nxdirty, nydirty, 2*nxdirty, 2*nydirty, epsilon,
pixsize_x, pixsize_y, nthreads_) {}
: GridderConfig(nxdirty, nydirty, max<size_t>(30,2*nxdirty),
max<size_t>(30,2*nydirty), epsilon, pixsize_x,
pixsize_y, nthreads_) {}
size_t Nxdirty() const { return nx_dirty; }
size_t Nydirty() const { return ny_dirty; }
double Epsilon() const { return eps; }
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