File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ void Pseudopot_upf::complete_default_h(Atom_pseudo& pp)
58
58
59
59
if (pp.jjj .empty ()) {
60
60
pp.jjj = std::vector<double >(pp.nbeta , 0.0 );
61
- assert (!pp.has_so );
61
+ assert (!pp.has_so or pp. nbeta == 0 );
62
62
for (int i=0 ; i<pp.nbeta ; i++)
63
63
{
64
64
pp.jjj [i] = 0 ;
@@ -67,7 +67,7 @@ void Pseudopot_upf::complete_default_h(Atom_pseudo& pp)
67
67
68
68
if (pp.nn .empty ()) {
69
69
pp.nn = std::vector<int >(pp.nchi , 0 );
70
- assert (!pp.has_so );
70
+ assert (!pp.has_so or pp. nchi == 0 );
71
71
for (int i=0 ; i<pp.nchi ; i++)
72
72
{
73
73
pp.nn [i] = 0 ;
@@ -76,7 +76,7 @@ void Pseudopot_upf::complete_default_h(Atom_pseudo& pp)
76
76
77
77
if (pp.jchi .empty ()) {
78
78
pp.jchi = std::vector<double >(pp.nchi , 0.0 );
79
- assert (!pp.has_so );
79
+ assert (!pp.has_so or pp. nchi == 0 );
80
80
for (int i=0 ; i<pp.nchi ; i++)
81
81
{
82
82
pp.jchi [i] = 0 ;
@@ -120,7 +120,7 @@ void Pseudopot_upf::complete_default_atom(Atom_pseudo& pp)
120
120
121
121
if (pp.rho_atc .empty ()) {
122
122
pp.rho_atc = std::vector<double >(pp.mesh , 0.0 );
123
- assert (!pp.nlcc );
123
+ assert (!pp.nlcc or pp. mesh == 0 );
124
124
}
125
125
126
126
bool br = false ;
You can’t perform that action at this time.
0 commit comments