@prj
Thanks to your guidance, I’ve completed the initial version of my code. However, I’m facing some persistent issues with its robustness:
The script isn’t robust enough, it works with -n 4 but fails with -n 6 , and sometimes it produces different results even when run multiple times with the same parameters.
For example, if I run the code withff-mpirun -n 4 FSI-SLEPc-MWE.edp -wg multiple times, it gives:
Apparently, the first one looks better than the others.
I’ve tried debugging it but haven’t been able to identify the root cause. I’m also uncertain if the solver configuration is optimal. I would be very grateful if you could take a look and help me diagnose the problem.
Here is my code attached: FSI-SLEPc-MWE.edp (5.4 KB)
By the way, I have a question about restriction-2d-PETSc.edp, the parameter ThGlCond in line 35 is not declared beforehand; however, the example compiles and runs without issues, so does ThGlNoCond. Is this associated with macro_ddm.idp?
It was a mistake that the matrix is built with wrong fespace. Surprisingly, it compiled and ran, but produced incorrect results. Occasionally, it even produced “correct” results. I think there might be some non-deterministic behavior in the solver.