Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

bug report in subroutine MLWF_WANNIER90_AMN in sources/CSC-mods/vasp/mlwf.F #5

Description

@yuechm

Dear developer,

I find there is a bug in the subroutine MLWF_WANNIER90_AMN in sources/CSC-mods/vasp/mlwf.F .
You forgot to allocate M_matrix which will cause a segment fault error.

You can just fix the bug by adding after the line #541 in sources/CSC-mods/vasp/mlwf.F
ALLOCATE(M_matrix(num_bands,num_bands,nntot,num_kpts,WDES%ISPIN))
and by adding after the line #918.
DEALLOCATE(M_matrix)

Best,

Changming Yue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions