mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: additional constructors for IjkField
This commit is contained in:
@ -36,7 +36,8 @@ template<class T>
|
||||
Ostream& print(const IjkField<T>& fld)
|
||||
{
|
||||
Info<< static_cast<const Field<T>&>(fld).size()
|
||||
<< " " << fld.sizes() << ' ' << flatOutput(fld);
|
||||
<< " addr:" << long(fld.cdata()) << ' ' << fld.sizes() << ' '
|
||||
<< flatOutput(fld);
|
||||
|
||||
return Info;
|
||||
}
|
||||
@ -102,6 +103,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< "/= operator: "; print(field1) << nl;
|
||||
|
||||
IjkField<scalar> field3(std::move(field2));
|
||||
|
||||
Info<< "Move construct: "; print(field2) << nl;
|
||||
print(field3) << nl;
|
||||
|
||||
// Field operations are still limited, but we can bypass things too
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user