Skip to content

Commit 1204323

Browse files
authored
Merge branch 'develop' into perf/neighlist-build-openmp
2 parents 6dba495 + ee6ec4c commit 1204323

76 files changed

Lines changed: 1211 additions & 366 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
@@ -1964,7 +1964,7 @@
19641964

19651965
- **Type**: Boolean \[Integer\](optional)
19661966
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1967-
- **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.
1967+
- **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.
19681968

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

19751975
- **Type**: Boolean \[Integer\](optional)
19761976
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1977-
- **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.
1977+
- **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.
19781978

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

19831983
### out_mat_dh
19841984

1985-
- **Type**: Integer
1985+
- **Type**: Boolean \[Integer\](optional)
19861986
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1987-
- **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.
1987+
- **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.
19881988

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

19951995
- **Type**: Boolean \[Integer\](optional)
19961996
- **Availability**: *Numerical atomic orbital basis (not gamma-only algorithm)*
1997-
- **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.
1997+
- **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.
19981998

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

docs/parameters.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3058,7 +3058,7 @@ parameters:
30583058
category: Output information
30593059
type: "Boolean \\[Integer\\](optional)"
30603060
description: |
3061-
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.
3061+
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.
30623062
30633063
[NOTE] In the 3.10-LTS version, the file name is data-rR-sparse.csr.
30643064
default_value: False 8
@@ -3068,17 +3068,17 @@ parameters:
30683068
category: Output information
30693069
type: "Boolean \\[Integer\\](optional)"
30703070
description: |
3071-
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.
3071+
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.
30723072
30733073
[NOTE] In the 3.10-LTS version, the file name is data-TR-sparse_SPIN0.csr.
30743074
default_value: False 8
30753075
unit: Ry
30763076
availability: Numerical atomic orbital basis (not gamma-only algorithm)
30773077
- name: out_mat_dh
30783078
category: Output information
3079-
type: Integer
3079+
type: "Boolean \\[Integer\\](optional)"
30803080
description: |
3081-
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.
3081+
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.
30823082
30833083
[NOTE] In the 3.10-LTS version, the file name is data-dHRx-sparse_SPIN0.csr and so on.
30843084
default_value: 0 8
@@ -3088,7 +3088,7 @@ parameters:
30883088
category: Output information
30893089
type: "Boolean \\[Integer\\](optional)"
30903090
description: |
3091-
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.
3091+
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.
30923092
30933093
[NOTE] In the 3.10-LTS version, the file name is data-dSRx-sparse_SPIN0.csr and so on.
30943094
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)