From b0e39f71c3de921097b377bce4b34de19de8a886 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 23 Feb 2011 16:17:25 +0100 Subject: [PATCH] STYLE: minor cleanup on doc/code for codeStream --- doc/changes/codeStream.org | 9 +++++---- .../db/dynamicLibrary/codeStream/codeStreamTools.C | 12 ------------ .../db/dynamicLibrary/codeStream/codeStreamTools.H | 8 -------- 3 files changed, 5 insertions(+), 24 deletions(-) diff --git a/doc/changes/codeStream.org b/doc/changes/codeStream.org index bcef4c166b..6e26ba9810 100644 --- a/doc/changes/codeStream.org +++ b/doc/changes/codeStream.org @@ -49,13 +49,14 @@ - it copies a template file =($FOAM_CODESTREAM_TEMPLATES/codeStreamTemplate.C)=, substituting all occurences of =code=, =codeInclude=, =codeOptions=. - - it writes library source files to =constant/codeStream/= and compiles + - it writes library source files to =codeStream/= and compiles it using =wmake libso=. - - the resulting library gets loaded (=dlopen=, =dlsym=) and the function - executed + - the resulting library is generated under + =codeStream/platforms/$WM_OPTIONS/lib= and is loaded (=dlopen=, =dlsym=) + and the function executed - the function will have written its output into the Ostream which then gets used to construct the entry to replace the whole =#codeStream= section. - - using the sha1 means that same code will only be compiled and loaded once. + - using the SHA1 means that same code will only be compiled and loaded once. * Boundary condition: =codedFixedValue= This uses the code from codeStream to have an in-line specialised diff --git a/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.C b/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.C index d0cd0b6830..1eaa2a4e9d 100644 --- a/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.C +++ b/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.C @@ -49,18 +49,6 @@ const Foam::fileName Foam::codeStreamTools::codeTemplateDirName // * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * // -Foam::fileName Foam::codeStreamTools::baseDir() -{ - return stringOps::expand("$FOAM_CASE/codeStream"); -} - - -Foam::fileName Foam::codeStreamTools::libSubDir() -{ - return stringOps::expand("platforms/$WM_OPTIONS/lib"); -} - - Foam::fileName Foam::codeStreamTools::codePath(const word& subDirName) { return stringOps::expand("$FOAM_CASE/codeStream/" + subDirName); diff --git a/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.H b/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.H index 4f158b6aea..460eb7e0fc 100644 --- a/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.H +++ b/src/OpenFOAM/db/dynamicLibrary/codeStream/codeStreamTools.H @@ -145,14 +145,6 @@ public: // Member functions - //- Directory for compile/link (case-specific) - // Expanded from \$FOAM_CASE/codeStream - static fileName baseDir(); - - //- Subdirectory name for library - // Expanded from platforms/\$WM_OPTIONS/lib - static fileName libSubDir(); - //- Local path for specified code name // Expanded from \$FOAM_CASE/codeStream static fileName codePath(const word& subDirName);