We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a0e9d2 commit f25a777Copy full SHA for f25a777
dpgen/generator/lib/cp2k.py
@@ -298,8 +298,9 @@ def make_cp2k_input(sys_data, fp_params):
298
atom_types = sys_data["atom_types"]
299
# Get system charge if provided, default to 0
300
charge = sys_data.get("charge", 0)
301
- if "MULTIPLICITY" in fp_params.get("FORCE_EVAL", {}).get("DFT", {}):
302
- multiplicity = fp_params["FORCE_EVAL"]["DFT"]["MULTIPLICITY"]
+ dft_params = fp_params.get("FORCE_EVAL", {}).get("DFT", {})
+ if "MULTIPLICITY" in dft_params:
303
+ multiplicity = dft_params["MULTIPLICITY"]
304
else:
305
multiplicity = calculate_multiplicity(atom_names, atom_types, charge)
306
0 commit comments