# CalculiX adapter installation

**URL:** <https://precice.discourse.group/t/calculix-adapter-installation/1846>\
**Category:** Official adapters and tutorials\
**Tags:** calculix\
**Created:** [March 21, 2024, 1:03pm UTC](https://precice.discourse.group/t/calculix-adapter-installation/1846 "2024-03-21T13:03:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [March 21, 2024, 1:03pm UTC](https://precice.discourse.group/t/calculix-adapter-installation/1846/1 "2024-03-21T13:03:03Z")

</div>

Hi,  
I’m trying to use the CalculiX adapter with preCICE 3.0.0. I am following the installation instructions and I have done the following:

- put CalculiX in the home directory so that I have `~/CalculiX/ccx_2.20/src`
- retrieved the adapter `wget https://github.com/precice/calculix-adapter/archive/refs/heads/master.tar.gz` (it looks to me that the deb files looks for libprecice2…)
- updated the Makefile CFLAGS with `-fallow-argument-mismatch`

Nevertheless I get the following compilation error:

```
 mpifort -Wall -O3 -fopenmp -I./ -I./adapter -I/home/claudio/CalculiX/ccx_2.20/src -I/usr/include/spooles/ -I/usr/local/include -I/usr/include/ -c /home/claudio/CalculiX/ccx_2.20/src/cubtri.f -o bin/cubtri.o
 /home/claudio/CalculiX/ccx_2.20/src/cubtri.f:134:18:
 
134 | CALL CUBRUL(F, VEC, W(1,1), IDATA, RDATA)
    | 1
Error: Interface mismatch in dummy procedure ‘f’ at (1): 'f' is not a function
/home/claudio/CalculiX/ccx_2.20/src/cubtri.f:173:20:

173 | CALL CUBRUL(F, VEC, W(1,J), IDATA, RDATA)
    | 1
Error: Interface mismatch in dummy procedure ‘f’ at (1): 'f' is not a function
make: *** [Makefile:96: bin/cubtri.o] Error 1

```

Am I missing something? Thank you  
Claudio

---

<div class="post-metadata">

**Author:** ![IshaanDesai](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ishaandesai/32/1048_2.png) [@IshaanDesai](https://precice.discourse.group/u/IshaanDesai)\
**Post date:** [April 1, 2024, 9:02am UTC](https://precice.discourse.group/t/calculix-adapter-installation/1846/2 "2024-04-01T09:02:25Z")

</div>

Hi @Claudio

Good catch that the deb files still look for libprecice2. I have made a change in the packaging recipe on a separate branch: [GitHub - precice/calculix-adapter at use-libprecice3](https://github.com/precice/calculix-adapter/tree/use-libprecice3) Can you please try out this branch in a fresh procedure?

I have not seen the error before, so let us go step by step and figure it out.

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [April 3, 2024, 1:05pm UTC](https://precice.discourse.group/t/calculix-adapter-installation/1846/3 "2024-04-03T13:05:29Z")

</div>

Hi @IshaanDesai ,  
I cannot reach the link you gave. I have tried with this tag [calculix adapter v2.20.1](https://github.com/precice/calculix-adapter/releases/tag/v2.20.1) with a newly extracted CalculiX (version 2.20) source code, but I get the same error. I am using system libraries for spooles , arpack and yaml.  
Can you please check the link above? I might have missed something.

Thank you  
Claudio

---

<div class="post-metadata">

**Author:** ![IshaanDesai](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ishaandesai/32/1048_2.png) [@IshaanDesai](https://precice.discourse.group/u/IshaanDesai)\
**Post date:** [April 8, 2024, 3:54pm UTC](https://precice.discourse.group/t/calculix-adapter-installation/1846/4 "2024-04-08T15:54:11Z")

</div>

Hi @Claudio

Sorry, the link was to a branch which was deleted. We have now added updates debian packages to the latest releases: [Release v2.20.1 · precice/calculix-adapter · GitHub](https://github.com/precice/calculix-adapter/releases/tag/v2.20.1)  
Can you please try to install once more?

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [April 11, 2024, 1:50pm UTC](https://precice.discourse.group/t/calculix-adapter-installation/1846/5 "2024-04-11T13:50:26Z")

</div>

Hi @IshaanDesai  
Thanks for the update. I have installed the .deb file that you linked and everything looks good. ccx\_preCICE is found and no issues with preCICE v3 have appeared. Unfortunately I haven’t had the time to run the simulation I was planning, but I think this solves the installation problem.  
claudio

---

<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:** [April 14, 2024, 1:50pm UTC](https://precice.discourse.group/t/calculix-adapter-installation/1846/6 "2024-04-14T13:50:56Z")

</div>

Closed on April 14, 2024, 1:50pm UTC

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