|
[Sponsors] |
[OpenFOAM.com] Install v2006 on macOS Mojave failed |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 20, 2021, 08:02 |
|
#21 |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
||
September 25, 2021, 07:30 |
|
#22 |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
||
October 9, 2021, 06:49 |
|
#23 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
We supply all of the docker files and resource files here: https://develop.openfoam.com/packaging/containers You will want to create an image using the openSUSE packages. This is described in the corresponding file https://develop.openfoam.com/packagi...eap-Dockerfile After running docker build on this, you can either tag it with the "opencfd/.." prefix so that the openfoam-docker script finds it, or run the openfoam-docker with -image=<your-image> |
||
October 10, 2021, 16:21 |
|
#24 | |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Quote:
Thank you Olsen, i did what you suggested... it works much better! Thanks |
||
October 17, 2021, 21:22 |
|
#25 |
Member
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14 |
Hello All
The reason for this error is that "feexceptErsatz.H" refers to the x86_64 structure of fenv.h. "feexceptErsatz.H" needs to be rewritten so that it uses the arm64 structure. Here is how I built it, for your reference. https://ttsyshmz.github.io/howtoFoam...2106-on-m1mac/ |
|
October 18, 2021, 03:51 |
|
#26 | |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Quote:
But, is your Mac equipped with an M1 SoC or with a x86 cpu? In another post, a forum member suggested this: "You'll need to remove the sigfpe part(seems like Apple silicon doesn't support this feature?) then it should compile. https://github.com/mrklein/openfoam-...ment-850090915 " But I don't know exactly what this means... |
||
October 18, 2021, 04:12 |
|
#27 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
|
||
October 22, 2021, 17:05 |
|
#28 |
Senior Member
|
Following the wonderful advice of LongGe and Federico, I managed to install OpenFoam-v2106 on Mac M1!
In a final step, I need to define LD_LIBRARY_PATH to set the path to the third party libraries. How do I do so? Thx! |
|
October 24, 2021, 10:00 |
|
#29 |
Senior Member
|
Update:
Various of the third party packages fail compile with Clang version 12.0 on Darwin. I failed to see this earlier. (Switch to gcc on Darwin is not supported). E.g. scotch fails to compile due to the gettimneoftheday function being implicitly declared in src/libskotch/conmon.c. I was not yet able to turn this error of using -Wno-error=implicit-function-declaration. Kahip fails due to the compiler not finding misc/omp.h . I was not yet able to extern the include directory with this path. Metis does compile after manual download and installation of cmake using brew. I am currently trying to run decomposePar using Metis. After installation LD_LIBRARY_PATH remains empty. Setting LD_LIBRARY_PATH manually does not cure the issue. |
|
October 24, 2021, 18:23 |
|
#30 |
Member
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14 |
Hello All
In my case, I installed the third party with brew. As described here. https://github.com/mrklein/openfoam-...ster/README.md |
|
October 25, 2021, 04:20 |
|
#31 |
Senior Member
|
Further updates:
(1/3): good news: I managed to install Cmake using brew, to download Metis from the repository, to install Metis, to set DYLD_LIBRARY_PATH (observe MAC-OS convention) manually and to run decomposePar to obtain a decomposition. So far, so good. (2/3): first question: A parallel run of simpleFoam fails, that is, "mpirun -np 4 simpleFoam -parallel" returns with "The dummy Pstream library cannot be used in parallel mode". The same issue however was however reported e.g. here https://develop.openfoam.com/Develop.../-/issues/1970. Will need to give it a look. (3/3): second question: the compilation of the third party mesher cfMesh using Clang fails. I will give specifics in a next update. Last edited by dlahaye; October 25, 2021 at 04:27. Reason: Added info |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel | U.Golling | OpenFOAM Running, Solving & CFD | 52 | September 23, 2023 04:35 |
Initial conditions for uniform flow | andreas | OpenFOAM | 5 | November 16, 2012 16:00 |
[OpenFOAM] ParaView/Parafoam error when making animation | Disco_Caine | ParaView | 6 | September 28, 2010 10:54 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |