K-POINTS Generation script

2016-10-20

#!/bin/bash

if [ -z $4 ] ; then  # If title if empty

cat >KPOINTS<<!
K-POINTS
 0
Gamma
  $1 $2 $3
  0 0 0
!

else                 # If title if specified

cat >KPOINTS<<!
$4
 0
Gamma
  $1 $2 $3
  0 0 0
!

fi

本网站由阿里云提供云计算及安全服务