SubField: Added assignment to Type

This commit is contained in:
Henry Weller
2020-03-03 09:09:16 +00:00
parent d98efdbcb3
commit d513d8dc85
2 changed files with 12 additions and 2 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -116,6 +116,9 @@ public:
//- Assignment via UList operator. Takes linear time.
inline void operator=(const Field<Type>&);
//- Assignment via UList operator. Takes linear time.
inline void operator=(const Type&);
//- Assignment via UList operator. Takes linear time.
template<class Form, direction Ncmpts>
inline void operator=(const VectorSpace<Form, Type, Ncmpts>&);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -122,6 +122,13 @@ inline void Foam::SubField<Type>::operator=(const Field<Type>& rhs)
}
template<class Type>
inline void Foam::SubField<Type>::operator=(const Type& rhs)
{
SubList<Type>::operator=(rhs);
}
template<class Type>
template<class Form, Foam::direction Ncmpts>
inline void Foam::SubField<Type>::operator=