Skip to content

Commit c4574b7

Browse files
author
abacus_fixer
committed
remove PAW-related codes
1 parent 2e698bf commit c4574b7

16 files changed

Lines changed: 10 additions & 52 deletions

File tree

cmake/FindMKL.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ endif()
112112

113113
endif() # MKL::MKL
114114

115-
# For compatibility with legacy libpaw_interface CMakeLists.txt
116-
if(TARGET MKL::MKL AND NOT TARGET IntelMKL::MKL)
117-
add_library(IntelMKL::MKL ALIAS MKL::MKL)
118-
endif()
115+
119116

120117
# In oneAPI 2022, MKL_SCALAPACK might not be linked properly
121118
if(NOT TARGET MKL::MKL_SCALAPACK)

docs/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ For those who are interested in the source code, the following figure shows the
5353
| `-- module_pw Data structures and relevant methods for planewave involved calculations
5454
|-- source_cell The module for defining the unit cell and its operations, and reading pseudopotentials.
5555
| |-- module_neighbor The module for finding the neighbors of each atom in the unit cell.
56-
| |-- module_paw The module for performing PAW calculations.
5756
| |-- module_symmetry The module for finding the symmetry operations of the unit cell.
5857
|-- source_estate The module for defining the electronic state and its operations.
5958
| |-- module_charge The module for calculating the charge density, charge mixing

docs/advanced/pp_orb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Users can find pseudopotentials in the following links:
127127
- [Quantum ESPRESSO](https://www.quantum-espresso.org/pseudopotentials): the official website of Quantum ESPRESSO, where you can find a large number of pseudopotential files.
128128
- [Stantard Solid State Pseudopotential library](https://www.materialscloud.org/sssp): a library of **high-quality** pseudopotentials for solid-state calculations, with **a large number of tests on efficiency and precison**.
129129
- [PWmat](http://www.pwmat.com/potential-download): a website that provides a large number of pseudopotential files, various kinds of semi-core constructed pseudopotentials are included. **Several sets (with or without f-electrons/noncolinear core correction) of Lanthanide pseudopotentials are also available**.
130-
- [THEOS](http://theossrv1.epfl.ch/Main/Pseudopotentials): PSlibrary 0.3.1, a library of pseudopotentials for DFT calculations, including ultrasoft, paw, norm-conserving both full-relativistic and scalar-relativistic pseudopotentials.
130+
- [THEOS](http://theossrv1.epfl.ch/Main/Pseudopotentials): PSlibrary 0.3.1, a library of pseudopotentials for DFT calculations, including ultrasoft, norm-conserving both full-relativistic and scalar-relativistic pseudopotentials.
131131
- [ABACUS@USTC](https://abacus.ustc.edu.cn/pseudo/list.htm): **ABACUS official website** where you can find a large number of pseudopotential files and numerical atomic orbital files.
132132
- [BLPS](https://github.com/PrincetonUniversity/BLPSLibrary): BLPS format pseudopotential library
133133

python/pyabacus/src/ModuleESolver/components/diagonalizer_wrapper.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ class DiagonalizerWrapper : public IDiagonalizer<TK>
156156
config_.tolerance,
157157
diag_ethr,
158158
config_.max_iterations,
159-
config_.use_paw,
160159
comm_info
161160
);
162161

python/pyabacus/src/ModuleESolver/interfaces/i_diagonalizer.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ struct DiagConfig
5858
double tolerance = 1e-6; ///< Convergence tolerance
5959
int max_iterations = 100; ///< Maximum iterations
6060
int dav_ndim = 4; ///< Davidson subspace dimension multiplier
61-
bool use_paw = false; ///< Use PAW method
6261
int nproc_in_pool = 1; ///< Number of processes in pool
6362
};
6463

python/pyabacus/src/hsolver/diago_adapter.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class PyDiagoDavidAdapter
8484
double tol,
8585
std::vector<double>& diag_ethr,
8686
int max_iter,
87-
bool use_paw,
8887
::hsolver::diag_comm_info comm_info)
8988
{
9089
auto hpsi_func = make_hpsi_func_fstyle<T>(mm_op);
@@ -95,7 +94,6 @@ class PyDiagoDavidAdapter
9594
nband_,
9695
nbasis_,
9796
dav_ndim,
98-
use_paw,
9997
comm_info
10098
);
10199

python/pyabacus/src/hsolver/py_diago_david.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ class PyDiagoDavid
106106
double tol,
107107
std::vector<double>& diag_ethr,
108108
int max_iter,
109-
bool use_paw,
110109
hsolver::diag_comm_info comm_info
111110
) {
112111
auto hpsi_func = [mm_op] (
@@ -143,7 +142,6 @@ class PyDiagoDavid
143142
nband,
144143
nbasis,
145144
dav_ndim,
146-
use_paw,
147145
comm_info
148146
);
149147

python/pyabacus/src/hsolver/py_hsolver.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,13 @@ void bind_hsolver(py::module& m)
145145
The tolerance vector.
146146
max_iter : int
147147
The maximum number of iterations.
148-
use_paw : bool
149-
Whether to use the projector augmented wave method.
150148
)pbdoc",
151149
"mm_op"_a,
152150
"precond_vec"_a,
153151
"dav_ndim"_a,
154152
"tol"_a,
155153
"diag_ethr"_a,
156154
"max_iter"_a,
157-
"use_paw"_a,
158155
"comm_info"_a)
159156
.def("set_psi", &PyDiagoDavidAdapter::set_psi, R"pbdoc(
160157
Set the initial guess of the eigenvectors, i.e. the wave functions.

python/pyabacus/src/pyabacus/hsolver/_hsolver.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def davidson(
136136
tol: float = 1e-2,
137137
max_iter: int = 1000,
138138
diag_ethr: Union[List[float], None] = None,
139-
use_paw: bool = False,
140139
# scf_type: bool = False
141140
) -> Tuple[NDArray[np.float64], NDArray[np.complex128]]:
142141
""" A function to diagonalize a matrix using the Davidson-Subspace method.
@@ -163,8 +162,6 @@ def davidson(
163162
The maximum number of iterations, by default 1000.
164163
diag_ethr : List[float] | None, optional
165164
The list of thresholds of bands, by default None.
166-
use_paw : bool, optional
167-
Whether to use projector augmented wave (PAW) method, by default False.
168165
169166
Returns
170167
-------
@@ -195,7 +192,6 @@ def davidson(
195192
tol,
196193
diag_ethr,
197194
max_iter,
198-
use_paw,
199195
comm_info
200196
)
201197

source/source_hsolver/diago_david.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ DiagoDavid<T, Device>::DiagoDavid(const Real* precondition_in,
1616
const int nband_in,
1717
const int dim_in,
1818
const int david_ndim_in,
19-
const bool use_paw_in,
2019
const diag_comm_info& diag_comm_in)
21-
: nband(nband_in), dim(dim_in), nbase_x(david_ndim_in * nband_in), david_ndim(david_ndim_in), use_paw(use_paw_in), diag_comm(diag_comm_in)
20+
: nband(nband_in), dim(dim_in), nbase_x(david_ndim_in * nband_in), david_ndim(david_ndim_in), diag_comm(diag_comm_in)
2221
{
2322
this->device = base_device::get_device_type(this->ctx);
2423
this->precondition = precondition_in;

0 commit comments

Comments
 (0)