COMP: Function1 - propagated API change resulting from new objectRegistry access

This commit is contained in:
Andrew Heather
2021-10-05 10:13:24 +01:00
committed by Mark Olesen
parent c1a04abd96
commit 70b55be684
48 changed files with 332 additions and 204 deletions

View File

@ -65,10 +65,11 @@ template<class Type>
Foam::Function1Types::Polynomial<Type>::Polynomial
(
const word& entryName,
const dictionary& dict
const dictionary& dict,
const objectRegistry* obrPtr
)
:
Function1<Type>(entryName, dict),
Function1<Type>(entryName, dict, obrPtr),
coeffs_(),
canIntegrate_(true)
{
@ -104,10 +105,11 @@ template<class Type>
Foam::Function1Types::Polynomial<Type>::Polynomial
(
const word& entryName,
const List<Tuple2<Type, Type>>& coeffs
const List<Tuple2<Type, Type>>& coeffs,
const objectRegistry* obrPtr
)
:
Function1<Type>(entryName),
Function1<Type>(entryName, obrPtr),
coeffs_(coeffs),
canIntegrate_(true)
{

View File

@ -108,14 +108,20 @@ public:
// Constructors
//- Construct from entry name and dictionary
Polynomial(const word& entryName, const dictionary& dict);
//- Construct from entry name, dictionary and optional registry
Polynomial
(
const word& entryName,
const dictionary& dict,
const objectRegistry* obrPtr = nullptr
);
//- Construct from components
Polynomial
(
const word& entryName,
const List<Tuple2<Type, Type>>& coeffs
const List<Tuple2<Type, Type>>& coeffs,
const objectRegistry* obrPtr = nullptr
);
//- Copy constructor