STYLE: uniform 'Test-' prefix for all applications/test

- easier to clean, avoid confusion with 'real' applications, etc.
This commit is contained in:
Mark Olesen
2010-11-23 16:26:04 +01:00
parent e5cf4f093e
commit 499d48cfdb
225 changed files with 215 additions and 272 deletions

View File

@ -0,0 +1,37 @@
#include "vector.H"
#include "IOstreams.H"
using namespace Foam;
int main()
{
Info<< vector::zero << endl
<< vector::one << endl
<< vector::dim << endl
<< vector::rank << endl;
vector d(0.5, 0.5, 0.5);
d /= mag(d);
vector dSmall = (1e-100)*d;
dSmall /= mag(dSmall);
Info<< (dSmall - d) << endl;
d *= 4.0;
Info<< d << endl;
Info<< d + d << endl;
Info<< magSqr(d) << endl;
vector d2(0.5, 0.51, -0.5);
Info<< cmptMax(d2) << " "
<< cmptSum(d2) << " "
<< cmptProduct(d2) << " "
<< cmptMag(d2)
<< endl;
Info<< min(d, d2) << endl;
return 0;
}