Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails with OpenFoam coupling #73

Open
jomichaelis opened this issue Oct 1, 2024 · 0 comments
Open

Compilation fails with OpenFoam coupling #73

jomichaelis opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jomichaelis
Copy link

When compiling with the flag COMPILE_WITH_OPENFOAM=ON, the following error is prompted:

In file included from /beegfs/home/m/michaelj/MaMiCo_experimental/coupling/scenario/CouetteScenario.h:20,
                 from /beegfs/home/m/michaelj/MaMiCo_experimental/coupling/scenario/main_couette.cpp:8:
/beegfs/home/m/michaelj/MaMiCo_experimental/coupling/solvers/IcoFoamInterface.h:140:44: error: 'IndexConversion' in namespace 'coupling' does not name a template type
  140 |                            const coupling::IndexConversion<3>& indexConversion) {
      |                                            ^~~~~~~~~~~~~~~

How to reproduce

These are the steps performed on hsuper to reproduce:

  1. Install OpenFOAM (v2206)
    Following the instructions in the GitHub Wiki, execute these commands:
module load openmpi/5.0.3-cuda
mkdir -p ~/misc/OpenFOAM
cd ~/misc/OpenFOAM
curl -L https://dl.openfoam.com/source/v2206/OpenFOAM-v2206.tgz > OpenFOAM.tgz
tar -xvzf OpenFOAM.tgz
source ~/misc/OpenFOAM/OpenFOAM-v2206/etc/bashrc
foamSystemCheck
foam
./Allwmake -s -l -j 16

Please be aware that compiling OpenFOAM may take some time (up to 1h)!

  1. Compile MaMiCo
mkdir -p ~/misc/MaMiCo
cd ~/misc/MaMiCo
git clone git@github.com:HSU-HPC/MaMiCo.git .
git checkout master
module load gcc/13.2.0
module load cmake/3.27.9
module load openmpi/5.0.3-cuda
cmake -S. -Bbuild -DBUILD_WITH_MPI=ON -DBUILD_WITH_OPENFOAM=ON
cmake --build build -- -j 16
@jomichaelis jomichaelis added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant