Skip to content

Commit a48bb09

Browse files
committed
combine relax_new with relax_old
2 parents f3ff4e5 + 9ac5750 commit a48bb09

File tree

432 files changed

+3254
-741
lines changed

Some content is hidden

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

432 files changed

+3254
-741
lines changed

.github/workflows/version_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
# Validate version.h matches the release tag
2626
- name: Assert version increment
2727
run: |
28-
CODE_VERSION=$(grep -oP '#define\s+VERSION\s+"\K\d+(\.\d+){2,3}' source/version.h)
28+
CODE_VERSION=$(grep -oP '#define\s+VERSION\s+"\K\d+(\.\d+){2,3}' source/source_main/version.h)
2929
3030
if [[ -z "$CODE_VERSION" ]]; then
31-
echo "::error::Failed to extract version from source/version.h"
31+
echo "::error::Failed to extract version from source/source_main/version.h"
3232
exit 1
3333
fi
3434

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ include_directories(${ABACUS_SOURCE_DIR}/module_base/module_container)
172172
set(CMAKE_CXX_STANDARD 11)
173173
set(CMAKE_CXX_STANDARD_REQUIRED ON)
174174

175-
add_executable(${ABACUS_BIN_NAME} source/main.cpp)
175+
add_executable(${ABACUS_BIN_NAME} source/source_main/main.cpp)
176176
if(ENABLE_COVERAGE)
177177
add_coverage(${ABACUS_BIN_NAME})
178178
endif()

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ For those who are interested in the source code, the following figure shows the
5757
|-- module_elecstate The module for defining the electronic state and its operations.
5858
| |-- module_charge The module for calculating the charge density, charge mixing
5959
| |-- potentials The module for calculating the potentials, including Hartree, exchange-correlation, local pseudopotential, etc.
60-
|-- module_esolver The module defining task-specific driver of corresponding workflow for evaluating energies, forces, etc., including lj, dp, ks, sdft, ofdft, etc.
60+
|-- source_esolver The module defining task-specific driver of corresponding workflow for evaluating energies, forces, etc., including lj, dp, ks, sdft, ofdft, etc.
6161
| | TDDFT, Orbital-free DFT, etc.
6262
|-- module_hamilt_general The module for defining general Hamiltonian that can be used both in PW and LCAO calculations.
6363
| |-- module_ewald The module for calculating the Ewald summation.
@@ -77,7 +77,7 @@ For those who are interested in the source code, the following figure shows the
7777
| |-- hamilt_pwdft The module for defining the Hamiltonian in PW-DFT calculations.
7878
| | |-- operator_pw The module for defining the operators in PW-DFT calculations.
7979
| `-- hamilt_stodft The module for defining the Hamiltonian in STODFT calculations.
80-
|-- module_hsolver The module for solving the Hamiltonian with different diagonalization methods, including CG, Davidson in PW
80+
|-- source_hsolver The module for solving the Hamiltonian with different diagonalization methods, including CG, Davidson in PW
8181
| | calculations, and scalapack and genelpa in LCAO calculations.
8282
|-- module_io The module for reading of INPUT files and output properties including band structure, density of states, charge density, etc.
8383
|-- module_md The module for performing molecular dynamics.

docs/advanced/acceleration/cuda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In ABACUS, we provide the option to use GPU devices to accelerate performance. T
1212

1313
- **Parallel strategy**: K point parallel.
1414

15-
Unlike PW basis, only the grid integration module (module_gint) and the diagonalization of the Hamiltonian matrix (module_hsolver) have been implemented with GPU acceleration under LCAO basis.
15+
Unlike PW basis, only the grid integration module (module_gint) and the diagonalization of the Hamiltonian matrix (source_hsolver) have been implemented with GPU acceleration under LCAO basis.
1616

1717
## Required hardware/software
1818

docs/advanced/input_files/input-main.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
- [Output Variables](#variables-related-to-output-information)
135135
- [out\_freq\_elec](#out_freq_elec)
136136
- [out\_chg](#out_chg)
137+
- [out\_xc\_r](#out_xc_r)
137138
- [out\_pot](#out_pot)
138139
- [out\_dm](#out_dmk)
139140
- [out\_dm1](#out_dmr)
@@ -1652,6 +1653,25 @@ These variables are used to control the output of properties.
16521653
- **Default**: 0 3
16531654
- **Note**: In the 3.10-LTS version, the file names are SPIN1_CHG.cube and SPIN1_CHG_INI.cube, etc.
16541655

1656+
### out_xc_r
1657+
1658+
- **Type**: Integer \[Integer\](optional)
1659+
- **Description**:
1660+
The first integer controls whether to output the exchange-correlation (in Bohr^-3) on real space grids using Libxc to folder `OUT.${suffix}`:
1661+
- 0: rho, amag, sigma, exc
1662+
- 1: vrho, vsigma
1663+
- 2: v2rho2, v2rhosigma, v2sigma2
1664+
- 3: v3rho3, v3rho2sigma, v3rhosigma2, v3sigma3
1665+
- 4: v4rho4, v4rho3sigma, v4rho2sigma2, v4rhosigma3, v4sigma4
1666+
The meaning of the files is presented in [Libxc](https://libxc.gitlab.io/manual/libxc-5.1.x/)
1667+
1668+
The second integer controls the precision of the charge density output, if not given, will use `3` as default.
1669+
1670+
---
1671+
The circle order of the charge density on real space grids is: x is the outer loop, then y and finally z (z is moving fastest).
1672+
1673+
- **Default**: -1 3
1674+
16551675
### out_pot
16561676

16571677
- **Type**: Integer

python/pyabacus/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ find_package(pybind11 CONFIG REQUIRED)
1414
set(ABACUS_SOURCE_DIR "${PROJECT_SOURCE_DIR}/../../source")
1515
set(BASE_PATH "${ABACUS_SOURCE_DIR}/module_base")
1616
set(NAO_PATH "${ABACUS_SOURCE_DIR}/module_basis/module_nao")
17-
set(HSOLVER_PATH "${ABACUS_SOURCE_DIR}/module_hsolver")
17+
set(HSOLVER_PATH "${ABACUS_SOURCE_DIR}/source_hsolver")
1818
set(PSI_PATH "${ABACUS_SOURCE_DIR}/module_psi")
1919
set(ENABLE_LCAO ON)
2020
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../../cmake")

python/pyabacus/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ find_package(pybind11 CONFIG REQUIRED)
7474
set(ABACUS_SOURCE_DIR "${PROJECT_SOURCE_DIR}/../../source")
7575
set(BASE_PATH "${ABACUS_SOURCE_DIR}/module_base")
7676
set(NAO_PATH "${ABACUS_SOURCE_DIR}/module_basis/module_nao")
77-
set(HSOLVER_PATH "${ABACUS_SOURCE_DIR}/module_hsolver")
77+
set(HSOLVER_PATH "${ABACUS_SOURCE_DIR}/source_hsolver")
7878
set(PSI_PATH "${ABACUS_SOURCE_DIR}/module_psi")
7979
set(ENABLE_LCAO ON)
8080
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../../cmake")

python/pyabacus/src/hsolver/py_diago_cg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <ATen/core/tensor_map.h>
1515
#include <ATen/core/tensor_types.h>
1616

17-
#include "module_hsolver/diago_cg.h"
17+
#include "source_hsolver/diago_cg.h"
1818
#include "module_base/module_device/memory_op.h"
1919

2020
namespace py = pybind11;

python/pyabacus/src/hsolver/py_diago_dav_subspace.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <pybind11/numpy.h>
1111
#include <pybind11/stl.h>
1212

13-
#include "module_hsolver/diago_dav_subspace.h"
13+
#include "source_hsolver/diago_dav_subspace.h"
1414

1515
namespace py = pybind11;
1616

python/pyabacus/src/hsolver/py_diago_david.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <pybind11/numpy.h>
1111
#include <pybind11/stl.h>
1212

13-
#include "module_hsolver/diago_david.h"
13+
#include "source_hsolver/diago_david.h"
1414

1515
namespace py = pybind11;
1616

0 commit comments

Comments
 (0)