Skip to content

Commit a1f38e1

Browse files
committed
solve conflicts
2 parents efdc9f8 + 002786e commit a1f38e1

File tree

160 files changed

+11625
-47763
lines changed

Some content is hidden

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

160 files changed

+11625
-47763
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2982,7 +2982,7 @@ These variables are relevant when using hybrid functionals with *[basis_type](#b
29822982
- **Type**: Real
29832983
- **Availability**: *[calculation](#calculation)==gen_opt_abfs*
29842984
- **Description**: The threshold when solving for the zeros of spherical Bessel functions. A reasonable choice is 1e-12.
2985-
- **Default**: 0
2985+
- **Default**: 1E-12
29862986

29872987
### exx_real_number
29882988

source/Makefile.Objects

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ VPATH=./src_global:\
2929
./source_base/module_mixing:\
3030
./source_md:\
3131
./source_basis/module_pw:\
32-
./source_basis/module_pw/module_fft:\
32+
./source_base/module_fft:\
3333
./source_esolver:\
3434
./source_hsolver:\
3535
./source_hsolver/kernels:\
@@ -202,6 +202,8 @@ OBJS_CELL=atom_pseudo.o\
202202
bcast_cell.o\
203203
read_stru.o\
204204
read_atom_species.o\
205+
sep.o\
206+
sep_cell.o\
205207

206208
OBJS_DEEPKS=LCAO_deepks.o\
207209
deepks_basic.o\
@@ -220,7 +222,7 @@ OBJS_DEEPKS=LCAO_deepks.o\
220222
deepks_phialpha.o\
221223
LCAO_deepks_io.o\
222224
LCAO_deepks_interface.o\
223-
225+
224226

225227
OBJS_ELECSTAT=elecstate.o\
226228
elecstate_energy_terms.o\
@@ -246,6 +248,7 @@ OBJS_ELECSTAT=elecstate.o\
246248
cal_nelec_nband.o\
247249
read_pseudo.o\
248250
cal_wfc.o\
251+
pot_sep.o\
249252

250253
OBJS_ELECSTAT_LCAO=elecstate_lcao.o\
251254
elecstate_lcao_cal_tau.o\
@@ -334,6 +337,8 @@ OBJS_HAMILT=hamilt_pw.o\
334337
op_exx_pw.o\
335338
ekinetic_pw.o\
336339
ekinetic_op.o\
340+
exx_pw_ace.o\
341+
exx_pw_pot.o\
337342
hpsi_norm_op.o\
338343
veff_pw.o\
339344
veff_op.o\
@@ -395,7 +400,7 @@ OBJS_HSOLVER=diago_cg.o\
395400
diag_const_nums.o\
396401
diag_hs_para.o\
397402
diago_pxxxgvx.o\
398-
403+
399404
OBJS_HSOLVER_LCAO=hsolver_lcao.o\
400405
diago_scalapack.o\
401406
diago_lapack.o\
@@ -413,7 +418,7 @@ OBJS_HSOLVER_PEXSI=diago_pexsi.o\
413418
dist_bcd_matrix.o\
414419
dist_ccs_matrix.o\
415420
dist_matrix_transformer.o\
416-
421+
417422
OBJS_MD=fire.o\
418423
langevin.o\
419424
md_base.o\
@@ -488,7 +493,7 @@ OBJS_RELAXATION=bfgs_basic.o\
488493
lbfgs.o\
489494
matrix_methods.o\
490495
line_search.o\
491-
496+
492497

493498
OBJS_SURCHEM=surchem.o\
494499
H_correction_pw.o\
@@ -688,7 +693,7 @@ OBJS_PARALLEL=parallel_common.o\
688693
parallel_kpoints.o\
689694
parallel_reduce.o\
690695
parallel_device.o
691-
696+
692697
OBJS_SRCPW=H_Ewald_pw.o\
693698
dnrm2.o\
694699
VL_in_pw.o\
@@ -752,7 +757,8 @@ OBJS_SRCPW=H_Ewald_pw.o\
752757
sto_elecond.o\
753758
sto_dos.o\
754759
onsite_projector.o\
755-
onsite_proj_tools.o
760+
onsite_proj_tools.o\
761+
VSep_in_pw.o
756762

757763
OBJS_VDW=vdw.o\
758764
vdwd2_parameters.o\

source/source_base/kernels/dsp/dsp_connector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ void zgemm_mth_(const char* transa,
290290
c,
291291
*ldc,
292292
cluster_id);
293-
293+
free_ht(alp);
294+
free_ht(bet);
294295
} // zgemm that needn't malloc_ht or free_ht
295296

296297
void cgemm_mth_(const char* transa,

source/source_basis/module_pw/module_fft/fft_base.h renamed to source/source_base/module_fft/fft_base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define FFT_BASE_H
33

44
#include <complex>
5-
namespace ModulePW
5+
namespace ModuleBase
66
{
77
template <typename FPTYPE>
88
class FFT_BASE
@@ -160,5 +160,5 @@ template FFT_BASE<float>::FFT_BASE();
160160
template FFT_BASE<double>::FFT_BASE();
161161
template FFT_BASE<float>::~FFT_BASE();
162162
template FFT_BASE<double>::~FFT_BASE();
163-
} // namespace ModulePW
163+
} // namespace ModuleBase
164164
#endif // FFT_BASE_H

source/source_basis/module_pw/module_fft/fft_bundle.cpp renamed to source/source_base/module_fft/fft_bundle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ std::unique_ptr<FFT_BASE> make_unique(Args&&... args)
1919
{
2020
return std::unique_ptr<FFT_BASE>(new FFT_BASE(std::forward<Args>(args)...));
2121
}
22-
namespace ModulePW
22+
namespace ModuleBase
2323
{
2424
FFT_Bundle::~FFT_Bundle()
2525
{
@@ -296,4 +296,4 @@ std::complex<double>* FFT_Bundle::get_auxr_3d_data() const
296296
{
297297
return fft_double->get_auxr_3d_data();
298298
}
299-
} // namespace ModulePW
299+
} // namespace ModuleBase

source/source_basis/module_pw/module_fft/fft_bundle.h renamed to source/source_base/module_fft/fft_bundle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "fft_cpu.h"
66

77
#include <memory>
8-
namespace ModulePW
8+
namespace ModuleBase
99
{
1010
class FFT_Bundle
1111
{
@@ -216,5 +216,5 @@ struct FFT_Guard
216216
}
217217
};
218218

219-
} // namespace ModulePW
219+
} // namespace ModuleBase
220220
#endif // FFT_H

source/source_basis/module_pw/module_fft/fft_cpu.cpp renamed to source/source_base/module_fft/fft_cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "fft_cpu.h"
22
#include "fftw3.h"
3-
namespace ModulePW
3+
namespace ModuleBase
44
{
55

66
template <typename FPTYPE>

source/source_basis/module_pw/module_fft/fft_cpu.h renamed to source/source_base/module_fft/fft_cpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "fft_base.h"
55
#include "fftw3.h"
6-
namespace ModulePW
6+
namespace ModuleBase
77
{
88
template <typename FPTYPE>
99
class FFT_CPU : public FFT_BASE<FPTYPE>

source/source_basis/module_pw/module_fft/fft_cpu_float.cpp renamed to source/source_base/module_fft/fft_cpu_float.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "fft_cpu.h"
22

3-
namespace ModulePW
3+
namespace ModuleBase
44
{
55
template <>
66
void FFT_CPU<float>::setupFFT()

source/source_basis/module_pw/module_fft/fft_cuda.cpp renamed to source/source_base/module_fft/fft_cuda.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "source_base/module_device/memory_op.h"
44
#include "source_pw/module_pwdft/global.h"
55

6-
namespace ModulePW
6+
namespace ModuleBase
77
{
88
template <typename FPTYPE>
99
void FFT_CUDA<FPTYPE>::initfft(int nx_in, int ny_in, int nz_in)
@@ -111,4 +111,4 @@ template FFT_CUDA<float>::FFT_CUDA();
111111
template FFT_CUDA<float>::~FFT_CUDA();
112112
template FFT_CUDA<double>::FFT_CUDA();
113113
template FFT_CUDA<double>::~FFT_CUDA();
114-
} // namespace ModulePW
114+
} // namespace ModuleBase

0 commit comments

Comments
 (0)