# Perpendicular Flap (OpenFOAM + Calculix) Floating Point Exception

**URL:** <https://precice.discourse.group/t/perpendicular-flap-openfoam-calculix-floating-point-exception/621>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, calculix, fsi\
**Created:** [June 9, 2021, 12:31am UTC](https://precice.discourse.group/t/perpendicular-flap-openfoam-calculix-floating-point-exception/621 "2021-06-09T00:31:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Tree](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/mike_tree/32/472_2.png) [@Mike\_Tree](https://precice.discourse.group/u/Mike_Tree)\
**Post date:** [June 9, 2021, 12:31am UTC](https://precice.discourse.group/t/perpendicular-flap-openfoam-calculix-floating-point-exception/621/1 "2021-06-09T00:31:22Z")

</div>

I’m attempting to run the perpendicular flap tutorial using OpenFOAM (v2006) as the fluid solver and Calculix (2.16) as the solid solver. I am using the master branch of the tutorials repo and compiled the OpenFOAM and Calcuix adapters from their respective master branches as well. I’ve made no changes to the tutorial scripts or configurations. I simple loaded the proper environment variables (via modules files) for the fluid and solid solvers in their respective terminals and then attempted to execute:

```
./run.sh

```

It appears that the floating point exception is occurring somewhere within the code that is attempting to move the fluid mesh? I’ve attached the terminal output from the solid and fluid executions in hopes that they can provide the insight needed.

[fluid.log](https://precice.discourse.group/uploads/short-url/hINwknwo5BUq0Y0cysZfB0LuC32.log) (13.9 KB)  
[solid.log](https://precice.discourse.group/uploads/short-url/hwDe2C1hPhjxKRDVu4xc5D7iXis.log) (9.4 KB)

Any help is most appreciated!

---

<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:** [June 9, 2021, 7:02am UTC](https://precice.discourse.group/t/perpendicular-flap-openfoam-calculix-floating-point-exception/621/2 "2021-06-09T07:02:38Z")

</div>

Are you sure you used the latest `master` of the OpenFOAM adapter? The latest state should report a version number and have debug output disabled by default.

We recently started making proper releases, just get the latest one from GitHub: [https://github.com/precice/openfoam-adapter/releases/latest](https://github.com/precice/openfoam-adapter/releases/latest)

I don’t know what exactly triggered this error, but I suspect our recent updates to support cellDisplacements next to pointDisplacements, in order to not need separate meshes for displacements and forces. This tutorial requires this feature, but your adapter version does not know of this yet.

---

<div class="post-metadata">

**Author:** ![Mike\_Tree](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/mike_tree/32/472_2.png) [@Mike\_Tree](https://precice.discourse.group/u/Mike_Tree)\
**Post date:** [June 9, 2021, 2:57pm UTC](https://precice.discourse.group/t/perpendicular-flap-openfoam-calculix-floating-point-exception/621/3 "2021-06-09T14:57:53Z")

</div>

I thought I was sure that I was using the latest from the master branch of the OpenFOAM adapter repo, but apparently I wasn’t. I re-compiled and it now works.

Thanks for the easy fix!

---

<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:** [June 12, 2021, 2:58pm UTC](https://precice.discourse.group/t/perpendicular-flap-openfoam-calculix-floating-point-exception/621/4 "2021-06-12T14:58:35Z")

</div>

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