CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新

    串行没问题,并行报无可执行文件,,大神求助

    OpenFOAM
    2
    3
    1761
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 红豆沙
      红豆沙 最后由 编辑

      使用hello.c文件测试没问题,运行算例出现无可执行文件
      困扰许久,不知怎么解决,,(因为这个 我把系统都重搞了一编)

      zc7565@chun:~/MPI/openmpi-4.0.1/examples$ mpirun -np 2 hello_c
      Hello, world, I am 0 of 2, (Open MPI v4.0.1, package: Open MPI chun@RedPea Distribution, ident: 4.0.1, repo rev: v4.0.1, Mar 26, 2019, 106)
      Hello, world, I am 1 of 2, (Open MPI v4.0.1, package: Open MPI chun@RedPea Distribution, ident: 4.0.1, repo rev: v4.0.1, Mar 26, 2019, 106)
      
      
      Decomposing mesh region0
      
      Create mesh
      
      Calculating distribution of cells
      Selecting decompositionMethod simple
      
      Finished decomposition in 0 s
      
      Calculating original mesh data
      
      Distributing cells to processors
      
      Distributing faces to processors
      
      Distributing points to processors
      
      Constructing processor meshes
      
      Processor 0
          Number of cells = 1134
          Number of faces shared with processor 1 = 47
          Number of processor patches = 1
          Number of processor faces = 47
          Number of boundary faces = 2381
      
      Processor 1
          Number of cells = 1134
          Number of faces shared with processor 0 = 47
          Number of processor patches = 1
          Number of processor faces = 47
          Number of boundary faces = 2363
      
      Number of processor faces = 47
      Max number of cells = 1134 (0% above average 1134)
      Max number of processor patches = 1 (0% above average 1)
      Max number of faces between processors = 47 (0% above average 47)
      
      Time = 0
      
      Processor 0: field transfer
      Processor 1: field transfer
      
      End
      
      zc7565@chun:~/OpenFOAM/zc7565-dev/run/DM$ mpirun –np 2 interFoam –parallel > log--------------------------------------------------------------------------
      mpirun was unable to find the specified executable file, and therefore
      did not launch the job.  This error was first reported for process
      rank 0; it may have occurred for other processes as well.
      
      NOTE: A common cause for this error is misspelling a mpirun command
            line parameter option (remember that mpirun interprets the first
            unrecognized command line token as the executable).
      
      Node:       chun
      Executable: –np
      
      

      世界那么大,怎能不去看看

      1 条回复 最后回复 回复 引用
      • W
        wwzhao 教授 最后由 编辑

        mpirun 把 -np 当成程序名了,你的横线写错了, – 应该为 - 。

        红豆沙 1 条回复 最后回复 回复 引用
        • 红豆沙
          红豆沙 @wwzhao 最后由 编辑

          @wwzhao 谢谢拉 困扰了我这么久 还一直以为是 环境变量的问题呢

          世界那么大,怎能不去看看

          1 条回复 最后回复 回复 引用
          • First post
            Last post