Commit 12515e5
Fix: some easy-to-fix problems in [Code scan] issues (#7582)
* fix(tools): correct syntax error in RT-TDDFT projection tool
Line 9 contained the invalid expression `fdir suffix + s_dir`, which
made projection.py unparseable. Use `fdir + s_dir` to match the working
example copy.
Closes #7541
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(tools): repair empty else branch in generate_orbital_mixstru.sh
`bash -n` failed on the empty `else` branch before `fi`. Add a `:`
no-op so the example script is syntactically valid.
Closes #7542
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(nao): reject one-past angular momentum index in TwoCenterTable
index_map_ is allocated with final dimension length bra.lmax()+ket.lmax()+1,
so valid indices are 0..dim_size(6)-1. The bounds check used `l <=
dim_size(6)`, allowing a one-past read. Use `l < dim_size(6)` to match the
neighboring dimension checks.
Closes #7552
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(container): copy innermost dimension when slicing 3D tensors
Each 3D row is placed at offset_out advancing by size[2], so the
contiguous copy length must also be size[2]. The copy used size[1],
corrupting non-cubic slices where size[1] != size[2].
Closes #7551
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(esolver): delete OFDFT KEDF_Manager with scalar delete
kedf_manager_ is allocated with scalar `new KEDF_Manager()`, but the
reinitialization path in before_all_runners() freed it with `delete[]`,
which is undefined behavior. Use scalar `delete` to match the allocation.
Closes #7548
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(ci): use consistent SuperLU_DIST32_ROOT variable in path exports
LD_LIBRARY_PATH, PKG_CONFIG_PATH and CPATH referenced the misspelled
SUPERLU32_DIST_ROOT while CMAKE_PREFIX_PATH used SUPERLU_DIST32_ROOT (the
name defined in Dockerfile.intel). Align the path exports to
SUPERLU_DIST32_ROOT so SuperLU_DIST is not silently omitted.
Closes #7572
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(io): read LATTICE_PARAMETER blocks consistently in STRU parsers
The Multiwfn and pyabacus STRU parsers checked for a LATTICE_PARAMETER
block but then read blocks['LATTICE_PARAMETERS'] with an extra S, and
treated the list of lines as a string. Read
blocks['LATTICE_PARAMETER'][0].split() to match the neighboring
LATTICE_CONSTANT idiom, so STRU files using LATTICE_PARAMETER parse
instead of raising KeyError.
The identical fix for the ASE AbacusLite parser is intentionally left out
of this PR and will be handled separately.
Refs #7555
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0b7a266 commit 12515e5
9 files changed
Lines changed: 14 additions & 14 deletions
File tree
- .github/workflows
- interfaces/Multiwfn_interface
- python/pyabacus/src/pyabacus/io
- source
- source_base/module_container/ATen/core
- source_basis/module_nao
- source_esolver
- tools
- 01_NAO_generation/examples/example_opt_lcao_bash
- 02_postprocessing/rt-tddft-tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
| 844 | + | |
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
655 | | - | |
| 654 | + | |
| 655 | + | |
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments