There is currently not really such a thing as a Nutils adapter. Coupling Nutils is so simple that directly calling the preCICE Python API from the application scripts is the way to go.

The best way to learn how to couple a Nutils application script is to look at some examples:

We recommend using a Python virtual environment to install different Nutils versions. See the requirements.txt and the run.sh of the cases included in the preCICE tutorials for an example.

Version 8 requires bottombar as a dependency. pip might automatically install version 2.0, which has known issues when used with preCICE. A patch was implemented in version 2.1, thus a workaround is to explicitly re-install version 2.1: pip3 install bottombar==2.1 (in the same virtual environment).

In case you get an error nutils.Matrix.MatrixError: reordering problem, this might be an issue with the solver backend on your system. In that case, try setting NUTILS_MATRIX=scipy before calling the respective Nutils solver (requires installing the Python package scipy).