mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Add the OpenFOAM source tree
This commit is contained in:
14
applications/test/tensor2D/Test-tensor2D.C
Normal file
14
applications/test/tensor2D/Test-tensor2D.C
Normal file
@ -0,0 +1,14 @@
|
||||
#include "tensor2D.H"
|
||||
#include "IOstreams.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
int main()
|
||||
{
|
||||
vector2D v1(1, 2), v2(3, 4);
|
||||
tensor2D t = v1*v2;
|
||||
|
||||
Info<< "v1(1, 2)*v2(3, 4) = " << t << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user