Hi,
In the first line you have decided to write sd extension instead of sh. And as you also decided to add mount & source code directly to your .profile, you can comment the first line. Quote:
|
Thank you, everything is working now!
|
Can anyone indicate who contributed to the original patch files. I just want to be sure that you are referenced in the GitHub project here:
https://github.com/ajmas/OpenFOAM-2.3.x |
Incompatible mpicxx when linking library
I am trying to compile a turbulence model in OpenFoam 2.3.x on a Mac v10.10
I run ` Code:
wmake libso` and get the following readout: Code:
SOURCE=gammaReThetatSST/gammaReThetatSST.C ; mpicxx -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Users/oscarwilsby/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/RAS/lnInclude -IlnInclude -I. -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/gammaReThetatSST.o I have already tried ` Code:
brew update Code:
brew unlink open-mpi Code:
brew install open-mpi Code:
brew unlink open-mpi Code:
wmake libso Code:
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/lduInterface.H:100:26: note: hidden overloaded virtual function |
@Jack001 Where are you getting the source from, to make it easier to compare note? - Thanks
|
@ajmas Thank you for your reply. I assume you mean the source for the turbulence model. It can be found here: https://github.com/langfeldt/gammaReThetatSST
|
Hi,
@Jack001 Quote:
Quote:
Code:
volScalarField magVort = sqrt(scalar(2))*mag(skew(fvc::grad(U_))); Code:
volScalarField magVort(sqrt(scalar(2))*mag(skew(fvc::grad(U_)))); |
Hi,
@alexeym Wow! You were right, the make seems to be working now albeit with a few warnings. I will try later tonight to see if the linked library works. But one question remains- why was assignment in the original code? Would it work on other systems the way it was originally written? I only ask because the code is obviously open source and many people have used it without those changes. Anyway - aside - I feel like I really need to learn c++ but diving into this source code places me in very deep water - i only have a basic understanding of c++ I should probably take the time to learn it though. What should I focus on learning in terms of c++ so that I can better understand OpenFoam source? (I am currently reading the OF manual) I wish to thank you for your help- people like you in this community are a huge help to beginners like myself and I am immensely grateful for your time. Hopefully talk soon if I have more questions! |
Hi,
Quote:
Quote:
|
@alexeym
Seems like I wasn't quite over the hurdle: After running Code:
wmake libso Code:
'/Users/ow222/OpenFOAM/ow222-2.3.x/platforms/darwinIntel64GccDPOpt/lib/libGammaReThetatSST.dylib' is up to date. Code:
simpleFoam Code:
--> FOAM FATAL ERROR: Code:
wmake libso Edit: I tried placing the source code for the turbulence model in the directory OpenFOAM-2.3.x/src/turbulenceModels/incompresssible/RAS (where all the other turbulence models are located) and modifying the Make/files and to include the new source code. I then run wmake libso in that directory but I now get this error: /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:152: *** multiple target patterns. Stop. |
Hi,
It is not enough just to compile library, you need to load it. See for example $FOAM_TUTORIALS/incompressible/pimpleFoam/TJunctionFan/system/controlDict. In your case it should be something like Code:
libs And this time the problem really has nothing to do with OS X patch. |
Hi,
@alexeym Yes I do have exactly that at the end of my system/controlDict which is why I'm confused. Edit: I was in the wrong OpenFoam directory. Now it seems to run at least but I get this: Code:
Selecting incompressible transport model Newtonian |
Hi,
Can you provide your case? Right now I can only see that it is sigSegv, i.e. somebody tries to corrupt memory. It is hard to tell where exactly it is happening and cause of it. You can start new thread about gammaReThetatSST, as a) our discussion is not about OS X patch, b) somebody experienced in gammaReThetatSST can answer your question. |
Hi
@alexeym I started a new thread where I refer to the place you can get the case and everything else. Find this new thread at http://www.cfd-online.com/Forums/ope...tml#post551787 Thank you for your help. |
Hi
@alexeym I am facing the same problem as KateEisenhower some time ago. Everytime I try to run SHM the quoted error occurs! In comparison to Kate, I use the OF Version 2.3.0 on Mac OS X 10.9.5, so I guess I need a different patch to fix this "Scotch problem"? Quote:
|
Hi,
@arnolnic Unfortunately your post contains too many unknowns. See post #177 for a list of standard questions. I even can not reproduce the error as I do not have neither OS X 10.9.5, nor OpenFOAM 2.3.0 installed. |
First of all thanks for your quick reply alexeym!
Second you are absolutely right, I should have provided some Information in the first place - better late than never: Code:
sw_vers: When I try to run the snappyHexMesh tool (e.g. execute on the iglooWithFridges tutorial case), the following error occurs, which is the exact same error message @KateEisenhower stumbled on in post #175 Code:
dyld: Symbol not found: __SCOTCHbgraphbipartststratab |
Hi,
Yes, it is possible that I have updated patch for version 2.3.1 and did not for version 2.3.0. So yes, maybe you need the patch that does not exist yet. I will check and post an update during next several days. |
Thanks for your great effort, I really appreciate it!
|
Hi,
I have checked 2.3.0 patch and you have two choices:
Also you can reference post 179, for compilation instructions, just change 2.3.1 to 2.3.0 in installation path and use [1] as patch download URL. 1. https://raw.githubusercontent.com/mr...1-scotch.patch |
All times are GMT -4. The time now is 16:38. |