guitar-player

optimize.job

Apr 7th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.63 KB | None | 0 0
  1. #!/bin/csh -f
  2.  #   Modify this script according to your needs:
  3.  #      Uncomment one of the lines ... to adjust
  4.  #      starting electron density:  either use  
  5.  #         clmextrapol
  6.  #         or a clmsum file from a previous run (with smaller k-mesh,...)
  7.  #      convergence criteria,
  8.  #      spin-polarization (change run_lapw to runsp_lapw)
  9.  #      activate min_lapw
  10.  #      modify the   save_lapw    command
  11.  
  12. # if (-e Sb2Te3.clmsum &&  ! -z Sb2Te3.clmsum) then
  13. #   x dstart -super
  14. # endif
  15. # if (-e Sb2Te3.clmup &&  ! -z Sb2Te3.clmup) then
  16. #   x dstart -super -up
  17. #   x dstart -super -dn
  18. # endif
  19.  
  20. foreach i ( \
  21.                                         Sb2Te3_vol__15.0  \
  22.                                         Sb2Te3_vol__18.0  \
  23.  )
  24.  
  25.  rm -f Sb2Te3.struct              # NFS-bug
  26.  cp  $i.struct Sb2Te3.struct
  27.  
  28.  # Please uncomment and adapt any of the lines below according to your needs
  29.  # if you have a previous optimize-run:
  30.  #    cp  $i.clmsum Sb2Te3.clmsum
  31.  #    cp  $i.clmup Sb2Te3.clmup
  32.  #    cp  $i.clmdn Sb2Te3.clmdn
  33.  # if you want to start with dstart:
  34.  #    x dstart   # -c  
  35.  #    x dstart -up  # -c  
  36.  #    x dstart -dn  # -c  
  37.  # recommended option: use charge extrapolation
  38. # clmextrapol_lapw
  39. # if (-e Sb2Te3.clmup &&  ! -z Sb2Te3.clmup) then
  40. #     clmextrapol_lapw -up
  41. #     clmextrapol_lapw -dn
  42. # endif
  43.  
  44.  run_lapw -cc 0.00001 -p   # -in1new 3 -in1orig
  45.  #    runsp_lapw -ec 0.0001
  46.  #    min -I -j "run_lapw -I -fc 1.0 -i 40 "
  47.    
  48.      set stat = $status
  49.      if ($stat) then
  50.         echo "ERROR status in" $i
  51.         exit 1
  52.      endif
  53.  save_lapw  ${i}
  54.  #    save_lapw  -f -d XXX $i
  55.  end
Advertisement
Add Comment
Please, Sign In to add comment