guitar-player

optimize_E_K.job

Apr 17th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.70 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. ############################################################
  13. cp Sb2Te3_opt.outputkgen.nk8 Sb2Te3_opt.outputkgen
  14. cp Sb2Te3_opt.kgen.nk8 Sb2Te3_opt.kgen
  15. cp Sb2Te3_opt.klist.nk8 Sb2Te3_opt.klist
  16.  
  17. foreach i ( \
  18.                                     Sb2Te3_opt_vol_-12.0  \
  19.                                     Sb2Te3_opt_vol__-9.0  \
  20.                                     Sb2Te3_opt_vol__-6.0  \
  21.                                     Sb2Te3_opt_vol__-3.0  \
  22.                                     Sb2Te3_opt_vol___0.0  \
  23.                                     Sb2Te3_opt_vol___3.0  \
  24.                                     Sb2Te3_opt_vol___6.0  \
  25.                                     Sb2Te3_opt_vol___9.0  \
  26.                                     Sb2Te3_opt_vol__12.0  \
  27.                                     Sb2Te3_opt_vol__15.0  \
  28.                                     Sb2Te3_opt_vol__18.0  \
  29.  )
  30.  
  31.  rm -f Sb2Te3_opt.struct              # NFS-bug
  32.  cp  $i.struct Sb2Te3_opt.struct
  33.  
  34.  # Please uncomment and adapt any of the lines below according to your needs
  35.  # if you have a previous optimize-run:
  36.  #    cp  $i.clmsum Sb2Te3_opt.clmsum
  37.  #    cp  $i.clmup Sb2Te3_opt.clmup
  38.  #    cp  $i.clmdn Sb2Te3_opt.clmdn
  39.  # if you want to start with dstart:
  40.  #    x dstart   # -c  
  41.  #    x dstart -up  # -c  
  42.  #    x dstart -dn  # -c  
  43.  # recommended option: use charge extrapolation
  44.  
  45.  
  46.  run_lapw -cc 0.00001 -p   # -in1new 3 -in1orig
  47.  #    runsp_lapw -ec 0.0001
  48.  #    min -I -j "run_lapw -I -fc 1.0 -i 40 "
  49.    
  50.      set stat = $status
  51.      if ($stat) then
  52.         echo "ERROR status in" $i
  53.         exit 1
  54.      endif
  55.  save_lapw  ${i}.nk8
  56.  #    save_lapw  -f -d XXX $i
  57.  end
  58.  
  59. ############################################################
  60. cp Sb2Te3_opt.outputkgen.nk10 Sb2Te3_opt.outputkgen
  61. cp Sb2Te3_opt.kgen.nk10 Sb2Te3_opt.kgen
  62. cp Sb2Te3_opt.klist.nk10 Sb2Te3_opt.klist
  63.  
  64. foreach i ( \
  65.                                     Sb2Te3_opt_vol_-12.0  \
  66.                                     Sb2Te3_opt_vol__-9.0  \
  67.                                     Sb2Te3_opt_vol__-6.0  \
  68.                                     Sb2Te3_opt_vol__-3.0  \
  69.                                     Sb2Te3_opt_vol___0.0  \
  70.                                     Sb2Te3_opt_vol___3.0  \
  71.                                     Sb2Te3_opt_vol___6.0  \
  72.                                     Sb2Te3_opt_vol___9.0  \
  73.                                     Sb2Te3_opt_vol__12.0  \
  74.                                     Sb2Te3_opt_vol__15.0  \
  75.                                     Sb2Te3_opt_vol__18.0  \
  76.  )
  77.  
  78.  rm -f Sb2Te3_opt.struct              # NFS-bug
  79.  cp  $i.struct Sb2Te3_opt.struct
  80.  
  81.  # Please uncomment and adapt any of the lines below according to your needs
  82.  # if you have a previous optimize-run:
  83.      cp  $i.nk8.clmsum Sb2Te3_opt.clmsum
  84.  #    cp  $i.clmup Sb2Te3_opt.clmup
  85.  #    cp  $i.clmdn Sb2Te3_opt.clmdn
  86.  # if you want to start with dstart:
  87.  #    x dstart   # -c  
  88.  #    x dstart -up  # -c  
  89.  #    x dstart -dn  # -c  
  90.  # recommended option: use charge extrapolation
  91.  
  92.  
  93.  run_lapw -cc 0.00001 -p   # -in1new 3 -in1orig
  94.  #    runsp_lapw -ec 0.0001
  95.  #    min -I -j "run_lapw -I -fc 1.0 -i 40 "
  96.    
  97.      set stat = $status
  98.      if ($stat) then
  99.         echo "ERROR status in" $i
  100.         exit 1
  101.      endif
  102.  save_lapw  ${i}.nk10
  103.  #    save_lapw  -f -d XXX $i
  104.  end
  105.  
  106. ############################################################
  107.  
  108. cp Sb2Te3_opt.outputkgen.nk12 Sb2Te3_opt.outputkgen
  109. cp Sb2Te3_opt.kgen.nk12 Sb2Te3_opt.kgen
  110. cp Sb2Te3_opt.klist.nk12 Sb2Te3_opt.klist
  111.  
  112. foreach i ( \
  113.                                     Sb2Te3_opt_vol_-12.0  \
  114.                                     Sb2Te3_opt_vol__-9.0  \
  115.                                     Sb2Te3_opt_vol__-6.0  \
  116.                                     Sb2Te3_opt_vol__-3.0  \
  117.                                     Sb2Te3_opt_vol___0.0  \
  118.                                     Sb2Te3_opt_vol___3.0  \
  119.                                     Sb2Te3_opt_vol___6.0  \
  120.                                     Sb2Te3_opt_vol___9.0  \
  121.                                     Sb2Te3_opt_vol__12.0  \
  122.                                     Sb2Te3_opt_vol__15.0  \
  123.                                     Sb2Te3_opt_vol__18.0  \
  124.  )
  125.  
  126.  rm -f Sb2Te3_opt.struct              # NFS-bug
  127.  cp  $i.struct Sb2Te3_opt.struct
  128.  
  129.  # Please uncomment and adapt any of the lines below according to your needs
  130.  # if you have a previous optimize-run:
  131.      cp  $i.nk10.clmsum Sb2Te3_opt.clmsum
  132.  #    cp  $i.clmup Sb2Te3_opt.clmup
  133.  #    cp  $i.clmdn Sb2Te3_opt.clmdn
  134.  # if you want to start with dstart:
  135.  #    x dstart   # -c  
  136.  #    x dstart -up  # -c  
  137.  #    x dstart -dn  # -c  
  138.  # recommended option: use charge extrapolation
  139.  
  140.  
  141.  run_lapw -cc 0.00001 -p   # -in1new 3 -in1orig
  142.  #    runsp_lapw -ec 0.0001
  143.  #    min -I -j "run_lapw -I -fc 1.0 -i 40 "
  144.    
  145.      set stat = $status
  146.      if ($stat) then
  147.         echo "ERROR status in" $i
  148.         exit 1
  149.      endif
  150.  save_lapw  ${i}.nk12
  151.  #    save_lapw  -f -d XXX $i
  152.  end
  153.  
  154. ############################################################
  155.  
  156. cp Sb2Te3_opt.outputkgen.nk14 Sb2Te3_opt.outputkgen
  157. cp Sb2Te3_opt.kgen.nk14 Sb2Te3_opt.kgen
  158. cp Sb2Te3_opt.klist.nk14 Sb2Te3_opt.klist
  159.  
  160. foreach i ( \
  161.                                     Sb2Te3_opt_vol_-12.0  \
  162.                                     Sb2Te3_opt_vol__-9.0  \
  163.                                     Sb2Te3_opt_vol__-6.0  \
  164.                                     Sb2Te3_opt_vol__-3.0  \
  165.                                     Sb2Te3_opt_vol___0.0  \
  166.                                     Sb2Te3_opt_vol___3.0  \
  167.                                     Sb2Te3_opt_vol___6.0  \
  168.                                     Sb2Te3_opt_vol___9.0  \
  169.                                     Sb2Te3_opt_vol__12.0  \
  170.                                     Sb2Te3_opt_vol__15.0  \
  171.                                     Sb2Te3_opt_vol__18.0  \
  172.  )
  173.  
  174.  rm -f Sb2Te3_opt.struct              # NFS-bug
  175.  cp  $i.struct Sb2Te3_opt.struct
  176.  
  177.  # Please uncomment and adapt any of the lines below according to your needs
  178.  # if you have a previous optimize-run:
  179.      cp  $i.nk12.clmsum Sb2Te3_opt.clmsum
  180.  #    cp  $i.clmup Sb2Te3_opt.clmup
  181.  #    cp  $i.clmdn Sb2Te3_opt.clmdn
  182.  # if you want to start with dstart:
  183.  #    x dstart   # -c  
  184.  #    x dstart -up  # -c  
  185.  #    x dstart -dn  # -c  
  186.  # recommended option: use charge extrapolation
  187.  
  188.  
  189.  run_lapw -cc 0.00001 -p   # -in1new 3 -in1orig
  190.  #    runsp_lapw -ec 0.0001
  191.  #    min -I -j "run_lapw -I -fc 1.0 -i 40 "
  192.    
  193.      set stat = $status
  194.      if ($stat) then
  195.         echo "ERROR status in" $i
  196.         exit 1
  197.      endif
  198.  save_lapw  ${i}.nk14
  199.  #    save_lapw  -f -d XXX $i
  200.  end
  201.  
  202. ############################################################
  203.  
  204. cp Sb2Te3_opt.outputkgen.nk16 Sb2Te3_opt.outputkgen
  205. cp Sb2Te3_opt.kgen.nk16 Sb2Te3_opt.kgen
  206. cp Sb2Te3_opt.klist.nk16 Sb2Te3_opt.klist
  207.  
  208. foreach i ( \
  209.                                     Sb2Te3_opt_vol_-12.0  \
  210.                                     Sb2Te3_opt_vol__-9.0  \
  211.                                     Sb2Te3_opt_vol__-6.0  \
  212.                                     Sb2Te3_opt_vol__-3.0  \
  213.                                     Sb2Te3_opt_vol___0.0  \
  214.                                     Sb2Te3_opt_vol___3.0  \
  215.                                     Sb2Te3_opt_vol___6.0  \
  216.                                     Sb2Te3_opt_vol___9.0  \
  217.                                     Sb2Te3_opt_vol__12.0  \
  218.                                     Sb2Te3_opt_vol__15.0  \
  219.                                     Sb2Te3_opt_vol__18.0  \
  220.  )
  221.  
  222.  rm -f Sb2Te3_opt.struct              # NFS-bug
  223.  cp  $i.struct Sb2Te3_opt.struct
  224.  
  225.  # Please uncomment and adapt any of the lines below according to your needs
  226.  # if you have a previous optimize-run:
  227.      cp  $i.nk14.clmsum Sb2Te3_opt.clmsum
  228.  #    cp  $i.clmup Sb2Te3_opt.clmup
  229.  #    cp  $i.clmdn Sb2Te3_opt.clmdn
  230.  # if you want to start with dstart:
  231.  #    x dstart   # -c  
  232.  #    x dstart -up  # -c  
  233.  #    x dstart -dn  # -c  
  234.  # recommended option: use charge extrapolation
  235.  
  236.  
  237.  run_lapw -cc 0.00001 -p   # -in1new 3 -in1orig
  238.  #    runsp_lapw -ec 0.0001
  239.  #    min -I -j "run_lapw -I -fc 1.0 -i 40 "
  240.    
  241.      set stat = $status
  242.      if ($stat) then
  243.         echo "ERROR status in" $i
  244.         exit 1
  245.      endif
  246.  save_lapw  ${i}.nk16
  247.  #    save_lapw  -f -d XXX $i
  248.  end
Advertisement
Add Comment
Please, Sign In to add comment