# Undefined reference to get\_mesh\_vertices\_and\_ids\_

**URL:** <https://precice.discourse.group/t/undefined-reference-to-get-mesh-vertices-and-ids/1390>\
**Category:** Using preCICE\
**Tags:** fortran\
**Created:** [April 24, 2023, 6:07am UTC](https://precice.discourse.group/t/undefined-reference-to-get-mesh-vertices-and-ids/1390 "2023-04-24T06:07:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wufanxiaozi](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/wufanxiaozi/32/1643_2.png) [@wufanxiaozi](https://precice.discourse.group/u/wufanxiaozi)\
**Post date:** [April 24, 2023, 6:07am UTC](https://precice.discourse.group/t/undefined-reference-to-get-mesh-vertices-and-ids/1390/1 "2023-04-24T06:07:10Z")

</div>

(Moderator edit: Moved from [Data Mapping and Immersed boundary method - #8](https://precice.discourse.group/t/data-mapping-and-immersed-boundary-method/788/8), replying to @Le_mot )

Very excited to see this thread as I would also like to try the same job. Don’t know if you’ve done your idea, I’m currently facing a difficulty, because my fluid solver is in Fortran language, I used the `precicef_get_mesh_vertices_and_IDs` function when I want to get the mesh vertex coordinates and IDs, but when compiling, the compiler tells I get:

```plaintext
undefined reference to `precicef_get_mesh_vertices_and_ids_'

```

This is why, the version I use is precice 2.5.0. May I ask are you getting the grid position data for the solid directly, or are you using the displacement? In C++ code, using `precice.getMeshVerticesAndIDs`

I would appreciate it if you could share me your config file (precice-config.xml)

Thanks

---

<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:** [April 26, 2023, 11:55am UTC](https://precice.discourse.group/t/undefined-reference-to-get-mesh-vertices-and-ids/1390/2 "2023-04-26T11:55:38Z")

</div>

In v2.5.0, the Fortran function is called `precicef_get_mesh_vertices_and_IDs_`.

This may be renamed or completely changed in preCICE v3.

Closing as duplicate of [An error occurs when I want to access the mesh information directly - #2 by wufanxiaozi](https://precice.discourse.group/t/an-error-occurs-when-i-want-to-access-the-mesh-information-directly/1386/2)

---

<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:** [April 26, 2023, 11:57am UTC](https://precice.discourse.group/t/undefined-reference-to-get-mesh-vertices-and-ids/1390/3 "2023-04-26T11:57:13Z")

</div>


