运行 Openmdao v1.7.3 教程和基准测试时出现 Petsc 错误

Petsc error when running Openmdao v1.7.3 tutorials and benchmarks

我已经尝试 运行使用 Openmdao 抛物面教程和基准测试,但我始终收到相同的错误,内容如下:

[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind
[0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to find memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run 
[0]PETSC ERROR: to get more information on the crash
---------------------------------------------------------------------
MPI_abort was invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 59.
NOTE: invoking MPI_ABORT causes MPI to kill all MPI processes.
you may or may not see output from other processes, depending on exactly when Open MPI kills them.

我不明白为什么会出现此错误以及我可以做些什么才能 运行 OpenMDAO 而不会出现此错误。你能帮我解决这个问题吗?

您的 PETSc 安装出现问题。虽然很难从远处调试它。它可能在您的 MPI 安装、PETSc 安装或 petsc4py 安装中。我建议不要通过 pip 安装 PETSc 或 PETSc4Py。我在这方面取得了好坏参半的成功。两者都可以毫不费力地从源代码安装。

但是,对于 运行 教程,您不需要安装 PETSc。您可以删除这些软件包,教程将 运行 正确地为您连续