Skip to content

Commit 8636f49

Browse files
committed
add print_tau in Cmake test
1 parent 1a67700 commit 8636f49

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

source/module_cell/print_cell.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef PRINT_CELL_H
22
#define PRINT_CELL_H
3-
#include "atom_spec.h"
43

4+
#include "atom_spec.h"
5+
#include "module_cell/unitcell.h"
56
namespace unitcell
67
{
78
void print_tau(Atom* atoms,

source/module_cell/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ list(APPEND cell_simple_srcs
1616
../unitcell.cpp
1717
../update_cell.cpp
1818
../bcast_cell.cpp
19+
../print_cell.cpp
1920
../read_stru.cpp
2021
../read_atom_species.cpp
2122
../read_atoms.cpp

source/module_cell/test/unitcell_test.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ Magnetism::~Magnetism()
4545
delete[] ucell->start_magnetization;
4646
}
4747

48-
#define private public
49-
#include "module_parameter/parameter.h"
50-
#undef private
5148
/************************************************
5249
* unit test of class UnitCell
5350
***********************************************/

source/module_cell/test_pw/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ AddTest(
1616
../read_stru.cpp ../read_atom_species.cpp
1717
../read_pp_vwr.cpp ../read_pp_blps.cpp ../../module_io/output.cpp
1818
../../module_elecstate/read_pseudo.cpp ../../module_elecstate/cal_nelec_nband.cpp
19-
../../module_elecstate/read_orb.cpp
19+
../../module_elecstate/read_orb.cpp ../../module_cell/print_cell.cpp
2020
)
2121

2222
find_program(BASH bash)

source/module_md/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ list(APPEND depend_files
77
../../module_cell/unitcell.cpp
88
../../module_cell/update_cell.cpp
99
../../module_cell/bcast_cell.cpp
10+
../../module_cell/print_cell.cpp
1011
../../module_cell/atom_spec.cpp
1112
../../module_cell/read_stru.cpp
1213
../../module_cell/read_atom_species.cpp

source/module_relax/relax_new/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ AddTest(
1818
../../../module_base/matrix3.cpp ../../../module_base/intarray.cpp ../../../module_base/tool_title.cpp
1919
../../../module_base/global_function.cpp ../../../module_base/complexmatrix.cpp ../../../module_base/matrix.cpp
2020
../../../module_base/complexarray.cpp ../../../module_base/tool_quit.cpp ../../../module_base/realarray.cpp ../../../module_base/blas_connector.cpp
21-
../../../module_cell/update_cell.cpp ../../../module_cell/bcast_cell.cpp ../../../module_io/output.cpp
21+
../../../module_cell/update_cell.cpp ../../../module_cell/print_cell.cpp ../../../module_cell/bcast_cell.cpp ../../../module_io/output.cpp
2222
LIBS parameter ${math_libs}
2323
)
2424

source/module_relax/relax_old/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ remove_definitions(-D__LCAO)
44
list(APPEND cell_source_files
55
../../../module_cell/update_cell.cpp
66
../../../module_cell/bcast_cell.cpp
7+
../../../module_cell/print_cell.cpp
78
../../../module_io/output.cpp
89
)
910
AddTest(

0 commit comments

Comments
 (0)