mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: minor cleanup on doc/code for codeStream
This commit is contained in:
@ -49,13 +49,14 @@
|
|||||||
- it copies a template file
|
- it copies a template file
|
||||||
=($FOAM_CODESTREAM_TEMPLATES/codeStreamTemplate.C)=, substituting all
|
=($FOAM_CODESTREAM_TEMPLATES/codeStreamTemplate.C)=, substituting all
|
||||||
occurences of =code=, =codeInclude=, =codeOptions=.
|
occurences of =code=, =codeInclude=, =codeOptions=.
|
||||||
- it writes library source files to =constant/codeStream/<sha1>= and compiles
|
- it writes library source files to =codeStream/<SHA1>= and compiles
|
||||||
it using =wmake libso=.
|
it using =wmake libso=.
|
||||||
- the resulting library gets loaded (=dlopen=, =dlsym=) and the function
|
- the resulting library is generated under
|
||||||
executed
|
=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
|
- the function will have written its output into the Ostream which then gets
|
||||||
used to construct the entry to replace the whole =#codeStream= section.
|
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=
|
* Boundary condition: =codedFixedValue=
|
||||||
This uses the code from codeStream to have an in-line specialised
|
This uses the code from codeStream to have an in-line specialised
|
||||||
|
|||||||
@ -49,18 +49,6 @@ const Foam::fileName Foam::codeStreamTools::codeTemplateDirName
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * 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)
|
Foam::fileName Foam::codeStreamTools::codePath(const word& subDirName)
|
||||||
{
|
{
|
||||||
return stringOps::expand("$FOAM_CASE/codeStream/" + subDirName);
|
return stringOps::expand("$FOAM_CASE/codeStream/" + subDirName);
|
||||||
|
|||||||
@ -145,14 +145,6 @@ public:
|
|||||||
|
|
||||||
// Member functions
|
// 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
|
//- Local path for specified code name
|
||||||
// Expanded from \$FOAM_CASE/codeStream
|
// Expanded from \$FOAM_CASE/codeStream
|
||||||
static fileName codePath(const word& subDirName);
|
static fileName codePath(const word& subDirName);
|
||||||
|
|||||||
Reference in New Issue
Block a user