Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    WSL2上多版本OpenFOAM并存在mpirun的过程中的一种Process received signal问题

    OpenFOAM
    2
    3
    124
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Prometheus10 last edited by

      各位前辈大家好!
      关注cfd中文网很久了,但自己一直在理论和实操方面资质尚浅,不能做什么贡献。:zoule:
      自己的WSL2上有多版本OpenFOAM并存,最近在mpirun的过程中遇到其中一类Process received signal问题。
      提供一个解决办法,希望对他人有帮助。
      问题如下:
      :chouchou:
      比如我是OpenFOAM-v2012和OpenFOAM-9共存
      启动终端默认加载v2012的bashrc
      然后通过alias"of9"切换到数字版本下,此时mpirun -np 8 interFoam -parallel 会出现以下报错

      [node5:45736] *** Process received signal ***
      [node5:45736] Signal: Segmentation fault (11)
      [node5:45736] Signal code:  (-6)
      [node5:45736] Failing at address: 0xb2a8
      [node5:45736] [ 0] linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0x4000048f1500]
      [node5:45736] [ 1] /usr/lib64/libc.so.6(gsignal+0x38)[0x400007ed08f0]
      [node5:45736] [ 2] linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0x4000048f1500]
      [node5:45736] *** End of error message ***
      

      解决方案为:让终端启动时默认加载OpenFOAM-9的bashrc,而不是先OpenFOAM-v2012再alias"of9"到数字版本。
      这样做即使alias到v版本也不会有任何问题。

      祝顺利!:xinxin:

      李东岳 1 Reply Last reply Reply Quote
      • Moved from C斯达克 by  李东岳 李东岳 
      • 李东岳
        李东岳 管理员 @Prometheus10 last edited by

        额 这个是为什么捏 :143:

        CFD课程 改成线上了 http://dyfluid.com/class.html
        CFD高性能服务器 http://dyfluid.com/servers.html

        P 1 Reply Last reply Reply Quote
        • P
          Prometheus10 @李东岳 last edited by

          @李东岳 我也不太清楚,东岳老师。:143:

          1 Reply Last reply Reply Quote
          • First post
            Last post

          CFD中文网 | 东岳流体 | 京ICP备15017992号-2