This PR adds a Field constructor that allows to copy construct from existing host memory data.
The motivation for this PR is to simplify creating NeoFOAM fields from existing OpenFOAM data structures. Additionally it adds constructor for VolumeField which allows to construct with given data.
For a future PR we should add constructor that allow to move data in instead of copying.
This PR adds a Field constructor that allows to copy construct from existing host memory data. The motivation for this PR is to simplify creating NeoFOAM fields from existing OpenFOAM data structures. Additionally it adds constructor for VolumeField which allows to construct with given data.
For a future PR we should add constructor that allow to move data in instead of copying.