MATLAB-bindings example

Hello everyone, I am running the official matlab-bindings example solverdummy from matlab-bindings/examples/solverdummy in the develop branch of preCICE matlab-bindings/examples/solverdummy at master · precice/matlab-bindings. I found that if I split solverdummy into two .m files, solverone and solvertwo, and place them in the same folder, the preCICE coupling works correctly, as shown below.


However, when I place the two solvers in separate subfolders as shown in the screenshot below, both solvers get stuck at the stage “Setting up primary communication to coupling partner/s” during runtime.

At this point, the following subfiles are generated inside the two folders:
835264b18860c4aa8b95be4ec144b92

I have modified the path to precice-config.xml inside the solvers to ensure it can be correctly located, for example:

configFileName = '../precice-config.xml';

I am confused because in normal preCICE fluid-structure interaction tutorials, such as the ‘perpendicular-flap’ example, the fluid and solid solvers are placed in separate folders like fluid-openfoam and solid-calculix, and the coupling works fine.

Could anyone help explain why my matlab solvers in separate subfolders get stuck at the communication setup, while in other tutorials the separated folders work without issues?

I have solved it from this topic: Help! The participants are not finding each other! - Using preCICE - preCICE Forum on Discourse
Thanks a lot for the contribution from the developer!

1 Like

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