Commit 70c391f
committed
Stop duplicating scf_convergence / dlpno_threshold keywords
The old 'read user value OR default, then add_to_args' pattern always
appended to args['keyword']['general'], even when the user already had
the value under its named key. For a user who set dlpno_threshold:
TightPNO, 'tightpno' was emitted twice — once from their key and once
from 'general' — and ORCA rejected the input with UNRECOGNIZED OR
DUPLICATED KEYWORD.
Use setdefault() instead, so the default only lands when the user
didn't supply the key. The value rides through update_input_dict_with_
args on its canonical key, not under 'general', so each keyword is
emitted exactly once.1 parent 3701888 commit 70c391f
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | | - | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | | - | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
0 commit comments