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.sh 817B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #! /bin/zsh
  2. # Runs `build_LiebLin_c_scan_k_fixed` for nk = 1 up to nkmax.
  3. if [[ $# -ne 5 ]]; then
  4. echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
  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. whichDSF=$1
  28. kBT=$2
  29. target_sumrule=$3
  30. N=$4
  31. nkmax=$5
  32. for nk in {1..$nkmax}
  33. do
  34. build_LiebLin_c_scan_k_fixed.sh $whichDSF $kBT $target_sumrule $N $nk
  35. done