How to write a coupled code and a preCICE configuration file

I want to use a simple example code I wrote to couple, but I don’t know how to write a configuration file. Please help me to see, what is missing from my config file. Thank you
precice-config.txt (1.4 KB)
solver_a.txt (1.3 KB)
solver_b.txt (1.3 KB)

Hi @Carl,

I left this question unanswered for a bit, to encourage others to engage, as one can easily write a lot about it.

The general guide for coupling your code is here:

This is how your current config file looks like schematically (generated with the config visualizer):

Looks like you are currently missing a mapping.

Note that you can also use precice-tools to check your configuration for such issues. In this case, however, it does not detect the missing mapping as an issue (this is allowed, but probably not what you want):

$ precice-tools check precice-config.xml 
Checking precice-config.xml for syntax and basic setup issues...
No major issues detected

We are working on a more elaborate configuration checker for such issues, as well as on auto-generating configuration files. These are all topics to discuss in the next preCICE workshop.

1 Like