Skip to content

Commit 92c2922

Browse files
authored
Fix: Initialize has_so to false when reading blps pseudopotential (#1572)
1 parent c614a9a commit 92c2922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/module_cell/read_pp_blps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ int Pseudopot_upf::read_pseudo_blps(std::ifstream &ifs)
55
// double bohr2a = 0.529177249;
66
this->nlcc = false;
77
this->tvanp = false;
8+
this->has_so = false;
89

910
this->nbeta = 0;
1011
delete[] kkbeta;
@@ -129,4 +130,4 @@ int Pseudopot_upf::read_pseudo_blps(std::ifstream &ifs)
129130
//nn -
130131
//jchi -
131132
//jjj -
132-
//nd -
133+
//nd -

0 commit comments

Comments
 (0)