|
[Sponsors] |
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 22, 2013, 12:30 |
Swak4FOAM 0.2.3 / OF2.2.x installation error
|
#1 |
Member
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 13 |
hello everybody!
im trying to build Swak4FOAM 0.2.3 with: - OpenFOAM2.2.x - gcc-4.6.4 - flex-2.5.37 - bison-2.4.1 second run of ./Allwmake gives me the following error/message: Code:
fpfender@sx200:/disk1/users/fpfender/OpenFOAM/source/Swak4Foam_2.x_release_0.2.3$ ./Allwmake Reading variables from 'swakConfiguration' Checking swak4Foam-version and generating file Bison is version 2.4.1 Flex is version 2.5.37 (Minor version: 37) OpenFOAM-version: Major 2 Minor 2 Patch -1 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make: *** [/disk1/users/fpfender/OpenFOAM/fpfender-2.2.x/platforms/linux64Gcc46DPOpt/lib/libswak4FoamParsers.so] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on fpfender@sx200:/disk1/users/fpfender/OpenFOAM/source/Swak4Foam_2.x_release_0.2.3$ - OpenFOAM-2.2.x - gcc-4.6.4 - flex-2.5.35 - bison-2.4.1 |
|
May 22, 2013, 12:42 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request Last edited by gschaider; May 22, 2013 at 12:42. Reason: Typo |
||
May 22, 2013, 14:11 |
|
#3 |
Member
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 17 |
Almost everytime I have had a problem with libfiniteVolume.so its been the flex/flex++ definitions under wmake/rules/General that need tweaking for your installed version of flex.
|
|
May 22, 2013, 14:44 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
With swak too? Because that brings its own rules for flex-files. And I don't see how that should influence the linking phase.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
May 22, 2013, 14:58 |
|
#5 |
Member
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 17 |
my guess is that OpenFOAM 2.2.x did not buillt correctly and libfiniteVolume.so was not created. I have a cluster built on Rocks 5.3.1 which has an old verison of flex that requires changing the rules files. I don't think its a swak problem, it builds just fine on my cluster with OF22x.
EDIT: I just retrieved a new copy of the swak sources from bitbucket and confirmed that it builds against my OF2.2.x that was compiled this morning. Last edited by dkingsley; May 22, 2013 at 16:28. |
|
June 13, 2013, 12:19 |
|
#6 |
Member
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 13 |
i did it again. the problem was, my openfoam wasnt build correctly.
but now i got a new problem which im trying to solve since days. compiling Swak4Foam works, with a few errors: Code:
/disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::foreignMeshesFollowTime’ has no member named ‘timeSet’ In file included from /disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0, from manipulatePatchFieldFunctionObject.H:50, from manipulatePatchFieldFunctionObject.C:37: /disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::timeSet() [with OutputFilter = Foam::manipulatePatchField]’: manipulatePatchFieldFunctionObject.C:51:1: instantiated from here /disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::manipulatePatchField’ has no member named ‘timeSet’ make: *** [Make/linux64Gcc46DPOpt/createSampledSetFunctionObject.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Make/linux64Gcc46DPOpt/createSampledSurfaceFunctionObject.o] Error 1 make: *** [Make/linux64Gcc46DPOpt/expressionFieldFunctionObject.o] Error 1 make: *** [Make/linux64Gcc46DPOpt/clearExpressionFieldFunctionObject.o] Error 1 make: *** [Make/linux64Gcc46DPOpt/addGlobalVariableFunctionObject.o] Error 1 make: *** [Make/linux64Gcc46DPOpt/manipulateFieldFunctionObject.o] Error 1 make: *** [Make/linux64Gcc46DPOpt/addForeignMeshesFunctionObject.o] Error 1 make: *** [Make/linux64Gcc46DPOpt/foreignMeshesFollowTimeFunctionObject.o] Error 1 make: *** [Make/linux64Gcc46DPOpt/manipulatePatchFieldFunctionObject.o] Error 1 . . . . /disk1/users/fpfender/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:210:9: error: ‘class Foam::solveLaplacianPDE’ has no member named ‘timeSet’ make: *** [Make/linux64Gcc46DPOpt/solveLaplacianPDEFunctionObject.o] Error 1 . . . thanks a lot! |
|
June 13, 2013, 12:59 |
|
#7 | |
Member
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14 |
Quote:
[1] https://github.com/OpenFOAM/OpenFOAM...f57922bec7b80b |
||
June 15, 2013, 21:21 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Daniel: Many thanks for the report! I've submitted this issue to swak4Foam's bug tracker: https://sourceforge.net/apps/mantisb...iew.php?id=174 - along with the bug fix. In addition, two notes:
For applying the attached patch, do the following steps:
Bruno
__________________
|
|
June 17, 2013, 05:14 |
|
#9 |
Member
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14 |
||
June 18, 2013, 10:21 |
|
#10 |
Member
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 13 |
same here! Thank you very much!
|
|
June 18, 2013, 12:50 |
|
#11 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
June 20, 2013, 16:49 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
And you're all welcome!
__________________
|
|
July 31, 2013, 12:26 |
|
#13 | |
Member
Join Date: Feb 2012
Posts: 59
Rep Power: 14 |
Does it work for OpenFoam 2.1?
Quote:
|
||
July 31, 2013, 19:15 |
|
#14 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
I think you won't need it there. The problem was introduced by a method added with 2.2.x ... so 2.1 is fine
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
August 1, 2013, 05:55 |
|
#15 |
Member
Join Date: Feb 2012
Posts: 59
Rep Power: 14 |
||
August 2, 2013, 07:12 |
|
#16 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Which methods did you try and what is the problem? (both repositories - SVN and Mercurial - are up and running)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
October 9, 2013, 12:49 |
accessing swake4Foam installed by another user on cluster...
|
#17 |
Member
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 13 |
Hello Formers,
My problem is ... OF 2.2.x is installed on server and one of the users have installed swak4foam0.2.3 in his user_directory. I am trying to use that installation by adding the following line in bash_profile--> export SWAKFFOAM_SRC= /OpenFOAM/user-2.2.x/lib/Swak4Foam.0.2.3/Libraries But groovyBC remains unknown..... waiting for valuable suggestion. Regards. |
|
October 9, 2013, 17:26 |
|
#18 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Or the problem is that swak installs its libraries to FOAM_USER_LIBBIN which is different for different users
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 25, 2013, 13:06 |
|
#19 | |
Member
Martin Novák
Join Date: Dec 2012
Location: Prague
Posts: 70
Rep Power: 13 |
Quote:
Thanks for the patch I ve noticed problems together with moving meshes. Specially with dynamicTopoFvMesh (Sandeep Menon). The problem was in file ../simpleFunctionObjects/lnInclude/simpleFunctionObject.H at line 177. Code:
#ifdef FOAM_FUNCTIONOBJECT_NEEDS_UPDATEMESH // make functionObject happy but fail because this is not an implementation virtual void updateMesh(const mapPolyMesh&) { notImplemented("simpleFunctionObject::updateMesh"); } // make functionObject happy but fail because this is not an implementation virtual void movePoints(const polyMesh&) { notImplemented("simpleFunctionObject::movePoints"); } #endif By erasing the notImplemented stuff (sandeep's suggest) the problem seems to be solved. Code:
#ifdef FOAM_FUNCTIONOBJECT_NEEDS_UPDATEMESH // make functionObject happy but fail because this is not an implementation virtual void updateMesh(const mapPolyMesh&) { } // make functionObject happy but fail because this is not an implementation virtual void movePoints(const polyMesh&) { } #endif Hope, this helps somebody. (Much more hope it will not have any influence on the results ) Best regards Martin |
||
October 26, 2013, 06:52 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Martin,
Many thanks for sharing! I've reported this to the bug tracker for swak4Foam: https://sourceforge.net/apps/mantisb...iew.php?id=190 - this way Bernhard feels a bit more obligated to fix it By the way Martin, please provide a simple test case at that bug report, so that Bernhard can reproduce the problem! Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x | Saxwax | OpenFOAM Installation | 25 | November 29, 2013 06:34 |
[swak4Foam] installing funkySetFields | igo | OpenFOAM Community Contributions | 1 | November 20, 2012 21:16 |
How to get the max value of the whole field | waynezw0618 | OpenFOAM Running, Solving & CFD | 4 | June 17, 2008 06:07 |