Skip to content
Snippets Groups Projects
Commit d4ac96cd authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: support use of 'vector' in `#calc` directive (fixes #2039)

parent 4a3998c6
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ vertices
(
(0.0 0.0 0) //0
(10 0.0 0)
(10 0.0 0) //2
#calc #{ vector(10, 0, 0) #} //2
(0.0 0.0 0)
(0.0 $minY $z) //4
......
......@@ -32,7 +32,7 @@ vertices
(
(0.0 0.0 0) //0
(10 0.0 0)
(10 0.0 0) //2
#eval{ vector(10, 0, 0) } //2
(0.0 0.0 0)
(0.0 $minY $z) //4
......
......@@ -31,6 +31,8 @@ Description
#include "dictionary.H"
#include "Ostream.H"
#include "Pstream.H"
#include "pointField.H"
#include "tensor.H"
#include "unitConversion.H"
//{{{ begin codeInclude
......@@ -51,7 +53,7 @@ ${localCode}
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
extern "C" void ${typeName}(Ostream& os, const dictionary& dict)
extern "C" void ${typeName}(Foam::Ostream& os, const Foam::dictionary& dict)
{
//{{{ begin code
${code}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment