Make sure that Mesquite-Library is only linked at Run-time
--HG-- branch : bgschaid/foam3FixesBranch
This commit is contained in:
parent
3e6bfe9aea
commit
55a09fdd2a
2 changed files with 17 additions and 2 deletions
|
@ -21,5 +21,4 @@ LIB_LIBS = \
|
|||
-ltetFiniteElement \
|
||||
-ltetMotionSolver \
|
||||
-lfvMotionSolver \
|
||||
-lRBFMotionSolver \
|
||||
-lmesquiteMotionSolver
|
||||
-lRBFMotionSolver
|
||||
|
|
|
@ -31,6 +31,22 @@ License
|
|||
|
||||
Foam::autoPtr<Foam::dynamicFvMesh> Foam::dynamicFvMesh::New(const IOobject& io)
|
||||
{
|
||||
wordList libNames(1);
|
||||
libNames[0]=word("mesquiteMotionSolver");
|
||||
|
||||
forAll(libNames,i) {
|
||||
const word libName("lib"+libNames[i]+".so");
|
||||
|
||||
bool ok=dlLibraryTable::open(libName);
|
||||
if(!ok) {
|
||||
WarningIn("dynamicFvMesh::New(const IOobject& io)")
|
||||
<< "Loading of dynamic mesh library " << libName
|
||||
<< " unsuccesful. Some dynamic mesh methods may not be "
|
||||
<< " available"
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
|
||||
// Enclose the creation of the dynamicMesh to ensure it is
|
||||
// deleted before the dynamicFvMesh is created otherwise the dictionary
|
||||
// is entered in the database twice
|
||||
|
|
Reference in a new issue