I tried to install the PreCICE OpenFOAM-adapter. The system I use is Linux-mint 19.1. Firstly I successfully installed PreCICE v2.1 and I runned the dummy example successfully. Then I tried to install a new version of OpenFOAM. I can’t install the OpenFOAM-v2006 using the binary. And I successfully built the OpenFOAM-v2006 from source following the instructions of https://develop.openfoam.com/Development/openfoam/blob/develop/doc/Build.md. And I tried to install the OpenFOAM -adapters following https://github.com/precice/openfoam-adapter/wiki/Building. But when I typed ./Allwmake , it alwasys returned no OpenFOAM enviroment is available. I sourced the /etc/bashrc of OpenFOAM-v2006. And as you can see, I can echo $WM_PROJECT and $WM_PROJECT_VERSION with the output of “OpenFOAM” and “v2006”. I don’t know how to solve this problem. And I would like your help.
(base) afan@afan-XPS-8700:~/myProject/precice/openfoam-adapter$ sudo ./Allwmake [sudo]
Current OpenFOAM environment:
WM_PROJECT =
WM_PROJECT_VERSION =
=== ERROR: It looks like no OpenFOAM environment is available. ===
Possible reasons:
- Have you loaded the OpenFOAM etc/bashrc file?
- Are you using a compatible OpenFOAM version?
See https://github.com/precice/openfoam-adapter/wiki/Notes-on-OpenFOAM
(base) afan@afan-XPS-8700:~/myProject/precice/openfoam-adapter$ echo $WM_PROJECT
OpenFOAM
(base) afan@afan-XPS-8700:~/myProject/precice/openfoam-adapter$ echo $WM_PROJECT_VERSION
v2006
Best wishes!