ENH: support use of 'vector' in #calc
directive (fixes #2039)
This commit is contained in:
parent
4a3998c698
commit
d4ac96cdf3
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user