Commit 533ca12
Feature: use new format of CSR file for out_mat_hs2 and out_mat_ds, out_mat_t, out_mat_r, out_mat_xc2 (Useful Information for output format update of H(R), S(R) and other matrices that based on NAO basis set) (#6991)
* Feature: use new format of CSR file for out_mat_hs2
* feature: modify out_mat_ds, out_mat_t, out_mat_r, out_mat_xc2 for new CSR format
* fix: UT of input
* Fix: input parameter yaml has been updated
* Refactor: add Per-spin HContainer wrappers for nspin=2
* fix: enable HR comparison in tests and update CSR reference files
Enable the previously commented-out H(R) matrix comparison in
catch_properties.sh and regenerate all CSR reference files for
scf_out_hsr, scf_out_hsr_spin4, and nscf_out_hsr_tr_rr to match
the new CSR output format. Add missing hrs1_nao.csr.ref for nscf test.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: use C++11 compatible unique_ptr::reset instead of std::make_unique
The CI build uses C++11 where std::make_unique is not available.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: update md_out_syns reference files for CSR format changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* update the reference of md_out_syns with gnu compiler
* try to decrease the size of output files
* fix: replace C++17 structured bindings with C++11-compatible code in write_HS_R.cpp
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* change init_chg from file to hr in test case
* add unit tests for Output_HContainer consistency and init_chg=hr error handling
- Add write-read round-trip consistency test for Output_HContainer/Read_HContainer
- Add sparse threshold filtering, precision parameter, and nspin=2 tests
- Add clear error message when HR files missing for init_chg=hr
- Update CMakeLists.txt with new test targets
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: write empty R-blocks in CSR output to keep nR consistent
When all matrix elements of an R-vector are below sparse_threshold,
Output_HContainer skipped writing that R-block entirely, but the
file header still declared the full nR count from size_R_loop().
This caused csrFileReader to hit EOF when reading HR files with
sparse R-blocks (e.g. init_chg=hr), while DM files were unaffected
because all R-vectors had nonzero elements.
Also made csr_reader more robust by skipping comment/empty lines
instead of hardcoding 9 readLine() calls for the CSR format block.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Test: set two Si test cases to H2O cases
* Fix: multi-process error of read_hcontainer
* Fix: md_out_syns test case
* Test: change CI test files
* Test: add threshold for case md_out_syns
* Fix: memory leak of libxc and cal_sync precision
* Fix: allow gamma_only with cal_sync
* Fix: error of test case
---------
Co-authored-by: dyzheng <zhengdy@bjaisi.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Mohan Chen <mohanchen@pku.edu.cn>1 parent 6d1d4fa commit 533ca12
62 files changed
Lines changed: 3438 additions & 6863 deletions
File tree
- docs
- advanced
- elec_properties
- input_files
- interface
- source
- source_esolver
- source_hamilt/module_xc
- source_io
- module_ctrl
- module_hs
- module_output
- module_parameter
- test_serial
- test
- source_lcao
- module_hcontainer
- test
- tests
- 03_NAO_multik
- md_out_syns
- nscf_out_hsr_tr_rr
- scf_out_hsr_spin4
- scf_out_hsr
- integrate/tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
37 | 60 | | |
38 | 61 | | |
39 | | - | |
| 62 | + | |
40 | 63 | | |
41 | | - | |
| 64 | + | |
| 65 | + | |
42 | 66 | | |
43 | | - | |
| 67 | + | |
44 | 68 | | |
45 | | - | |
46 | | - | |
| 69 | + | |
47 | 70 | | |
48 | 71 | | |
49 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| 997 | + | |
997 | 998 | | |
998 | | - | |
| 999 | + | |
999 | 1000 | | |
1000 | 1001 | | |
1001 | 1002 | | |
| |||
1934 | 1935 | | |
1935 | 1936 | | |
1936 | 1937 | | |
1937 | | - | |
| 1938 | + | |
1938 | 1939 | | |
1939 | 1940 | | |
1940 | 1941 | | |
1941 | 1942 | | |
1942 | | - | |
| 1943 | + | |
1943 | 1944 | | |
1944 | 1945 | | |
1945 | 1946 | | |
| |||
1954 | 1955 | | |
1955 | 1956 | | |
1956 | 1957 | | |
1957 | | - | |
| 1958 | + | |
1958 | 1959 | | |
1959 | | - | |
| 1960 | + | |
1960 | 1961 | | |
1961 | 1962 | | |
1962 | | - | |
| 1963 | + | |
1963 | 1964 | | |
1964 | 1965 | | |
1965 | 1966 | | |
1966 | 1967 | | |
1967 | | - | |
| 1968 | + | |
1968 | 1969 | | |
1969 | 1970 | | |
1970 | 1971 | | |
1971 | 1972 | | |
1972 | | - | |
| 1973 | + | |
1973 | 1974 | | |
1974 | 1975 | | |
1975 | 1976 | | |
1976 | 1977 | | |
1977 | | - | |
| 1978 | + | |
1978 | 1979 | | |
1979 | 1980 | | |
1980 | 1981 | | |
1981 | 1982 | | |
1982 | | - | |
| 1983 | + | |
1983 | 1984 | | |
1984 | 1985 | | |
1985 | 1986 | | |
1986 | 1987 | | |
1987 | | - | |
| 1988 | + | |
1988 | 1989 | | |
1989 | | - | |
| 1990 | + | |
1990 | 1991 | | |
1991 | 1992 | | |
1992 | | - | |
| 1993 | + | |
1993 | 1994 | | |
1994 | 1995 | | |
1995 | 1996 | | |
| |||
2004 | 2005 | | |
2005 | 2006 | | |
2006 | 2007 | | |
2007 | | - | |
| 2008 | + | |
2008 | 2009 | | |
2009 | | - | |
| 2010 | + | |
2010 | 2011 | | |
2011 | 2012 | | |
2012 | | - | |
| 2013 | + | |
2013 | 2014 | | |
2014 | 2015 | | |
2015 | 2016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
0 commit comments