Skip to content
Snippets Groups Projects
Commit b32b0304 authored by Matti Rauter's avatar Matti Rauter
Browse files

BUG: Added offset to releaseAreaMapping/rasterfile

parent 5dde4b68
Branches
Tags
No related merge requests found
......@@ -563,19 +563,18 @@ int main(int argc, char *argv[])
Switch linInterpol = interpolation == "linear";
Switch nnInterpol = interpolation == "nearestneighbor";
if (linInterpol)
{
forAll(c.internalField(), vi)
{
f[vi] = grid.interpolate(c[vi].x(), c[vi].y());
f[vi] = grid.interpolate(c[vi].x()-offset.x(), c[vi].y()-offset.y());
}
}
else if (nnInterpol)
{
forAll(c.internalField(), vi)
{
f[vi] = grid.interpolateNN(c[vi].x(), c[vi].y());
f[vi] = grid.interpolateNN(c[vi].x()-offset.x(), c[vi].y()-offset.y());
}
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment