简体   繁体   English

自制安装后从命令行调用LAMMPS

[英]Invoking LAMMPS from commandline after a Homebrew Installation

I am trying to invoke the LAMMPS package from the terminal (OSX). 我正在尝试从终端(OSX)调用LAMMPS软件包。

The documentation here seems to indicate that under Mac OSX it will 'just work' and here they are using the following command to interface to the library 这里的文档似乎表明在Mac OSX下它将“正常工作”,并且在这里他们使用以下命令连接到库

$ lmp_linux

I installed the script with homebrew via this minimalistic documentation and I have checked the installation is correct. 我通过此简约文档使用homebrew安装了脚本,并检查了安装是否正确。 I feel that this is something someone more familiar with homebrew installations may be able to quickly answer 我觉得这是更熟悉自制软件的人可能可以快速回答的问题

brew info lammps

this will tell you where you installed the package. 这将告诉您软件包的安装位置。 It appears as though you haven't "Made" the executable yet. 似乎您尚未“制作”可执行文件。 This page states that you need to navigate to your src/ file (probably in ~/Documents/Lammps\\ Turball/src/ or similar following your homebrew download). 页面指​​出,您需要导航到src/文件(可能在您进行自制下载后,位于~/Documents/Lammps\\ Turball/src/或类似文件中)。

Now in the src/ folder in terminal type one of the following commands 现在,在终端的src/文件夹中,键入以下命令之一

make mpi
make serial

Read the docs though here for more information. 此处阅读文档以获取更多信息。

To call LAMMPS just type in your terminal: lmp_mpi or lmp_serial. 要调用LAMMPS,只需输入您的终端:lmp_mpi或lmp_serial。 To get further help just type lmp_mpi -h or lmp_serial -h. 要获得更多帮助,只需键入lmp_mpi -h或lmp_serial -h。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM