diff --git a/applications/utilities/releaseAreaMapping/releaseAreaMapping.C b/applications/utilities/releaseAreaMapping/releaseAreaMapping.C index c9f2aa8504903c9de0d9199ccfb3070a877ef378..b4fdd9e67356f5c3c3baf84718b6c260e37c5500 100644 --- a/applications/utilities/releaseAreaMapping/releaseAreaMapping.C +++ b/applications/utilities/releaseAreaMapping/releaseAreaMapping.C @@ -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