Skip to content

Commit

Permalink
update aims
Browse files Browse the repository at this point in the history
  • Loading branch information
minyez committed Mar 20, 2024
1 parent 07403ad commit 49380de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mushroom/aims/gw.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ def set_sigc(n, s, kp, k, sigc):
data_bands.append(data_band)

if merge_band_kpoints:
data_bands = np.concatenate(data_bands, axis=2)
if len(data_bands) > 0:
data_bands = np.concatenate(data_bands, axis=2)
else:
data_bands = np.zeros((nomegas, nspins, 0, nstates))

return omegas, state_low, data_kgrid, data_bands

Expand Down
3 changes: 2 additions & 1 deletion scripts/m_aims_append_basis
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ def m_aims_apppend_basis(control_file, directory, *elem, species_defaults=None):
if len(regions) > 1:
print("Replacing existing basis information in control file {}".format(control_file))
sl = readlines_species_defaults(directory, *elem, species_defaults=species_defaults)
ctrl_new = "".join(gl) + sl
with open(control_file, 'w') as h:
print("".join(gl + sl), file=h)
print(ctrl_new, file=h)


if __name__ == '__main__':
Expand Down

0 comments on commit 49380de

Please sign in to comment.