36 const dynamicCodeContext& context
39 dynCode.setFilterVariable(
"typeName", codeName());
42 dynCode.setFilterVariable(
"TemplateType", pTraits<Type>::typeName);
45 dynCode.addCompileFile(codeTemplateC);
48 dynCode.addCopyFile(codeTemplateH);
53 dynCode.setFilterVariable(
"verbose",
"true");
54 Info<<
"compile " << codeName() <<
" sha1: " 55 << context.sha1() <<
endl;
59 dynCode.setMakeOptions
63 +
"\n\nLIB_LIBS = \\\n" 74 redirectFunction1Ptr_.clear();
82 this->updateLibrary();
84 dictionary redirectDict(codeDict());
85 redirectDict.set(codeName(), codeName());
96 const word& entryName,
103 redirectFunction1Ptr_ = compileNew();
114 redirectFunction1Ptr_ = compileNew();
140 return redirectFunction1Ptr_->value(x);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
A list of keyword definitions, which are a keyword followed by any number of values (e...
Constructs a dynamically compiled Function1.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Traits class for primitives.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
virtual ~Coded()
Destructor.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
virtual void writeData(Ostream &os) const
Write in dictionary format.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
virtual void writeData(Ostream &os) const
Write in dictionary format.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Coded(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
void writeCode(Ostream &os) const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual Type value(const scalar x) const
Return value.
A class for managing temporary objects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.