Commit 3e4c3841 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

compactification

parent d3a37d82
......@@ -583,13 +583,10 @@ template<typename T> class Helper
if ((iu0<bu0) || (iv0<bv0) || (iu0+w>bu0+su) || (iv0+w>bv0+sv))
{
if (write) dump();
if (write) { dump(); fill(data.begin(), data.end(), T(0)); }
bu0=((((iu0+gconf.Nsafe())>>logsquare)<<logsquare))-gconf.Nsafe();
bv0=((((iv0+gconf.Nsafe())>>logsquare)<<logsquare))-gconf.Nsafe();
if (!write)
load();
else
fill(data.begin(), data.end(), T(0));
if (!write) load();
}
p0 = data.data() + sv*(iu0-bu0) + iv0-bv0;
}
......
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