Skip to content

Commit 25aa054

Browse files
committed
Refactor: add head files
1 parent 03b6bcd commit 25aa054

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

source/module_cell/test/klist_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <iostream>
44
#include <streambuf>
55
#define private public
6-
#include "module_parameter/parameter.h"
76
#include "module_basis/module_ao/ORB_gaunt_table.h"
87
#include "module_cell/atom_pseudo.h"
98
#include "module_cell/atom_spec.h"
@@ -13,9 +12,11 @@
1312
#include "module_cell/setup_nonlocal.h"
1413
#include "module_cell/unitcell.h"
1514
#include "module_elecstate/magnetism.h"
15+
#include "module_hamilt_pw/hamilt_pwdft/VL_in_pw.h"
1616
#include "module_hamilt_pw/hamilt_pwdft/VNL_in_pw.h"
1717
#include "module_hamilt_pw/hamilt_pwdft/parallel_grid.h"
1818
#include "module_io/berryphase.h"
19+
#include "module_parameter/parameter.h"
1920
#undef private
2021
#include "module_base/mathzone.h"
2122
#include "module_base/parallel_global.h"

source/module_cell/test/klist_test_para.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "module_cell/setup_nonlocal.h"
2020
#include "module_cell/unitcell.h"
2121
#include "module_elecstate/magnetism.h"
22+
#include "module_hamilt_pw/hamilt_pwdft/VL_in_pw.h"
2223
#include "module_hamilt_pw/hamilt_pwdft/VNL_in_pw.h"
2324
#include "module_hamilt_pw/hamilt_pwdft/parallel_grid.h"
2425
#include "module_io/berryphase.h"

source/module_elecstate/test/elecstate_pw_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#undef private
88
#define protected public
99
#include "module_elecstate/elecstate_pw.h"
10+
#include "module_hamilt_pw/hamilt_pwdft/VL_in_pw.h"
1011
#undef protected
1112
// mock functions for testing
1213
namespace elecstate

source/module_io/test/for_testing_klist.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#ifndef FOR_TESTING_KLIST_H
22
#define FOR_TESTING_KLIST_H
33

4-
#include "module_cell/parallel_kpoints.h"
54
#include "module_base/parallel_global.h"
6-
#include "module_cell/klist.h"
7-
#include "module_elecstate/magnetism.h"
8-
#include "module_hamilt_pw/hamilt_pwdft/VNL_in_pw.h"
5+
#include "module_basis/module_ao/ORB_gaunt_table.h"
96
#include "module_cell/atom_pseudo.h"
107
#include "module_cell/atom_spec.h"
11-
#include "module_cell/unitcell.h"
8+
#include "module_cell/klist.h"
9+
#include "module_cell/parallel_kpoints.h"
1210
#include "module_cell/pseudo.h"
1311
#include "module_cell/setup_nonlocal.h"
12+
#include "module_cell/unitcell.h"
13+
#include "module_elecstate/magnetism.h"
14+
#include "module_hamilt_pw/hamilt_pwdft/VL_in_pw.h"
15+
#include "module_hamilt_pw/hamilt_pwdft/VNL_in_pw.h"
1416
#include "module_hamilt_pw/hamilt_pwdft/parallel_grid.h"
15-
#include "module_cell/parallel_kpoints.h"
1617
#include "module_io/berryphase.h"
17-
#include "module_basis/module_ao/ORB_gaunt_table.h"
1818

1919
bool berryphase::berry_phase_flag=0;
2020

source/module_psi/test/psi_initializer_unit_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#include "module_parameter/parameter.h"
44
#undef private
55
#include "../psi_initializer.h"
6-
#include "../psi_initializer_random.h"
76
#include "../psi_initializer_atomic.h"
8-
#include "../psi_initializer_nao.h"
97
#include "../psi_initializer_atomic_random.h"
8+
#include "../psi_initializer_nao.h"
109
#include "../psi_initializer_nao_random.h"
11-
10+
#include "../psi_initializer_random.h"
11+
#include "module_hamilt_pw/hamilt_pwdft/VL_in_pw.h"
1212

1313
/*
1414
=========================

0 commit comments

Comments
 (0)