# Building OpenFOAM adapter failed

**URL:** <https://precice.discourse.group/t/building-openfoam-adapter-failed/1804>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, adapters\
**Created:** [February 29, 2024, 7:09am UTC](https://precice.discourse.group/t/building-openfoam-adapter-failed/1804 "2024-02-29T07:09:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Femi](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@Femi](https://precice.discourse.group/u/Femi)\
**Post date:** [February 29, 2024, 7:09am UTC](https://precice.discourse.group/t/building-openfoam-adapter-failed/1804/1 "2024-02-29T07:09:13Z")

</div>

Hello everyone,

I feel like I am almost late to the party just finding out about preCICE.

So, I am trying to install the OpenFoam adapter for preCICE and getting the error shown in the wmake file attached to this post.

OpenFOAM version: openfoam-v2206  
preCICE version: 3.0.0  
installation method: spack  
linux distribution: Ubuntu22.04  
Adapter: openefoam-adapter-v1.2.3-master

The primary issue seems to be related to a SolverInterface.hpp that is not found anywhere in my system.

Please help.  
Thanks

[Allwmake.log](https://precice.discourse.group/uploads/short-url/ipO3kiIBr7CxBvV6mZABeKCOukC.log) (1.2 KB)  
[wmake.log](https://precice.discourse.group/uploads/short-url/6GnUvH3tvYxtTkrvBkj6lLGWsit.log) (5.3 KB)

---

<div class="post-metadata">

**Author:** ![Gong\_CHEN](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/gong_chen/32/2212_2.png) [@Gong\_CHEN](https://precice.discourse.group/u/Gong_CHEN)\
**Post date:** [February 29, 2024, 7:42am UTC](https://precice.discourse.group/t/building-openfoam-adapter-failed/1804/2 "2024-02-29T07:42:21Z")

</div>

The OpenFOAM adapter seems not yet update, the adapter package you used is not compatible with the preCICE v3.0.0

---

<div class="post-metadata">

**Author:** ![fsimonis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsimonis/32/6_2.png) [@fsimonis](https://precice.discourse.group/u/fsimonis)\
**Post date:** [February 29, 2024, 9:51am UTC](https://precice.discourse.group/t/building-openfoam-adapter-failed/1804/3 "2024-02-29T09:51:00Z")

</div>

As @Gong_CHEN mentioned, there is not v3-compatible release of the adapter yet.

From my understanding, the migration is pretty much done So you could try using the develop version of the OpenFOAM adapter. Until the next release.

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [February 29, 2024, 10:31am UTC](https://precice.discourse.group/t/building-openfoam-adapter-failed/1804/4 "2024-02-29T10:31:38Z")

</div>

The develop branch is already compatible, you could try that.  
We are currently in a transition period. The rest is planned till end of March.

---

<div class="post-metadata">

**Author:** ![Femi](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@Femi](https://precice.discourse.group/u/Femi)\
**Post date:** [February 29, 2024, 2:30pm UTC](https://precice.discourse.group/t/building-openfoam-adapter-failed/1804/5 "2024-02-29T14:30:33Z")

</div>

Hello all, Thanks for your guidance.  
Building completed successfully with the develop branch.

git clone [GitHub - precice/openfoam-adapter: OpenFOAM-preCICE adapter](https://github.com/precice/openfoam-adapter.git)  
cd openfoam-adapter  
git checkout develop

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [March 3, 2024, 2:31pm UTC](https://precice.discourse.group/t/building-openfoam-adapter-failed/1804/6 "2024-03-03T14:31:13Z")

</div>

Closed on March 3, 2024, 2:31pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
