nextfoam / baram

CFD for Everyone
https://baramcfd.org/
GNU General Public License v3.0
92 stars 18 forks source link

Error while starting #29

Closed hetanshu9 closed 1 year ago

hetanshu9 commented 1 year ago

At the time of startup of Baram on MacBook Air M1 it throws error. On entering "python main.py" it shows error as in attached screenshot. Image 28-12-22 at 11 26 PM

Thanks

jiban commented 1 year ago

Oh. Could you change the line 53 of /Users/hetanshu/baram/openfoam/run.py file like following?

ompiPath = glob.glob(str(OPENFOAM / 'lib' / 'sys-openmpi*'))[0]  # No Validity Check. It should exist.

It's just to put sys- in front of openmpi*.

hetanshu9 commented 1 year ago

Thanks for prompt response, after making suggested correction it again throws error as per attached screenshot. Image 29-12-22 at 8 01 AM

jiban commented 1 year ago

You can just delete line 54 and line 58 in /Users/hetanshu/baram/openfoam/run.py

image

Be the way, I found that your mac has M1 that is not supported by BARAM solvers yet. Current solvers for macOS are compiled for Intel CPU only. Solvers for M1 will be available next month. ( And above errors will be fixed too) I will let you know as soon as they get available.

hetanshu9 commented 1 year ago

ok thanks

jiban commented 10 months ago

Hi, @hetanshu9. Installation package for macOS with Apple silicon has released today. You may want to try it. For more information, refer to BARAM Page.