Skip to content

Commit d1fe2b5

Browse files
authored
Merge branch 'develop' into gint-omp
2 parents 3c16456 + 5b19d01 commit d1fe2b5

Some content is hidden

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

67 files changed

+378
-261
lines changed

source/Makefile.Objects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ VPATH=./src_global:\
3535
./module_hsolver/module_pexsi:\
3636
./module_elecstate:\
3737
./module_elecstate/kernels:\
38-
./module_elecstate/potentials:\
38+
./module_elecstate/module_pot:\
3939
./module_elecstate/module_charge:\
4040
./module_elecstate/module_dm:\
4141
./module_psi:\

source/module_basis/module_ao/parallel_orbitals.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@ void Parallel_Orbitals::set_atomic_trace(const int* iat2iwt, const int &nat, con
9191
this->atom_begin_col[nat] = this->ncol;
9292
}
9393

94-
// Get the number of columns of the parallel orbital matrix
95-
int Parallel_Orbitals::get_col_size()const
96-
{
97-
return this->ncol;
98-
}
99-
// Get the number of rows of the parallel orbital matrix
100-
int Parallel_Orbitals::get_row_size()const
101-
{
102-
return this->nrow;
103-
}
10494
// Get the number of columns of the orbital matrix of the iat-th atom
10595
int Parallel_Orbitals::get_col_size(int iat) const
10696
{

source/module_basis/module_ao/parallel_orbitals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class Parallel_Orbitals : public Parallel_2D
7373
* get_col_size(iat) : number of columns of Hamiltonian matrix in atom iat
7474
* get_row_size(iat) : number of rows of Hamiltonian matrix in atom iat
7575
*/
76-
int get_col_size()const;
77-
int get_row_size()const;
76+
int get_col_size()const { return this->ncol; };
77+
int get_row_size()const { return this->nrow; };
7878
int get_col_size(int iat) const;
7979
int get_row_size(int iat) const;
8080

source/module_elecstate/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ list(APPEND objects
88
elecstate_pw.cpp
99
elecstate_pw_sdft.cpp
1010
elecstate_pw_cal_tau.cpp
11-
potentials/gatefield.cpp
12-
potentials/efield.cpp
13-
potentials/H_Hartree_pw.cpp
14-
potentials/pot_xc.cpp
15-
potentials/pot_local.cpp
16-
potentials/pot_local_paw.cpp
17-
potentials/potential_new.cpp
18-
potentials/potential_types.cpp
11+
module_pot/gatefield.cpp
12+
module_pot/efield.cpp
13+
module_pot/H_Hartree_pw.cpp
14+
module_pot/pot_xc.cpp
15+
module_pot/pot_local.cpp
16+
module_pot/pot_local_paw.cpp
17+
module_pot/potential_new.cpp
18+
module_pot/potential_types.cpp
1919
module_charge/charge.cpp
2020
module_charge/charge_init.cpp
2121
module_charge/charge_mpi.cpp
@@ -42,7 +42,7 @@ if(ENABLE_LCAO)
4242
list(APPEND objects
4343
elecstate_lcao.cpp
4444
elecstate_lcao_cal_tau.cpp
45-
potentials/H_TDDFT_pw.cpp
45+
module_pot/H_TDDFT_pw.cpp
4646
module_dm/density_matrix.cpp
4747
module_dm/density_matrix_io.cpp
4848
module_dm/cal_dm_psi.cpp

source/module_elecstate/elecstate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "module_elecstate/module_charge/charge.h"
66
#include "module_parameter/parameter.h"
77
#include "module_psi/psi.h"
8-
#include "potentials/potential_new.h"
8+
#include "module_pot/potential_new.h"
99

1010
namespace elecstate
1111
{

source/module_elecstate/elecstate_energy_terms.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "elecstate.h"
2-
#include "module_elecstate/potentials/H_Hartree_pw.h"
3-
#include "module_elecstate/potentials/efield.h"
4-
#include "module_elecstate/potentials/gatefield.h"
2+
#include "module_elecstate/module_pot/H_Hartree_pw.h"
3+
#include "module_elecstate/module_pot/efield.h"
4+
#include "module_elecstate/module_pot/gatefield.h"
55
#include "module_hamilt_lcao/module_deepks/LCAO_deepks.h"
66
#include "module_hamilt_lcao/module_deltaspin/spin_constrain.h"
77
#include "module_hamilt_lcao/module_dftu/dftu.h"

source/module_elecstate/elecstate_print.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include "module_base/formatter.h"
33
#include "module_base/global_variable.h"
44
#include "module_base/parallel_common.h"
5-
#include "module_elecstate/potentials/H_Hartree_pw.h"
6-
#include "module_elecstate/potentials/efield.h"
7-
#include "module_elecstate/potentials/gatefield.h"
5+
#include "module_elecstate/module_pot/H_Hartree_pw.h"
6+
#include "module_elecstate/module_pot/efield.h"
7+
#include "module_elecstate/module_pot/gatefield.h"
88
#include "module_hamilt_general/module_xc/xc_functional.h"
99
#include "module_hamilt_lcao/module_deepks/LCAO_deepks.h"
1010
#include "module_parameter/parameter.h"

source/module_elecstate/module_dm/density_matrix.cpp

Lines changed: 178 additions & 164 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)