Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/segfault hamiltonian get hr #469

Commits on Feb 16, 2024

  1. Allocating the arrays eigval_opt, eigval2 and utmp in the RAM.

    i.e., after the variable declaration. This is needed to avoid
    allocation on stack if the intel compiler is used, causing segmentation
    fault for large systems. see issue wannier-developers#439.
    mikibonacci authored and JeromeCCP9 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    628855d View commit details
    Browse the repository at this point in the history
  2. This commit optimize the allocation of eigval_opt, utmp and eigval2, …

    …used in
    
    the hamiltonian.F90 file. Basically the eigval_opt, utmp variable are
    allocated only if have_disentangle is true.
    mikibonacci authored and JeromeCCP9 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    f374c37 View commit details
    Browse the repository at this point in the history
  3. adding dimension hint as a comment for eigval_opt, eigval2 and utmp

    in hamiltonian.F90
    mikibonacci authored and JeromeCCP9 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    e04e284 View commit details
    Browse the repository at this point in the history
  4. making allocatable, in the routine sitesym_dis_extract_symmetry (site…

    …sym.F90), the following variables:
    
    umatnew, ZU, deltaU, carr. This is in direction of issue wannier-developers#439.
    mikibonacci authored and JeromeCCP9 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    8293cd5 View commit details
    Browse the repository at this point in the history
  5. pre-commit fix

    mikibonacci authored and JeromeCCP9 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    8daef34 View commit details
    Browse the repository at this point in the history
  6. adding the deallocation of variables

    - eigval2, eigval_opt, utmp in hamiltonian_get_hr
    - umatnew, ZU, deltaU, carr in sitesym_dis_extract_symmetry
    
    also, I moved the eigval2 allocation after the *if (ham_logical%have_ham_k) go to 100* line, because
    if we go to 100, we do not need the eigval2 variale
    mikibonacci authored and JeromeCCP9 committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    210b2cd View commit details
    Browse the repository at this point in the history