Skip to content

Commit 4f9256a

Browse files
committed
A few more cosmetics.
1 parent 20f22e2 commit 4f9256a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

faclib/structure.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,7 @@ int AddToLevels(cfac_t *cfac, HAMILTON *h, int ng, const int *kg) {
17681768
}
17691769

17701770
lev.uta = 0;
1771+
lev.ibase = -1;
17711772

17721773
lev.energy = h->mixing[i];
17731774
lev.pj = h->pj;
@@ -2277,15 +2278,15 @@ int FinalizeLevels(cfac_t *cfac, int start, int n) {
22772278
if (s->kgroup > 0) {
22782279
cfg = GetConfig(cfac, s);
22792280
nk = cfg->n_electrons-1;
2280-
if (cfac_get_ion_nlevels(cfac, nk) == 0 || cfg->shells[0].nq > 1) {
2281-
lev->ibase = -1;
2282-
} else {
2281+
2282+
lev->ibase = -1;
2283+
2284+
if (cfac_get_ion_nlevels(cfac, nk) != 0 && cfg->shells[0].nq <= 1) {
22832285
STATE *s1;
22842286
CONFIG *cfg1;
22852287
double a = 0.0;
22862288
double md = 1E30;
22872289
csf = cfg->csfs + s->kstate;
2288-
lev->ibase = -1;
22892290
dn = cfg->shells[0].n - cfg->shells[1].n;
22902291
if (dn < MAXDN) {
22912292
a = 0.0;

0 commit comments

Comments
 (0)