Test-UniformField.C
Go to the documentation of this file.
1 #include "UniformField.H"
2 #include "vector.H"
3 #include "IOstreams.H"
4 
5 using namespace Foam;
6 
7 int main()
8 {
9  UniformField<scalar> uf1(13.1);
10  UniformField<vector> uf2(vector(1, 2, 3));
11 
12  Info<< "uf1 = " << uf1[22] << "; uf2 = " << uf2[1002] << endl;
13 
14  return 0;
15 }
IOstreams.H
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::UniformField
A class representing the concept of a uniform field which stores only the single value and providing ...
Definition: UniformField.H:47
Foam::Info
messageStream Info
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::vector
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:49
main
int main()
Definition: Test-UniformField.C:7
vector.H
UniformField.H