From cb3903711297218b3e12d66702b0171c147d0581 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 3 Oct 2013 15:44:16 +0100 Subject: [PATCH] ENH: interpolationCellPoint: use cached volPointInterpolation --- .../interpolationCellPoint/interpolationCellPoint.C | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/interpolationCellPoint.C b/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/interpolationCellPoint.C index a20e80e846..3ef318e156 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/interpolationCellPoint.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/interpolationCellPoint.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -35,7 +35,15 @@ Foam::interpolationCellPoint::interpolationCellPoint ) : interpolation(psi), - psip_(volPointInterpolation::New(psi.mesh()).interpolate(psi)) + psip_ + ( + volPointInterpolation::New(psi.mesh()).interpolate + ( + psi, + "volPointInterpolate(" + psi.name() + ')', + true + ) + ) { // Uses cellPointWeight to do interpolation which needs tet decomposition (void)psi.mesh().tetBasePtIs();