计算化学公社
标题:
vasp单轴优化更改constr_cell_relax.F后怎么编译
[打印本页]
作者Author:
sunnyxin0
时间:
2021-5-23 10:40
标题:
vasp单轴优化更改constr_cell_relax.F后怎么编译
参考VASP 固定基矢优化结构方法
http://bbs.keinsci.com/thread-9494-1-1.html
(出处: 计算化学公社)
这个帖子,修改constr_cell_relax.F后进行如下操作。但是这样操作后编译报错?
3. 编译
建议重新解压源码编译软件
[yourname@localhost ~]$ tar -zxvf vasp.5.4.1.05Feb16.tar.gz
[yourname@localhost ~]$ tar -zxvf vasp.5.lib_.tar_2.gz
[yourname@localhost ~]$ cd vasp.5.4.1
[yourname@localhost ~]$ cp arch/makefile.include.linux_intel makefile.include
[yourname@localhost ~]$ make std
[color=rgb(51, 102, 153) !important]
复制代码
普通用户在家目录安装编译前在 makefile.include 文件中添加 $MKLROOT,位置如下
MKLROOT =/share/intel/composer_xe_2015.6.233/mkl
MKL_PATH = $(MKLROOT)/lib/intel64
[color=rgb(51, 102, 153) !important]
复制代码
编译结束后,进入 bin 目录,可将 vasp_std 重命名为 vasp_fixZ ,将软件移入系统 bin 目录下或将该目录添加至环境变量。
[yourname@localhost ~]$ echo 'export PATH=/home/yourname/vasp.5.4.1/bin:$PATH' >> ~/.bashrc
[yourname@localhost ~]$ source ~/.bashrc
[color=rgb(51, 102, 153) !important]
复制代码
完成编译后,在 INCAR 文件中设置 ISIF=3,便可实现固定 Z 轴的结构优化。
作者Author:
MisakaFaction
时间:
2021-5-25 16:11
直接在你原来的vasp文件中替换constr_cell_relax.F,然后make veryclean,再按原方法编译即可。
他的编译方法不一定适合你。
如果编译报错,要贴出编译报错信息。
欢迎光临 计算化学公社 (http://ccc.keinsci.com/)
Powered by Discuz! X3.3