Skip to content

Commit 99d801a

Browse files
committed
fix compile bug
1 parent 8636f49 commit 99d801a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

source/Makefile.Objects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ OBJS_CELL=atom_pseudo.o\
185185
read_pp_vwr.o\
186186
unitcell.o\
187187
read_atoms.o\
188+
print_tau.o\
188189
setup_nonlocal.o\
189190
klist.o\
190191
cell_index.o\
@@ -230,6 +231,7 @@ OBJS_ELECSTAT=elecstate.o\
230231
H_TDDFT_pw.o\
231232
pot_xc.o\
232233
cal_ux.o\
234+
read_orb.o\
233235
cal_nelec_nband.o\
234236
read_pseudo.o\
235237

source/module_cell/test/unitcell_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ LCAO_Orbitals::~LCAO_Orbitals()
3636
#endif
3737
Magnetism::Magnetism()
3838
{
39-
ucell->tot_magnetization = 0.0;
40-
ucell->abs_magnetization = 0.0;
41-
ucell->start_magnetization = nullptr;
39+
this->tot_magnetization = 0.0;
40+
this->abs_magnetization = 0.0;
41+
this->start_magnetization = nullptr;
4242
}
4343
Magnetism::~Magnetism()
4444
{
45-
delete[] ucell->start_magnetization;
45+
delete[] this->start_magnetization;
4646
}
4747

4848
/************************************************

0 commit comments

Comments
 (0)