# \[v4.0.x\] Compilation: unknown \`FINDLOC\` function

**URL:** <https://nemo-ocean.discourse.group/t/v4-0-x-compilation-unknown-findloc-function/244>\
**Category:** v4.0.x\
**Tags:** IOM, TOP\
**Created:** [23 March 2022 16:24 UTC](https://nemo-ocean.discourse.group/t/v4-0-x-compilation-unknown-findloc-function/244 "2022-03-23T16:24:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ntmlod](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/ntmlod/32/6_2.png) [@ntmlod](https://nemo-ocean.discourse.group/u/ntmlod)\
**Post date:** [13 April 2022 09:28 UTC](https://nemo-ocean.discourse.group/t/v4-0-x-compilation-unknown-findloc-function/244/4 "2022-04-13T09:28:19Z")

</div>

As the initial message mention two issues which are already addressed on other topics (see links after): I’m going to rewrite previous messages to focus on `FINDLOC` function subject.

> [@Fortran preprocessing converts \`\_/\*\*/PRECISION\` to problematic \`\_ sp\`](https://nemo-ocean.discourse.group/t/fortran-preprocessing-converts-precision-to-problematic-sp/108):
>
> Hi all, I am currently getting installed on a new supercomputer and I encounter issues regarding pre-compilation. Some subroutine names have a particular syntax finishing by \_/\*\*/PRECISION (ex: SUBROUTINE lbc\_nfd\_/\*\*/PRECISION). The comment /\*\*/ is used to make sure the compiler does recognize that PRECISION is a key work that must be replaced by sp for instance. However, the pre-compiler output in /BLD/ppsrc/nemo/ yields \_/\*\*/sp (ex: SUBROUTINE lbc\_nfd\_/\*\*/sp). During the compilation, m…

> [@\[v4.2.x\] Compilation: no \`xios\_send\_field\` subroutine](https://nemo-ocean.discourse.group/t/v4-2-x-compilation-no-xios-send-field-subroutine/265):
>
> I can compile NEMO-4.0.1 with xios-2.5. But when I try to compile NEMO-4.2 with xios-2.5 it fails with messages NEMOGCM/cfgs/MY\_OCE\_uncpl/BLD/ppsrc/nemo/iom.f90(1940): error #6285: There is no matching specific subroutine for this generic subroutine call. [XIOS\_SEND\_FIELD] CALL xios\_send\_field( cdname, pfield2d, ntile - 1 ) -----------------^ According to xios source files, SUBROUTINE xios\_send\_field uses two arguments. But it seems that NEMO 4.2 tries to call xios\_send\_field wit…

---

_[View the full topic](https://nemo-ocean.discourse.group/t/v4-0-x-compilation-unknown-findloc-function/244)._
