ENH: compile codedFixedValueFvPatchScalarField into local directory only

This commit is contained in:
Mark Olesen
2011-02-22 16:25:34 +01:00
parent 141fe37a86
commit dce20ade07
5 changed files with 103 additions and 85 deletions

View File

@ -106,7 +106,7 @@ bool Foam::functionEntries::codeStream::execute
// "code" is mandatory
string code = stringOps::trimLeft(codeDict["code"]);
// Create name from the contents
// Create SHA1 digest from the contents
SHA1Digest sha;
{
OSHA1stream os;
@ -196,7 +196,9 @@ bool Foam::functionEntries::codeStream::execute
// Write Make/options
filesContents[1].first() = "Make/options";
filesContents[1].second() =
"EXE_INC = -g \\\n" + codeOptions + "\n\nLIB_LIBS =";
"EXE_INC = -g \\\n"
+ codeOptions
+ "\n\nLIB_LIBS =";
codeStreamTools writer(codeName, copyFiles, filesContents);
if (!writer.copyFilesContents(codeDir))
@ -225,8 +227,8 @@ bool Foam::functionEntries::codeStream::execute
}
}
bool dummy = true;
reduce(dummy, orOp<bool>());
// bool dummy = true;
// reduce(dummy, orOp<bool>());
if (!dlLibraryTable::open(libPath, false))
{

View File

@ -29,7 +29,7 @@ Description
generate the entry itself. So
- codeStream reads three entries: 'code', 'codeInclude' (optional),
'codeOptions' (optional)
and uses those to generate library sources inside \f constant/codeStream/
and uses those to generate library sources inside \f codeStream/
- these get compiled using 'wmake libso'
- the resulting library is loaded in executed with as arguments
\code
@ -123,7 +123,7 @@ public:
// Static data members
//- Name of the C code template to be used
const static word codeTemplateC;
static const word codeTemplateC;
//- Runtime type information

View File

@ -113,15 +113,15 @@ public:
//- Name of the code template environment variable
// Used to located the codeTemplateName
const static word codeTemplateEnvName;
static const word codeTemplateEnvName;
//- Name of the code template sub-directory
// Used when locating the codeTemplateName via Foam::findEtcFile
const static fileName codeTemplateDirName;
static const fileName codeTemplateDirName;
static int allowSystemOperations;
// Constructors
//- Construct null