You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build_LiebLin_c_scan_k_fixed_set_plots.sh 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #! /bin/zsh
  2. # Runs `build_LiebLin_c_scan_k_fixed_dsfs` and `_plots` for nk = 1 up to nkmax.
  3. if [[ $# -ne 6 ]]; then
  4. echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4), width."
  5. exit 1
  6. fi
  7. if [[ $1 != 'd' && $1 != 'g' && $1 != 'o' ]]; then
  8. echo "Only the d, g and o scanning options are implemented."
  9. exit 1
  10. fi
  11. if [[ $2 -lt 0 ]]; then
  12. echo "Temperature kBT must be > 0."
  13. exit 1
  14. fi
  15. if [[ $3 -lt 0 || $3 -gt 1 ]]; then
  16. echo "Requirement: 0 < target_sumrule < 1."
  17. exit 1
  18. fi
  19. if [[ $4 -lt 0 ]]; then
  20. echo "N must be > 0."
  21. exit 1
  22. fi
  23. if [[ $5 -lt 0 ]]; then
  24. echo "nkmax must be > 0."
  25. exit 1
  26. fi
  27. if [[ $6 -lt 0 ]]; then
  28. echo "width must be > 0."
  29. exit 1
  30. fi
  31. whichDSF=$1
  32. kBT=$2
  33. target_sumrule=$3
  34. N=$4
  35. nkmax=$5
  36. width=$6
  37. for nk in {1..$nkmax}
  38. do
  39. # produce dsfs files
  40. build_LiebLin_c_scan_k_fixed_dsfs.sh $whichDSF $kBT $target_sumrule $N $nk $width
  41. # produce plots
  42. build_LiebLin_c_scan_k_fixed_dsfs_plot.sh $whichDSF $kBT $target_sumrule $N $width
  43. done