Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    Ubuntu 下 OpenFOAM代码的调试

    OpenFOAM
    5
    6
    1175
    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.
    • 史
      史浩 讲师 last edited by

      OpenFOAM有没有像VS C++那样的断点调试和一步一步运行的功能?

      让我们随波逐流

      1 Reply Last reply Reply Quote
      • 我
        我是河滩 last edited by

        gdbOF也许可以,这篇文章有讲。
        https://zhuanlan.zhihu.com/p/32940120

        动边界

        史 1 Reply Last reply Reply Quote
        • 史
          史浩 讲师 @我是河滩 last edited by

          @我是河滩 多谢~

          让我们随波逐流

          1 Reply Last reply Reply Quote
          • 刘
            刘雄国 last edited by

            qtcreator
            etc/bashrc
            export WM_COMPILE_OPTION=Opt
            改为
            export WM_COMPILE_OPTION=Debug
            然后重新wmake all 在src 里面

            在qtcreator 可以实现一行一行debug, 是可行. 具体步骤可以google以下.

            问题是OpenFOAM 太大了, 建议你还是直接把结果一步一步打印出来就可以拉

            刘 1 Reply Last reply Reply Quote
            • 李东岳
              李东岳 管理员 last edited by

              嗯,debug模式OpenFOAM一个要2个多G :zoule:

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

              1 Reply Last reply Reply Quote
              • 刘
                刘晓刚 @刘雄国 last edited by

                @刘雄国 请教一下, OpenFOAM 的结果怎么一步一步的打印出来那?

                1 Reply Last reply Reply Quote
                • First post
                  Last post

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