更新时间:2023-11-10 15:46:04
我设法解决了这个问题.老实说,这真是愚蠢.由于某种原因,我没有使用正确的OpenMPI安装(我不知道它使用的是哪个).我使用正确的mpif90
重新编译并使用正确的mpirun
运行它,现在我得到了预期的结果.
抱歉给您带来的困惑,但是我对此很陌生.谢谢您的帮助!
I managed to solve it. It was quite silly, to be honest. For some reason I was not using the right OpenMPI installation (I have no idea which it was using). I recompiled using the right mpif90
and run it using the right mpirun
and now I get the expected result.
Sorry for the confusion, but I am quite new to this. And thank you for the help!