Skip to content

Commit 4c74534

Browse files
Merge branch 'develop' into develop-ai-review
2 parents 8c12155 + ee6ec4c commit 4c74534

84 files changed

Lines changed: 1380 additions & 371 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -691,11 +691,7 @@ if(ENABLE_MLALGO OR DEFINED Torch_DIR)
691691
set_if_higher(CMAKE_CXX_STANDARD 14)
692692
endif()
693693
include_directories(${TORCH_INCLUDE_DIRS})
694-
if(MKL_FOUND)
695-
list(PREPEND math_libs ${TORCH_LIBRARIES})
696-
else()
697-
list(APPEND math_libs ${TORCH_LIBRARIES})
698-
endif()
694+
list(APPEND math_libs ${TORCH_LIBRARIES})
699695
add_compile_options(${TORCH_CXX_FLAGS})
700696
endif()
701697

docs/advanced/input_files/input-main.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,7 +1965,7 @@
19651965

19661966
- **Type**: Boolean \[Integer\](optional)
19671967
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1968-
- **Description**: Whether to print the matrix representation of the position matrix into files named rxrs1_nao.csr, ryrs1_nao.csr, rzrs1_nao.csr in the directory OUT.${suffix}. If calculation is set to get_s, the position matrix can be obtained without scf iterations. For more information, please refer to position_matrix.md.
1968+
- **Description**: Whether to print the matrix representation of the position matrix into files named rxrs1_nao.csr, ryrs1_nao.csr, rzrs1_nao.csr in the directory OUT.${suffix}. The optional second parameter controls text output precision. If calculation is set to get_s, the position matrix can be obtained without scf iterations. For more information, please refer to position_matrix.md.
19691969

19701970
> Note: In the 3.10-LTS version, the file name is data-rR-sparse.csr.
19711971
- **Default**: False 8
@@ -1975,17 +1975,17 @@
19751975

19761976
- **Type**: Boolean \[Integer\](optional)
19771977
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1978-
- **Description**: Generate files containing the kinetic energy matrix. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be trs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
1978+
- **Description**: Generate files containing the kinetic energy matrix. The optional second parameter controls text output precision. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be trs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
19791979

19801980
> Note: In the 3.10-LTS version, the file name is data-TR-sparse_SPIN0.csr.
19811981
- **Default**: False 8
19821982
- **Unit**: Ry
19831983

19841984
### out_mat_dh
19851985

1986-
- **Type**: Integer
1986+
- **Type**: Boolean \[Integer\](optional)
19871987
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1988-
- **Description**: Whether to print files containing the derivatives of the Hamiltonian matrix. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be dhrxs1_nao.csr, dhrys1_nao.csr, dhrzs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
1988+
- **Description**: Whether to print files containing the derivatives of the Hamiltonian matrix. The optional second parameter controls text output precision. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be dhrxs1_nao.csr, dhrys1_nao.csr, dhrzs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
19891989

19901990
> Note: In the 3.10-LTS version, the file name is data-dHRx-sparse_SPIN0.csr and so on.
19911991
- **Default**: 0 8
@@ -1995,7 +1995,7 @@
19951995

19961996
- **Type**: Boolean \[Integer\](optional)
19971997
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1998-
- **Description**: Whether to print files containing the derivatives of the overlap matrix. The format will be the same as the overlap matrix as mentioned in out_mat_dh. The name of the files will be dsxrs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag. This feature can be used with calculation get_s.
1998+
- **Description**: Whether to print files containing the derivatives of the overlap matrix. The optional second parameter controls text output precision. The format will be the same as the overlap matrix as mentioned in out_mat_dh. The name of the files will be dsxrs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag. This feature can be used with calculation get_s.
19991999

20002000
> Note: In the 3.10-LTS version, the file name is data-dSRx-sparse_SPIN0.csr and so on.
20012001
- **Default**: False 8

docs/parameters.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,7 +3067,7 @@ parameters:
30673067
category: Output information
30683068
type: "Boolean \\[Integer\\](optional)"
30693069
description: |
3070-
Whether to print the matrix representation of the position matrix into files named rxrs1_nao.csr, ryrs1_nao.csr, rzrs1_nao.csr in the directory OUT.${suffix}. If calculation is set to get_s, the position matrix can be obtained without scf iterations. For more information, please refer to position_matrix.md.
3070+
Whether to print the matrix representation of the position matrix into files named rxrs1_nao.csr, ryrs1_nao.csr, rzrs1_nao.csr in the directory OUT.${suffix}. The optional second parameter controls text output precision. If calculation is set to get_s, the position matrix can be obtained without scf iterations. For more information, please refer to position_matrix.md.
30713071
30723072
[NOTE] In the 3.10-LTS version, the file name is data-rR-sparse.csr.
30733073
default_value: False 8
@@ -3077,17 +3077,17 @@ parameters:
30773077
category: Output information
30783078
type: "Boolean \\[Integer\\](optional)"
30793079
description: |
3080-
Generate files containing the kinetic energy matrix. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be trs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
3080+
Generate files containing the kinetic energy matrix. The optional second parameter controls text output precision. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be trs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
30813081
30823082
[NOTE] In the 3.10-LTS version, the file name is data-TR-sparse_SPIN0.csr.
30833083
default_value: False 8
30843084
unit: Ry
30853085
availability: Numerical atomic orbital basis (not gamma-only algorithm)
30863086
- name: out_mat_dh
30873087
category: Output information
3088-
type: Integer
3088+
type: "Boolean \\[Integer\\](optional)"
30893089
description: |
3090-
Whether to print files containing the derivatives of the Hamiltonian matrix. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be dhrxs1_nao.csr, dhrys1_nao.csr, dhrzs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
3090+
Whether to print files containing the derivatives of the Hamiltonian matrix. The optional second parameter controls text output precision. The format will be the same as the Hamiltonian matrix and overlap matrix as mentioned in out_mat_hs2. The name of the files will be dhrxs1_nao.csr, dhrys1_nao.csr, dhrzs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag.
30913091
30923092
[NOTE] In the 3.10-LTS version, the file name is data-dHRx-sparse_SPIN0.csr and so on.
30933093
default_value: 0 8
@@ -3097,7 +3097,7 @@ parameters:
30973097
category: Output information
30983098
type: "Boolean \\[Integer\\](optional)"
30993099
description: |
3100-
Whether to print files containing the derivatives of the overlap matrix. The format will be the same as the overlap matrix as mentioned in out_mat_dh. The name of the files will be dsxrs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag. This feature can be used with calculation get_s.
3100+
Whether to print files containing the derivatives of the overlap matrix. The optional second parameter controls text output precision. The format will be the same as the overlap matrix as mentioned in out_mat_dh. The name of the files will be dsxrs1_nao.csr and so on. Also controled by out_freq_ion and out_app_flag. This feature can be used with calculation get_s.
31013101
31023102
[NOTE] In the 3.10-LTS version, the file name is data-dSRx-sparse_SPIN0.csr and so on.
31033103
default_value: False 8

source/source_base/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ add_library(
4040
mymath.cpp
4141
opt_CG.cpp
4242
opt_DCsrch.cpp
43+
output.cpp
4344
para_gemm.cpp
4445
realarray.cpp
4546
sph_bessel_recursive-d1.cpp
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#ifndef OUTPUT_H
66
#define OUTPUT_H
77

8-
#include "../../source_base/realarray.h"
9-
#include "../../source_base/matrix3.h"
10-
#include "../../source_base/complexmatrix.h"
11-
#include "../../source_base/matrix.h"
8+
#include "realarray.h"
9+
#include "matrix3.h"
10+
#include "complexmatrix.h"
11+
#include "matrix.h"
1212
class output
1313
{
1414
public:

source/source_cell/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ add_library(
2323
cell_index.cpp
2424
check_atomic_stru.cpp
2525
update_cell.cpp
26+
magnetism.cpp
2627
bcast_cell.cpp
2728
read_stru.cpp
2829
print_cell.cpp

source/source_cell/atom_spec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "atom_spec.h"
22
#include "source_io/module_parameter/parameter.h"
3-
#include "source_io/module_output/output.h"
3+
#include "source_base/output.h"
44
#include <cstdlib>
55

66
Atom::Atom()

0 commit comments

Comments
 (0)