Skip to content

Commit

Permalink
add one line stdout to show the process of nbands autoset for monomer
Browse files Browse the repository at this point in the history
  • Loading branch information
kirk0830 committed Oct 7, 2024
1 parent 1c2c83d commit 94ffb6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SIAB/io/read_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ def abacus_settings(user_settings: dict, minimal_basis: list = None, z_val: floa
nbands_lmax = cal_nbands_fill_lmax(z_val, z_core, lmax_monomer) # fill the lmax shell
nbands_shapemax = max([i["nbands"]/natom_from_shape(j["shape"]) + 20
for i, j in zip(result, refsys)])
if user_settings.get("fit_basis", "pw") == "jy":
print(f"""AUTOSET: jy case,`nbands` for monomer is overwritten to {nbands_shapemax},
IGNORE number of bands that can fill lmax-layer being estimated to be {nbands_lmax}""",
flush=True)
nbands = nbands_lmax if user_settings.get("fit_basis", "pw") == "pw" else nbands_shapemax
result[shape_index_mapping.index("monomer")].update({"lmaxmax": lmax_monomer,
"nbands": nbands})
Expand Down

0 comments on commit 94ffb6c

Please sign in to comment.