ENH: interpolateXY: enable UList parameters for wider applications

This commit is contained in:
Kutalmis Bercin
2022-01-05 09:44:57 +00:00
committed by Andrew Heather
parent 7460fb259b
commit ab976a5ac0
2 changed files with 6 additions and 4 deletions

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011 OpenFOAM Foundation
Copyright (C) 2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -58,8 +59,8 @@ template<class Type>
Type interpolateXY
(
const scalar x,
const scalarField& xOld,
const Field<Type>& yOld
const UList<scalar>& xOld,
const UList<Type>& yOld
)
{
label n = xOld.size();

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -61,8 +62,8 @@ template<class Type>
Type interpolateXY
(
const scalar x,
const scalarField& xOld,
const Field<Type>& yOld
const UList<scalar>& xOld,
const UList<Type>& yOld
);