CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM 4.1 on OpenSUSE Leap 42.2 (https://www.cfd-online.com/Forums/openfoam-installation/190052-openfoam-4-1-opensuse-leap-42-2-a.html)

KateEisenhower July 4, 2017 03:24

OpenFOAM 4.1 on OpenSUSE Leap 42.2
 
Hello foamers,

I think the instructions on the openfoamwiki page (http://openfoamwiki.net/index.php/In...M-4.1/openSUSE) are not complete.

1)
Between steps 9 and 10 you should
replace
Code:

Field<scalar> processorWeights;
in /src/parallel/decompose/metisDecomp/metisDecomp.C with
Code:

Field<floatScalar> processorWeights;
according to https://bugs.openfoam.org/view.php?id=2085#bugnotes

2)
After the installation, make the environment available by typing
Code:

of41
in a new terminal. This yields
Code:

mpicc: command not found
I don't have a solution for that yet.

@bgschaid & @wyldckat:
Is it okay to add step 1 to the wiki?

@all
Does anyone know a solution for the problem described in 2)?

Best regards,

Kate

wyldckat July 9, 2017 07:35

Greetings Kate,

The second error should be fixable if you run the following command first:
Code:

source /etc/profile.d/mpi-selector.sh
This was already explained in step #4, including the detail that this command will have to be executed on all terminal windows until you logout. After you log out and then back in, it should no longer be needed.

If it doesn't work, the perhaps Open-MPI is not the default MPI toolbox in your openSUSE installation?


As for the first error, I completely forgot about rechecking it when another bug report was issued: https://bugs.openfoam.org/view.php?id=2330
I did think that the bug report you indicated had already patched this issue in OpenFOAM 4, but it was sooner after reverted, hence the situation you've described.

Let me build OpenFOAM 4.1 on openSUSE 42.1 following the steps on the wiki and then I'll add the bug fix to step #6. I do suspect that I only copy-paste-adapted the instructions and didn't test the instructions myself :(

I'll update this post after I've finished testing.

Best regards,
Bruno

KateEisenhower July 18, 2017 01:58

Hello Bruno,

you were right. Problem 1 was didn't reappear after restarting. Thanks for your help.


All times are GMT -4. The time now is 02:46.