并行计算MPI的问题
-
这是我切换mpi版本的命令别名
定义好这两个环境变量就行了#--------------------------------------- openfoam alias openmpi_1.10.2='export PATH="/home/can/.local/share/OpenFOAM/ThirdParty-4.x/openmpi_1.10.2/bin:$PATH" \ export LD_LIBRARY_PATH="/home/can/.local/share/OpenFOAM/ThirdParty-4.x/openmpi_1.10.2/lib:$LD_LIBRARY_PATH"' alias openmpi_1.6.5='export PATH="/home/can/.local/share/OpenFOAM/ThirdParty-2.3.x/openmpi_1.6.5/bin:$PATH" \ export LD_LIBRARY_PATH="/home/can/.local/share/OpenFOAM/ThirdParty-2.3.x/openmpi_1.6.5/lib:$LD_LIBRARY_PATH"'
-
@bestucan 老师,我看了一下您的这个设置,可是我的/.local/share/目录下面没有看到OpenFOAM文件夹,这是什么情况?并且打开了$PATH查看结果是这样的
ty2@ubuntu:~/.local/share$ of211 ty2@ubuntu:~/.local/share$ $PATH bash: /home/ty2/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc48/paraview-3.12.0/bin:/home/ty2/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc48/cmake-2.8.12.1/bin:/home/ty2/OpenFOAM/ty2-2.1.1/platforms/linux64Gcc48DPOpt/bin:/home/ty2/OpenFOAM/site/2.1.1/platforms/linux64Gcc48DPOpt/bin:/home/ty2/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64Gcc48DPOpt/bin:/home/ty2/OpenFOAM/OpenFOAM-2.1.1/bin:/home/ty2/OpenFOAM/OpenFOAM-2.1.1/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: No such file or directory
ty2@ubuntu:~/.local/share$ of9 ty2@ubuntu:~/.local/share$ $PATH bash: /home/ty2/OpenFOAM/ThirdParty-9/platforms/linux64Gcc/gperftools-svn/bin:/home/ty2/OpenFOAM/ThirdParty-9/platforms/linux64Gcc/ParaView-5.6.3/bin:/home/ty2/OpenFOAM/ThirdParty-9/platforms/linux64Gcc/cmake-*/bin:/home/ty2/OpenFOAM/ty2-9/platforms/linux64GccDPInt32Opt/bin:/home/ty2/OpenFOAM/site/9/platforms/linux64GccDPInt32Opt/bin:/home/ty2/OpenFOAM/OpenFOAM-9/platforms/linux64GccDPInt32Opt/bin:/home/ty2/OpenFOAM/OpenFOAM-9/bin:/home/ty2/OpenFOAM/OpenFOAM-9/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: No such file or directory