|
[Sponsors] |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 2, 2013, 08:05 |
|
#21 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Hi Bernhard,
Nice work you've done. here I wanna know if there is some patches for intel compiler? I find that even running the same case, the pressure is difficult to converged in Mac OpenFOAM with Gcc, if there was a patch for Icc, it will be much better. Thank you!! Quote:
|
||
April 2, 2013, 08:20 |
|
#22 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
What leads you to the conclusion that it will be better if compiled with the Intel-compiler if you haven't compiled it with the Intel compiler yet? (only thing I can imagine is that you had such experience on Linux). Not that I would rule that out completely (although if such a thing happens it is probably a problem with the compiler switches - overzealous optimization of the floating point operations)
__________________
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 |
||
April 2, 2013, 10:10 |
|
#23 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Quote:
|
||
April 2, 2013, 12:32 |
|
#24 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I don't qualify (my MacBook is mainly used for work) and then downloading it anyway would be stealing. I don't have a problem with paying for software (not even the 700$ if I decide I need it) but I want to to it in accordance with their license. OpenSource is NOT communism. People often confuse that. If you see it differently or are doing OpenFOAM purely as a hobby, then this is fine with me. Like Bob Dylan said "To live outside the law you've got to be honest" 9 orders of magnitude? sounds more like a bug. You could also try a different gcc-version. Or you go to wmake/rules create a mix of the darwinIntel64Gcc and linux64Icc and see if that compiles.
__________________
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 |
||
April 5, 2013, 22:48 |
|
#25 |
New Member
Join Date: Mar 2011
Posts: 7
Rep Power: 15 |
Hi Forum Members:
I am doing Code:
git pull Code:
MacBook-Pro:OpenFOAM-2.2.x md$ git pull remote: Counting objects: 455, done. remote: Compressing objects: 100% (119/119), done. remote: Total 285 (delta 222), reused 226 (delta 164) Receiving objects: 100% (285/285), 27.80 KiB, done. Resolving deltas: 100% (222/222), completed with 137 local objects. From git://github.com/OpenFOAM/OpenFOAM-2.2.x f16d44e..71fcc24 master -> origin/master Updating f16d44e..71fcc24 error: Your local changes to the following files would be overwritten by merge: src/OSspecific/POSIX/signals/sigFpe.C Please, commit your changes or stash them before you can merge. Aborting MacBook-Pro:OpenFOAM-2.2.x md$ Looking forward reading from you. Regards, MD |
|
April 6, 2013, 07:25 |
|
#26 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Can't give you the exact commands to do that as I'm doing things somehow differently: I pull the upstream-git into a mercurial repository and use the excellent patch-queues there to record the changes to the upstream (that allows me to easily generate the patches)
__________________
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 |
||
April 8, 2013, 03:59 |
Strugling with 2.2 on 10.8
|
#27 |
New Member
Grant Stephens
Join Date: Apr 2013
Posts: 2
Rep Power: 0 |
Good Morning
Firstly, thank you for bringing this to Mac- the virtual box is always a bit of a faf. I have been struggling for a while now and started from scratch a few times. I have gone the macports route. Attached is the log file- any help would be much appreciated. Thanks in advance |
|
April 8, 2013, 05:56 |
|
#28 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Concerning your problem (I hope that this is the right log-file I'm looking at): "echo: write error: No space left on device" From your name I deduce that you're the native English speaker here. You tell me what that could mean (the command df is your friend)
__________________
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 |
||
April 8, 2013, 06:03 |
|
#29 |
New Member
Grant Stephens
Join Date: Apr 2013
Posts: 2
Rep Power: 0 |
Thanks for the quick reply.
I missed that error as i was searching for Error with a space after as specified in the wiki. I am sorry about the tar-gz file but I was following the wiki instructions- I did see your rant on the other thread and tried to upload it as a .log file but the forum would not allow it to be uploaded. Next time I will try another format, although hopefully there isn't a next time Thanks again for your help- it is very much appreciated. |
|
April 8, 2013, 08:37 |
|
#30 | |
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 |
||
April 17, 2013, 21:02 |
|
#31 |
New Member
Ricardo Frantz
Join Date: Mar 2013
Posts: 1
Rep Power: 0 |
Hello, Im trying to compile OpenFOAM 2.2. On a OS X 10.8.3 with Xcode 4.6.2 with Command Line Tolls installed.
Code:
gcc -v -> gcc version: 4.2.1 mpirun -V -> mpirun: command not found sudo port self update -> MacPorts base version 2.1.3 installed and downloaded. sudo port install gcc46 gcc-mp-4.6 -v -> gcc version 4.6.3 (MacPorts gcc46 4.6.3_9) sudo port install flex sudo port install bison sudo port install openmpi +gcc46 sudo port install ccache sudo port install boost sudo port install cgal /Users/ricardofrantz/OpenFOAM-2.2.0.sparseimage mounted -> OpenFOAM-v2.2 On terminal: cd /Volumes/OpenFOAM-v2.2 ls -l drwxr-xr-x@ 9 ricardofrantz staff 578 17 Abr 17:27 OpenFOAM-2.2.0 -rw-r--r--@ 1 ricardofrantz staff 31450102 17 Abr 15:35 OpenFOAM-2.2.0.tgz -rw-r--r--@ 1 ricardofrantz staff 41620 9 Mar 09:18 OpenFOAM-2.2.x_Mac-20130309.patch drwxr-xr-x@ 7 ricardofrantz staff 816 17 Abr 17:24 ThirdParty-2.2.0 -rw-r--r--@ 1 ricardofrantz staff 58171983 17 Abr 15:34 ThirdParty-2.2.0.tgz -rw-r--r--@ 1 ricardofrantz staff 2686 9 Mar 09:17 ThirdParty-2.2_Mac-20130309.patch mv OpenFOAM-2.2.x_Mac-20130309.patch OpenFOAM-2.2.0 mv ThirdParty-2.2_Mac-20130309.patch ThirdParty-2.2.0 #applied the 20130309 patches, Code:
cd cd /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0 patch -p1 < OpenFOAM-2.2.x_Mac-20130309.patch cd cd /Volumes/OpenFOAM-v2.2/ThirdParty-2.2.0 patch -p1 < ThirdParty-2.2_Mac-20130309.patch Code:
cd /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0 ls bin/addr2line4Mac.py ls -l bin/addr2line4Mac.py chmod a+x bin/addr2line4Mac.py ls -l bin/addr2line4Mac.py Code:
cd ln -s /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc42 darwinIntel64Gcc ln -s /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc43 darwinIntel64Gcc ln -s /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc44 darwinIntel64Gcc ln -s /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc45 darwinIntel64Gcc ln -s /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc46 darwinIntel64Gcc ln -s /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc47 darwinIntel64Gcc ln -s /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc48 darwinIntel64Gcc ln -s /Volumes/OpenFOAM-v2.2 OpenFOAM open /Volumes/OpenFOAM-v2.2/OpenFOAM-2.2.0/etc/bashrc Changes on the file: Code:
ulimit -n 1024 export WM_NCOMPPROCS=8 export WM_COMPILER=Gcc46 export WM_SCHEDULER=ccache export WM_CC='gcc-mp-4.6' export WM_CXX='g++-mp-4.6' . OpenFOAM/OpenFOAM-2.2.0/etc/bashrc -> OK #try to compile cd OpenFOAM/OpenFOAM-2.2.0 ./Allwmake 2>&1 | tee ricardofrantz_of22.log Code:
……. make[1]: *** [multiphaseEulerFoam] Error 1 make[2]: *** No rule to make target `darwinIntel64Gcc46DPOpt/options'. Stop. wmake error: file 'Make/darwinIntel64Gcc46DPOpt/objectFiles' could not be created in /Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/multiphase/twoPhaseEulerFoam/kineticTheoryModels + wmake /Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/wmake/MakefileOptions:37: /Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc46/general: Not a directory make[2]: *** No rule to make target `/Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc46/general'. Stop. /Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/wmake/MakefileFiles:39: /Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc46/general: Not a directory /Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/wmake/MakefileFiles:40: darwinIntel64Gcc46DPOpt/options: No such file or directory make[2]: *** No rule to make target `darwinIntel64Gcc46DPOpt/options'. Stop. wmake error: file 'Make/darwinIntel64Gcc46DPOpt/objectFiles' could not be created in /Users/ricardofrantz/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/multiphase/twoPhaseEulerFoam make[1]: *** [twoPhaseEulerFoam] Error 1 make[1]: Target `application' not remade because of errors. make: *** [multiphase] Error 2 make: Target `application' not remade because of errors. Cheers and nice job. |
|
April 18, 2013, 05:42 |
|
#32 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- These are the only errors you get? Or are they only example for a lot of other errors? - Did you manage to run a simple example? - Did the patches give any errors? The reason why I'm asking is that you're using 2.2.0 and I develop this with 2.2.x (which even in the first commits had some differences to 2.2.0). But if everything else works and you don't need the solver in question, then I'd stick with 2.2.0 for the time being
__________________
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 |
||
April 28, 2013, 16:30 |
Run OpenFOAM-v2.2 in mac with two different sparseimage
|
#33 | ||||
New Member
Simone Martini
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
Hi all, I am attempting to have multiple versions of OpenFOAM installed at the same time. I am using mac Lion OSX, and I want to see if it is possible to use two .sparseimage disk image files.
Quote:
Quote:
after the change when i run the complication processs: Quote:
Quote:
|
|||||
April 28, 2013, 17:14 |
|
#34 |
New Member
Join Date: Mar 2011
Posts: 7
Rep Power: 15 |
I think I run into the same problem here. My decision was to source the version I am working with and to use that one. Once I need to work with anohter version I eject the .sparsimage and I source the other version.
|
|
April 28, 2013, 18:32 |
|
#35 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
At first: please use CODE not QUOTE for examples. That way they will not be thrown away in an answer.
Quote:
That is not an error but a warning that you didn't chose a MPI-implementation and therefor the script chose for you (I think this was discussed in the thread where the patch was published)
__________________
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 |
||
April 29, 2013, 07:33 |
OpenFoam for mac don t work
|
#36 | |
New Member
Simone Martini
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
Hi All, Thanks for the soon replace.
I try to install in the same way of the vesion 2.1.0 the version 2.2.0 but as I have already written, I had a problem with the symbolic link. Inadvertently I remove my old OpenFoam link. I delete all sparse immage that I have create. I restart with the istruction from the creation of the new Sparseimage because I have all the prerequisites. But when I thy to install with ./Allwmake I have this error. Quote:
|
||
April 29, 2013, 14:59 |
|
#37 | |
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 |
||
May 2, 2013, 05:58 |
|
#38 | |
New Member
Simone Martini
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
Quote:
Code:
alias of22='hdiutil attach "$HOME/OpenFOAM-v2.2.sparseimage" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc' |
||
May 4, 2013, 07:57 |
|
#39 | |
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 |
||
May 19, 2013, 15:18 |
|
#40 |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Attachment 21912Hi to everyone,
i'm a "not-so-expert" of OF and compiling things. Anyway i followed this guide http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac for installing OF 2.2 on Mac OSX 10.8.3. This is what i did: Code:
sudo ports selfupdate sudo port install gcc46 openmpi ccache flex bison Copied the OpenFoam-2.2.0.tgz and ThirdParty-2.2.0.tgz in the image. Extracted them Downloaded OpenFOAM-2.2.x_Mac-20130309.patch and ThirdParty-2.2_Mac-20130309.patch Code:
mv OpenFOAM-2.2.x_Mac-20130309.patch OpenFOAM-2.2.0 mv ThirdParty-2.2_Mac-20130309.patch ThirdParty-2.2.0 mv ThirdParty-2.2.0.tgz ThirdParty-2.2.0 cd OpenFOAM-2.2.0 patch -p1 < OpenFOAM-2.2.x_Mac-20130309.patch chmod a+x bin/addr2line4Mac.py cd .. cd ThirdParty-2.2.0/ patch -p1 <ThirdParty-2.2_Mac-20130309.patch Code:
WM_COMPILER=Gcc46 ulimit −n 1024 export WM_NCOMPPROCS=4 Code:
export WM_CC='gcc-mp-4.6' export WM_CXX='g++-mp-4.6' export WM_SCHEDULER=ccache Code:
cd ln -s /Volumes/OpenFOAM-v2.2/ OpenFOAM Code:
. OpenFOAM/OpenFOAM-2.2.0/etc/bashrc Then, Code:
cd OpenFOAM/OpenFOAM-2.2.0 ./Allwmake 2>&1 | tee rdb.log Code:
wmake/rules/darwinIntel64Gcc46/general: Not a directory Last edited by rdbisme; May 19, 2013 at 20:51. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker | rt08 | OpenFOAM Installation | 1 | February 28, 2016 20:00 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |