Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/csh -f
- # Modify this script according to your needs:
- # Uncomment one of the lines ... to adjust
- # starting electron density: either use
- # clmextrapol
- # or a clmsum file from a previous run (with smaller k-mesh,...)
- # convergence criteria,
- # spin-polarization (change run_lapw to runsp_lapw)
- # activate min_lapw
- # modify the save_lapw command
- ############################################################
- cp Sb2Te3_opt.outputkgen.nk8 Sb2Te3_opt.outputkgen
- cp Sb2Te3_opt.kgen.nk8 Sb2Te3_opt.kgen
- cp Sb2Te3_opt.klist.nk8 Sb2Te3_opt.klist
- foreach i ( \
- Sb2Te3_opt_vol_-12.0 \
- Sb2Te3_opt_vol__-9.0 \
- Sb2Te3_opt_vol__-6.0 \
- Sb2Te3_opt_vol__-3.0 \
- Sb2Te3_opt_vol___0.0 \
- Sb2Te3_opt_vol___3.0 \
- Sb2Te3_opt_vol___6.0 \
- Sb2Te3_opt_vol___9.0 \
- Sb2Te3_opt_vol__12.0 \
- Sb2Te3_opt_vol__15.0 \
- Sb2Te3_opt_vol__18.0 \
- )
- rm -f Sb2Te3_opt.struct # NFS-bug
- cp $i.struct Sb2Te3_opt.struct
- # Please uncomment and adapt any of the lines below according to your needs
- # if you have a previous optimize-run:
- # cp $i.clmsum Sb2Te3_opt.clmsum
- # cp $i.clmup Sb2Te3_opt.clmup
- # cp $i.clmdn Sb2Te3_opt.clmdn
- # if you want to start with dstart:
- # x dstart # -c
- # x dstart -up # -c
- # x dstart -dn # -c
- # recommended option: use charge extrapolation
- run_lapw -cc 0.00001 -p # -in1new 3 -in1orig
- # runsp_lapw -ec 0.0001
- # min -I -j "run_lapw -I -fc 1.0 -i 40 "
- set stat = $status
- if ($stat) then
- echo "ERROR status in" $i
- exit 1
- endif
- save_lapw ${i}.nk8
- # save_lapw -f -d XXX $i
- end
- ############################################################
- cp Sb2Te3_opt.outputkgen.nk10 Sb2Te3_opt.outputkgen
- cp Sb2Te3_opt.kgen.nk10 Sb2Te3_opt.kgen
- cp Sb2Te3_opt.klist.nk10 Sb2Te3_opt.klist
- foreach i ( \
- Sb2Te3_opt_vol_-12.0 \
- Sb2Te3_opt_vol__-9.0 \
- Sb2Te3_opt_vol__-6.0 \
- Sb2Te3_opt_vol__-3.0 \
- Sb2Te3_opt_vol___0.0 \
- Sb2Te3_opt_vol___3.0 \
- Sb2Te3_opt_vol___6.0 \
- Sb2Te3_opt_vol___9.0 \
- Sb2Te3_opt_vol__12.0 \
- Sb2Te3_opt_vol__15.0 \
- Sb2Te3_opt_vol__18.0 \
- )
- rm -f Sb2Te3_opt.struct # NFS-bug
- cp $i.struct Sb2Te3_opt.struct
- # Please uncomment and adapt any of the lines below according to your needs
- # if you have a previous optimize-run:
- cp $i.nk8.clmsum Sb2Te3_opt.clmsum
- # cp $i.clmup Sb2Te3_opt.clmup
- # cp $i.clmdn Sb2Te3_opt.clmdn
- # if you want to start with dstart:
- # x dstart # -c
- # x dstart -up # -c
- # x dstart -dn # -c
- # recommended option: use charge extrapolation
- run_lapw -cc 0.00001 -p # -in1new 3 -in1orig
- # runsp_lapw -ec 0.0001
- # min -I -j "run_lapw -I -fc 1.0 -i 40 "
- set stat = $status
- if ($stat) then
- echo "ERROR status in" $i
- exit 1
- endif
- save_lapw ${i}.nk10
- # save_lapw -f -d XXX $i
- end
- ############################################################
- cp Sb2Te3_opt.outputkgen.nk12 Sb2Te3_opt.outputkgen
- cp Sb2Te3_opt.kgen.nk12 Sb2Te3_opt.kgen
- cp Sb2Te3_opt.klist.nk12 Sb2Te3_opt.klist
- foreach i ( \
- Sb2Te3_opt_vol_-12.0 \
- Sb2Te3_opt_vol__-9.0 \
- Sb2Te3_opt_vol__-6.0 \
- Sb2Te3_opt_vol__-3.0 \
- Sb2Te3_opt_vol___0.0 \
- Sb2Te3_opt_vol___3.0 \
- Sb2Te3_opt_vol___6.0 \
- Sb2Te3_opt_vol___9.0 \
- Sb2Te3_opt_vol__12.0 \
- Sb2Te3_opt_vol__15.0 \
- Sb2Te3_opt_vol__18.0 \
- )
- rm -f Sb2Te3_opt.struct # NFS-bug
- cp $i.struct Sb2Te3_opt.struct
- # Please uncomment and adapt any of the lines below according to your needs
- # if you have a previous optimize-run:
- cp $i.nk10.clmsum Sb2Te3_opt.clmsum
- # cp $i.clmup Sb2Te3_opt.clmup
- # cp $i.clmdn Sb2Te3_opt.clmdn
- # if you want to start with dstart:
- # x dstart # -c
- # x dstart -up # -c
- # x dstart -dn # -c
- # recommended option: use charge extrapolation
- run_lapw -cc 0.00001 -p # -in1new 3 -in1orig
- # runsp_lapw -ec 0.0001
- # min -I -j "run_lapw -I -fc 1.0 -i 40 "
- set stat = $status
- if ($stat) then
- echo "ERROR status in" $i
- exit 1
- endif
- save_lapw ${i}.nk12
- # save_lapw -f -d XXX $i
- end
- ############################################################
- cp Sb2Te3_opt.outputkgen.nk14 Sb2Te3_opt.outputkgen
- cp Sb2Te3_opt.kgen.nk14 Sb2Te3_opt.kgen
- cp Sb2Te3_opt.klist.nk14 Sb2Te3_opt.klist
- foreach i ( \
- Sb2Te3_opt_vol_-12.0 \
- Sb2Te3_opt_vol__-9.0 \
- Sb2Te3_opt_vol__-6.0 \
- Sb2Te3_opt_vol__-3.0 \
- Sb2Te3_opt_vol___0.0 \
- Sb2Te3_opt_vol___3.0 \
- Sb2Te3_opt_vol___6.0 \
- Sb2Te3_opt_vol___9.0 \
- Sb2Te3_opt_vol__12.0 \
- Sb2Te3_opt_vol__15.0 \
- Sb2Te3_opt_vol__18.0 \
- )
- rm -f Sb2Te3_opt.struct # NFS-bug
- cp $i.struct Sb2Te3_opt.struct
- # Please uncomment and adapt any of the lines below according to your needs
- # if you have a previous optimize-run:
- cp $i.nk12.clmsum Sb2Te3_opt.clmsum
- # cp $i.clmup Sb2Te3_opt.clmup
- # cp $i.clmdn Sb2Te3_opt.clmdn
- # if you want to start with dstart:
- # x dstart # -c
- # x dstart -up # -c
- # x dstart -dn # -c
- # recommended option: use charge extrapolation
- run_lapw -cc 0.00001 -p # -in1new 3 -in1orig
- # runsp_lapw -ec 0.0001
- # min -I -j "run_lapw -I -fc 1.0 -i 40 "
- set stat = $status
- if ($stat) then
- echo "ERROR status in" $i
- exit 1
- endif
- save_lapw ${i}.nk14
- # save_lapw -f -d XXX $i
- end
- ############################################################
- cp Sb2Te3_opt.outputkgen.nk16 Sb2Te3_opt.outputkgen
- cp Sb2Te3_opt.kgen.nk16 Sb2Te3_opt.kgen
- cp Sb2Te3_opt.klist.nk16 Sb2Te3_opt.klist
- foreach i ( \
- Sb2Te3_opt_vol_-12.0 \
- Sb2Te3_opt_vol__-9.0 \
- Sb2Te3_opt_vol__-6.0 \
- Sb2Te3_opt_vol__-3.0 \
- Sb2Te3_opt_vol___0.0 \
- Sb2Te3_opt_vol___3.0 \
- Sb2Te3_opt_vol___6.0 \
- Sb2Te3_opt_vol___9.0 \
- Sb2Te3_opt_vol__12.0 \
- Sb2Te3_opt_vol__15.0 \
- Sb2Te3_opt_vol__18.0 \
- )
- rm -f Sb2Te3_opt.struct # NFS-bug
- cp $i.struct Sb2Te3_opt.struct
- # Please uncomment and adapt any of the lines below according to your needs
- # if you have a previous optimize-run:
- cp $i.nk14.clmsum Sb2Te3_opt.clmsum
- # cp $i.clmup Sb2Te3_opt.clmup
- # cp $i.clmdn Sb2Te3_opt.clmdn
- # if you want to start with dstart:
- # x dstart # -c
- # x dstart -up # -c
- # x dstart -dn # -c
- # recommended option: use charge extrapolation
- run_lapw -cc 0.00001 -p # -in1new 3 -in1orig
- # runsp_lapw -ec 0.0001
- # min -I -j "run_lapw -I -fc 1.0 -i 40 "
- set stat = $status
- if ($stat) then
- echo "ERROR status in" $i
- exit 1
- endif
- save_lapw ${i}.nk16
- # save_lapw -f -d XXX $i
- end
Advertisement
Add Comment
Please, Sign In to add comment