|
|
我找了一下,electrode应该是2022年新加的一个Package,你需要在lib里安装这个模块,lib里会有个Install.py文件夹,他原文是这么说的:
Install.py tool to do a generic build of a library
soft linked to by many of the lib/Install.py files
used to automate the steps described in the corresponding lib/READM
....................
Syntax from src dir: make lib-libname args="-m machine -e suffix"
Syntax from lib dir: python Install.py -m machine -e suffix
libname = name of lib dir (e.g. atc, h5md, meam, poems, etc)
specify -m and optionally -e, order does not matter
Examples:
make lib-poems args="-m serial" # build POEMS lib with same settings as in the serial Makefile in src
make lib-colvars args="-m mpi" # build COLVARS lib with same settings as in the mpi Makefile in src
make lib-meam args="-m ifort" # build MEAM lib with custom Makefile.ifort (using Intel Fortran)
有的包是需要额外在lib里先编译一遍的,比如gpu加速,electrode也一样。
我试了一下,进入lib/electrode文件夹,使用python Install.py -m mpi 指令就可以生成对应的Makefile.lammps文件和对应的库文件libelectrode.a
之后再回到src文件进行正常编译就可以了
同样在src文件夹下使用 make lib-ELECTRODE args="-m mpi" 也可以达到同样的效果
|
评分 Rate
-
查看全部评分 View all ratings
|