Skip to content

Commit ae8ddf1

Browse files
authored
refactor: comment out some unused codes (#1664)
1 parent 1fa378e commit ae8ddf1

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

source/module_cell/read_atoms.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ void UnitCell::print_tau(void)const
11121112
}
11131113

11141114

1115+
/*
11151116
int UnitCell::find_type(const std::string &label)
11161117
{
11171118
if(GlobalV::test_pseudo_cell) ModuleBase::TITLE("UnitCell","find_type");
@@ -1126,6 +1127,7 @@ int UnitCell::find_type(const std::string &label)
11261127
ModuleBase::WARNING_QUIT("UnitCell::find_type","Can not find the atom type!");
11271128
return -1;
11281129
}
1130+
*/
11291131

11301132

11311133
void UnitCell::check_dtau(void)

source/module_cell/unitcell.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ void UnitCell::print_cell_cif(const std::string& fn) const
244244
ofs.close();
245245
}
246246

247+
/*
247248
void UnitCell::print_cell_xyz(const std::string& fn) const
248249
{
249250
if (GlobalV::test_unitcell)
@@ -271,6 +272,7 @@ void UnitCell::print_cell_xyz(const std::string& fn) const
271272
ofs.close();
272273
return;
273274
}
275+
*/
274276

275277
void UnitCell::set_iat2itia(void)
276278
{
@@ -520,6 +522,7 @@ void UnitCell::save_cartesian_position_original(ModuleBase::Vector3<double>* pos
520522
return;
521523
}
522524

525+
/*
523526
bool UnitCell::judge_big_cell(void) const
524527
{
525528
double diameter = 2 * GlobalV::SEARCH_RADIUS;
@@ -537,6 +540,7 @@ bool UnitCell::judge_big_cell(void) const
537540
return 0;
538541
}
539542
}
543+
*/
540544

541545
#ifndef __CMD
542546
void UnitCell::cal_ux()

source/src_io/output.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ void output::printcm_norm(std::ofstream &ofs, const std::string &s, const Module
7575
return;
7676
}
7777

78+
/*
7879
void output::printcm_norm(const std::string &s, const ModuleBase::ComplexMatrix &m, const double &limit)
7980
{
8081
const int b1 = m.nr;
@@ -94,8 +95,10 @@ void output::printcm_norm(const std::string &s, const ModuleBase::ComplexMatrix
9495
}
9596
return;
9697
}
98+
*/
9799

98100

101+
/*
99102
void output::printcm(std::ofstream &ofs, const std::string &s, const ModuleBase::ComplexMatrix &m)
100103
{
101104
const int b1 = m.nr;
@@ -116,7 +119,9 @@ void output::printcm(std::ofstream &ofs, const std::string &s, const ModuleBase:
116119
ofs.unsetf(std::ios::scientific);
117120
return;
118121
}//end print cm
122+
*/
119123

124+
/*
120125
void output::printcm(const std::string &s, const ModuleBase::ComplexMatrix &m)
121126
{
122127
const int b1 = m.nr;
@@ -135,7 +140,9 @@ void output::printcm(const std::string &s, const ModuleBase::ComplexMatrix &m)
135140
}
136141
return;
137142
}
143+
*/
138144

145+
/*
139146
void output::printcm_real_limit_hermit(const std::string &s, const ModuleBase::ComplexMatrix &m,const double &limit)
140147
{
141148
const int b1 = m.nr;
@@ -156,7 +163,9 @@ void output::printcm_real_limit_hermit(const std::string &s, const ModuleBase::C
156163
}
157164
return;
158165
}
166+
*/
159167

168+
/*
160169
void output::printcm_real(const std::string &s, const ModuleBase::ComplexMatrix &m,const double &limit)
161170
{
162171
const int b1 = m.nr;
@@ -177,9 +186,10 @@ void output::printcm_real(const std::string &s, const ModuleBase::ComplexMatrix
177186
}
178187
return;
179188
}
189+
*/
180190

181191

182-
192+
/*
183193
void output::printcm_imag(const std::string &s, const ModuleBase::ComplexMatrix &m,const double &limit)
184194
{
185195
const int b1 = m.nr;
@@ -200,6 +210,7 @@ void output::printcm_imag(const std::string &s, const ModuleBase::ComplexMatrix
200210
}
201211
return;
202212
}
213+
*/
203214

204215

205216

@@ -228,6 +239,7 @@ void output::printr3_d(std::ofstream &ofs, const std::string &s,const ModuleBase
228239
return;
229240
}//end printr3_d
230241

242+
/*
231243
void output::printr4_d(std::ofstream &ofs, const std::string &s,const ModuleBase::realArray &u)
232244
{
233245
const int b1 = u.getBound1();
@@ -251,6 +263,7 @@ void output::printr4_d(std::ofstream &ofs, const std::string &s,const ModuleBase
251263
ofs << std::setw(15) << u(i, j, k, m);
252264
}
253265
}//end print4_d
266+
*/
254267

255268
void output::printM3(std::ofstream &ofs,const std::string &description, const ModuleBase::Matrix3 &m)
256269
{

source/src_io/print_info.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ void Print_Info::print_time(time_t &time_start, time_t &time_finish)
241241
<< unsigned(secs) << " secs "<< std::endl;
242242
}
243243

244+
/*
244245
void Print_Info::print_scf(const int &istep, const int &iter)
245246
{
246247
if(GlobalV::BASIS_TYPE=="pw")
@@ -269,6 +270,7 @@ void Print_Info::print_scf(const int &istep, const int &iter)
269270
270271
GlobalV::ofs_running << " --------------------------------\n";
271272
}
273+
*/
272274

273275
void Print_Info::print_screen(const int &stress_step, const int &force_step, const int &istep)
274276
{
@@ -310,4 +312,4 @@ void Print_Info::print_screen(const int &stress_step, const int &force_step, con
310312

311313
std::cout << " -------------------------------------------" << std::endl;
312314
GlobalV::ofs_running << " -------------------------------------------" << std::endl;
313-
}
315+
}

0 commit comments

Comments
 (0)