BraveZhao的个人博客分享 http://blog.sciencenet.cn/u/BraveZhao

博文

[转载]VASP固定晶轴优化

已有 3057 次阅读 2021-4-9 09:07 |个人分类:VASP|系统分类:科研笔记|文章来源:转载

转自:http://bbs.keinsci.com/thread-9494-1-6.html

      SUBROUTINE CONSTR_CELL_RELAX(FCELL)

      USE prec

      REAL(q) FCELL(3,3)

      DO I=1,3

        FCELL(3,I)=0

        FCELL(I,3)=0

      ENDDO

!     just one simple example

!     relaxation in x directions only

!      SAVE=FCELL(1,1)

!      FCELL=0   ! F90 style: set the whole array to zero

!      FCELL(1,1)=SAVE

!     relaxation in z direction only

!      SAVE=FCELL(3,3)

!      FCELL=0   ! F90 style: set the whole array to zero

!      FCELL(3,3)=SAVE


      RETURN

      END SUBROUTINE




https://wap.sciencenet.cn/blog-3388193-1281073.html

上一篇:为什么反应力场中不能使用neigh_modify exclude排除掉一种原子类型与另一种原子类型的相互作用
下一篇:python 输出到文件不缓存,即时输出
收藏 IP: 36.153.138.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-20 10:04

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部