# Issue with ccx\_precice

**URL:** <https://precice.discourse.group/t/issue-with-ccx-precice/440>\
**Category:** Official adapters and tutorials\
**Tags:** calculix\
**Created:** [February 4, 2021, 11:43am UTC](https://precice.discourse.group/t/issue-with-ccx-precice/440 "2021-02-04T11:43:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Titan](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@Titan](https://precice.discourse.group/u/Titan)\
**Post date:** [February 4, 2021, 11:43am UTC](https://precice.discourse.group/t/issue-with-ccx-precice/440/1 "2021-02-04T11:43:04Z")

</div>

Hi,

I have issues with installing calculix adapter. Attached log file shows error [make.log](https://precice.discourse.group/uploads/short-url/2wybsjbJApTN81PRkwJI2dzzvqU.log) (1.6 MB) (at the end of the file).  
Prior to this I installed precice using spack. As the gcc compiler is old, I had to install gcc 8.4 using spack.  
I have sourced the precice path before compiling calculix adapter. Correct paths to ARPACK, SPOOLES and YAML are specified in the Makefile of calculix adapter. I have specified correct library paths before compiling  
export LD\_LIBRARY\_PATH=/scratch/user/spack/opt/spack/linux-centos7-broadwell/gcc-8.4.0/precice-2.1.1-4kdsqbkqa52t4t27nofy3cfddayanelo/lib64:$LD\_LIBRARY\_PATH  
export PKG\_CONFIG\_PATH=/scratch/user/spack/opt/spack/linux-centos7-broadwell/gcc-8.4.0/precice-2.1.1-4kdsqbkqa52t4t27nofy3cfddayanelo/lib64/pkgconfig:$PKG\_CONFIG\_PATH

May I know what could be the issue?  
Also, in the Makefile [https://github.com/precice/calculix-adapter/blob/master/Makefile](https://github.com/precice/calculix-adapter/blob/master/Makefile), line 88, -I$(YAML)/include, I don’t understand where YAML is included in the file? I had to change this to $(YAML\_INCLUDE) to eliminate errors in locating yaml.h.

Regards,

---

<div class="post-metadata">

**Author:** ![Titan](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@Titan](https://precice.discourse.group/u/Titan)\
**Post date:** [February 5, 2021, 2:06pm UTC](https://precice.discourse.group/t/issue-with-ccx-precice/440/2 "2021-02-05T14:06:30Z")

</div>

When I changed gfortran to mpifort in the Makefile, the compilation was successful. So, the query can be closed.

But please do look into $(YAML) on line 88 of Makefile. This might need a correction.

Regards,  
T

---

<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:** [February 8, 2021, 11:24am UTC](https://precice.discourse.group/t/issue-with-ccx-precice/440/3 "2021-02-08T11:24:15Z")

</div>

Hi @Titan ,

In [this line](https://github.com/precice/calculix-adapter/blob/master/Makefile#L66) of the Makefile, the compiler is already `mpifort`, did you do the change `gfortran --> mpifort` somewhere else?

> But please do look into $(YAML) on line 88 of Makefile. This might need a correction.

Thanks for reposting this, this is indeed a problem and we will fix it. To have this as a record, if you want you can open an issue in the [GitHub - precice/calculix-adapter: preCICE-adapter for the CSM code CalculiX](https://github.com/precice/calculix-adapter) repository and we will resolve it.

---

<div class="post-metadata">

**Author:** ![Titan](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@Titan](https://precice.discourse.group/u/Titan)\
**Post date:** [February 8, 2021, 11:40am UTC](https://precice.discourse.group/t/issue-with-ccx-precice/440/4 "2021-02-08T11:40:04Z")

</div>

Ah yes, I forgot to mention that. I had issues in compilation. So by mistake I changed mpifort to gfortran and then reverted it to mpifort again.

I don’t have a github account yet. Sorry that I will not be able to open this issue on YAML.

---

<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:** [February 8, 2021, 11:44am UTC](https://precice.discourse.group/t/issue-with-ccx-precice/440/5 "2021-02-08T11:44:40Z")

</div>

No issues, glad to know everything works now! The `$(YAML)` issue will be resolved, thanks 🙂

---

<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:** [February 11, 2021, 11:44am UTC](https://precice.discourse.group/t/issue-with-ccx-precice/440/6 "2021-02-11T11:44:44Z")

</div>

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