|
[Sponsors] |
![]() |
![]() |
#61 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 ![]() |
I am building swak4foam on a cluster with OpenFOAM 2.2.0. Here is my steps:
- I load my OpenFOAM environement first, then go to $WM_PROJECT_USER_DIR directory - I donwload https://github.com/wyldckat/swak4foa...ive/master.zip and unpack it - I loaded Flex and Bison modules - cd swak4foam-master/; ./Allwmake 2>&1 > make.log My 'make.log' is attached. It contains errors like: Code:
could not open file polyMesh.H for source file repositories/SurfacesRepository.C Code:
SOURCE=repositories/SurfacesRepository.C ; icpc -std=c++0x -Dlinux64 -DWM_DP -w d327,654,819,1125,1476,1505,1572 -xSSE3 -O2 -no-prec-div -DNoRepository -IMake/ linux64IccDPOpt -I/app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/Op enFOAM-2.2.0/src/finiteVolume/lnInclude -I/app/materials/openfoam/2.2.0/intel-11 .1/intel-4.0/OpenFOAM-2.2.0/src/sampling/lnInclude -I/app/materials/openfoam/2.2 .0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/fileFormats/lnInclude -I/app/material s/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/triSurface/lnInclude -I /app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/surfMesh/l nInclude -I/app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src /lagrangian/basic/lnInclude -I/app/materials/openfoam/2.2.0/intel-11.1/intel-4.0 /OpenFOAM-2.2.0/src/meshTools/lnInclude -IlnInclude -I. -I/app/materials/openfoa m/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/app/materi als/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnIn clude -fPIC -c $SOURCE -o Make/linux64IccDPOpt/SurfacesRepository.o /app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/finiteVolu me/lnInclude/fvMesh.H(50): catastrophic error: could not open source file "polyM esh.H" #include "polyMesh.H" ^ compilation aborted for repositories/SurfacesRepository.C (code 4) make: *** [Make/linux64IccDPOpt/SurfacesRepository.o] Error 4 Parser library did not compile OK. No sense continuing as everything else depend s on it Requirements for Library not satisfied. I see no sense in going on Can anyone help please? |
|
![]() |
![]() |
![]() |
![]() |
#62 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
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 |
|||
![]() |
![]() |
![]() |
![]() |
#63 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
m/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude)? No idea (and I don't have an Intel-compiler to test it)
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#64 | |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 ![]() |
Quote:
Code:
echo $FOAM_SRC /app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src |
||
![]() |
![]() |
![]() |
![]() |
#65 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Code:
ls blalaPath/polyMesh.H Some people have compiled swak with the Intel-compiler. So it should be feasible. Maybe one of them can assist you
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#66 | |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 ![]() |
Quote:
Thanks for your advice. I checked those files again. While the path is indeed correct, I found that the files in $FOAM_SRC/src/OpenFOAM/lnInclude/ are actually symbolic links pointing to files elsewhere. I then found that some of those files have incorrect permissions so that they cannot be read by a normal user on the system. So basically my OpenFOAM installation is somewhat broken. I will ask the system people to correct those file permissions first. I will report back the outcome later. |
||
![]() |
![]() |
![]() |
![]() |
#67 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 ![]() |
After fixing the file permission problem, my compiling can go a bit longer, until it stopped with another error, related to the Intel compiler, as discussed in this thread (http://www.cfd-online.com/Forums/ope...ion-2-0-a.html). I am not exactly clear after reading that thread: is the problem completely fixed by using a new version of Intel compiler? I am using an old cluster with OpenFOAM built with intel compiler version 11.x. But new versions 12.x and 13.x are also available.
|
|
![]() |
![]() |
![]() |
![]() |
#68 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 ![]() |
Hello dear Bernhard,
sorry for propound this here, but could you introduce me for some line about historty of groovyBC and the creator( I mean you!) I need these information for my thesis.I sent an email to you too before.thanks.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
![]() |
![]() |
![]() |
![]() |
#69 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
a) I don't have an Intel-compiler b) didn't want to read through all 50 Postings in the thread to find out which one you meant. Hint: for linking to a specific posting use the #23 link that every posting has
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#70 | |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#71 | |
New Member
Join Date: Oct 2013
Posts: 4
Rep Power: 13 ![]() |
Hi Bernhard,
Thank you very much for your help in this post. I am trying to compile swak4foam but running into a little problem of one of the files in Gcc46 folder not found. I did check the source and the file was there, so I am really not sure what went wrong. Attached below is the log of my compilation. Could you please take a look? Thank you very much for your help. Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#72 | |
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 |
||
![]() |
![]() |
![]() |
![]() |
#73 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
There are no proper papers on it (I'm not in academia so I don't have to write a paper on EVERYTHING I do). People in the past when referencing it either referred to the Wiki-page (this is the 21st century. URLs can be used as references. They might change, I'm aware of that) or one of the presentations listed on the swak-page. Reason why I wrote groovyBC was that before that I had written a utility to set a parabolic inlet condition. People were asking questions on that ("How do I use it for a different orientation") and I figured "with that thing people don't have to write C++ so they'll ask less questions". Turned out that I was wrong … (that is the interesting part on the history of groovyBC as far as I'm concerned)
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#74 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Are you one of these people who already updated to Mavericks (which I believe is darwin13). MacPorts recommends reinstalling the whole MacPorts-tree after a OS-Upgrade like this (my theory: you installed gcc46 on 10.8, upgraded to 10.9 now gcc46 doesn't know where to find stuff). Even if I'm wrong: try uninstalling gcc46 and reinstalling it
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#75 | |
New Member
Feng
Join Date: Oct 2011
Posts: 6
Rep Power: 15 ![]() |
Quote:
By the way, after I installed the development version of swak4Foam, the space problem disappeared. |
||
![]() |
![]() |
![]() |
![]() |
#76 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
a) there is documentation b) more people need the "other" average. So I decided to name this function differently than the OF-convention About the space: strange. Don't remember fixing that
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#77 | |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 ![]() |
Quote:
![]() ![]() ![]()
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by immortality; December 5, 2013 at 12:20. |
||
![]() |
![]() |
![]() |
![]() |
#78 |
New Member
Join Date: Oct 2013
Posts: 4
Rep Power: 13 ![]() |
Hi Bernhard,
The problem was exactly what you pointed out. I've reinstalled everything and it can compile smoothly now. Thank you very much for your help. |
|
![]() |
![]() |
![]() |
![]() |
#79 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
OK. That is valuable information for me: wait with the Mavericks-update until I have a couple of days where it doesn't matter that MacPorts rebuilds itself
__________________
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 |
|
![]() |
![]() |
![]() |
![]() |
#80 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Greetings to all!
Quote:
But I'd like to point out an important detail - @macelee: you should have downloaded from the OF22X branch, not the master branch, as explained here: http://www.cfd-online.com/Forums/ope...tml#post434217 post #8 Best regards, Bruno
__________________
|
||
![]() |
![]() |
![]() |
Tags |
compile error, swak4foam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
InterDyMFoam+simpleFunctionObject | Elham | OpenFOAM Running, Solving & CFD | 5 | July 10, 2017 12:59 |
[swak4Foam] and twoPhaseEulerFoam | mnikku | OpenFOAM Community Contributions | 1 | February 19, 2016 06:21 |
source term in near wall cell | rajcfd | OpenFOAM Pre-Processing | 5 | February 1, 2016 11:31 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 18:33 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |