Skip to content

Commit d365a6e

Browse files
committed
update
1 parent 587b492 commit d365a6e

File tree

14 files changed

+27
-22
lines changed

14 files changed

+27
-22
lines changed

source/source_estate/module_dm/density_matrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void DensityMatrix<std::complex<double>, double>::cal_DMR_td(const UnitCell& uce
279279
#endif
280280
target_DMR_mat_vec[ir] = target_mat->get_pointer();
281281
double arg_td = 0.0;
282-
//cal tddft phase for hybrid gague
282+
//cal tddft phase for hybrid gauge
283283
ModuleBase::Vector3<double> dtau = ucell.cal_dtau(iat1, iat2, r_index);
284284
arg_td = At * dtau * ucell.lat0;
285285
for(int ik = 0; ik < this->_nk; ++ik)

source/source_estate/module_dm/density_matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class DensityMatrix
182182
void cal_DMR(const int ik_in = -1);
183183

184184
/**
185-
* @brief calculate density matrix DMR with additional vector potential phase, used for hybrid gague tddft
185+
* @brief calculate density matrix DMR with additional vector potential phase, used for hybrid gauge tddft
186186
* if ik_in < 0, calculate all k-points
187187
* if ik_in >= 0, calculate only one k-point without summing over k-points
188188
*/

source/source_estate/module_pot/H_TDDFT_pw.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ double H_TDDFT_pw::lcut2;
4545
// velocity gauge
4646
ModuleBase::Vector3<double> H_TDDFT_pw::At;
4747
ModuleBase::Vector3<double> H_TDDFT_pw::At_laststep;
48-
// hybrid gague
48+
// hybrid gauge
4949
ModuleBase::Vector3<double> H_TDDFT_pw::Et;
5050
// time domain parameters
5151

@@ -85,12 +85,12 @@ std::vector<double> H_TDDFT_pw::heavi_amp; // Ry/bohr
8585
void H_TDDFT_pw::current_step_info(const std::string& file_dir, int& istep)
8686
{
8787
std::stringstream ssc;
88-
ssc << file_dir << "Restart_td.dat";
88+
ssc << file_dir << "Restart_td.txt";
8989
std::ifstream file(ssc.str().c_str());
9090

9191
if (!file)
9292
{
93-
ModuleBase::WARNING_QUIT("H_TDDFT_pw::current_step_info", "No Restart_td.dat!");
93+
ModuleBase::WARNING_QUIT("H_TDDFT_pw::current_step_info", "No Restart_td.txt!");
9494
}
9595

9696
file >> istep;
@@ -104,7 +104,7 @@ void H_TDDFT_pw::cal_fixed_v(double* vl_pseudo)
104104
{
105105
ModuleBase::TITLE("H_TDDFT_pw", "cal_fixed_v");
106106

107-
// skip if not length gague
107+
// skip if not length gauge
108108
if (stype != 0)
109109
{
110110
return;

source/source_io/output_log.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,11 @@ void write_head(std::ofstream& ofs, const int& istep, const int& iter, const std
350350
void write_head_td(std::ofstream& ofs, const int& istep, const int& estep, const int& iter, const std::string& basisname)
351351
{
352352
ofs << "\n";
353-
ofs << " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<< std::endl;
353+
ofs << " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<< std::endl;
354354
ofs << " --> IONIC RELAXATION STEP=" << std::setw(6) << istep+1
355355
<< " ELECTRON PROPAGATION STEP=" << std::setw(6) << estep
356356
<< " ELECTRONIC ITERATION STEP=" << std::setw(6) << iter << "\n";
357-
ofs << " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<< std::endl;
357+
ofs << " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<< std::endl;
358358

359359
// ofs << "\n " << basisname << " ALGORITHM --------------- ION=" << std::setw(4) << istep + 1
360360
// << " ELEC=" << std::setw(4) << estep << " iter=" << std::setw(4) << iter << "--------------------------------\n";

source/source_io/td_current_io.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void ModuleIO::write_current(const UnitCell& ucell,
5858
{
5959
if (TD_info::td_vel_op == nullptr)
6060
{
61-
ModuleBase::WARNING_QUIT("ModuleIO::write_current", "velocity gague infos is null!");
61+
ModuleBase::WARNING_QUIT("ModuleIO::write_current", "velocity gauge infos is null!");
6262
}
6363
for (int dir = 0; dir < 3; dir++)
6464
{
@@ -250,7 +250,7 @@ void ModuleIO::cal_tmp_DM_k(const UnitCell& ucell,
250250
double arg_td = 0.0;
251251
if(elecstate::H_TDDFT_pw::stype == 2)
252252
{
253-
//cal tddft phase for hybrid gague
253+
//cal tddft phase for hybrid gauge
254254
const int iat1 = tmp_ap_real.get_atom_i();
255255
const int iat2 = tmp_ap_real.get_atom_j();
256256
ModuleBase::Vector3<double> dtau = ucell.cal_dtau(iat1, iat2, r_index);
@@ -320,7 +320,7 @@ void ModuleIO::cal_tmp_DM_k(const UnitCell& ucell,
320320
if(elecstate::H_TDDFT_pw::stype == 2)
321321
{
322322
//new
323-
//cal tddft phase for mixing gague
323+
//cal tddft phase for mixing gauge
324324
const int iat1 = tmp_ap_real.get_atom_i();
325325
const int iat2 = tmp_ap_real.get_atom_j();
326326
ModuleBase::Vector3<double> dtau = ucell.cal_dtau(iat1, iat2, r_index);
@@ -424,7 +424,7 @@ void ModuleIO::write_current_eachk(const UnitCell& ucell,
424424
{
425425
if (TD_info::td_vel_op == nullptr)
426426
{
427-
ModuleBase::WARNING_QUIT("ModuleIO::write_current", "velocity gague infos is null!");
427+
ModuleBase::WARNING_QUIT("ModuleIO::write_current", "velocity gauge infos is null!");
428428
}
429429
for (int dir = 0; dir < 3; dir++)
430430
{

source/source_io/test/read_input_ptest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ TEST_F(InputParaTest, ParaRead)
301301
EXPECT_FALSE(param.inp.noncolin);
302302
EXPECT_FALSE(param.inp.lspinorb);
303303
EXPECT_DOUBLE_EQ(param.inp.soc_lambda, 1.0);
304-
EXPECT_DOUBLE_EQ(param.inp.td_force_dt, 0.02);
305304
EXPECT_EQ(param.inp.td_vext, 0);
306305
EXPECT_EQ(param.inp.propagator, 0);
307306
EXPECT_EQ(param.inp.td_stype, 0);

source/source_io/test/support/INPUT

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ exx_opt_orb_ecut 0 #
295295
exx_opt_orb_tolerence 0 #
296296

297297
#Parameters (16.tddft)
298-
td_force_dt 0.02 #time of force change
299298
td_vext 0 #add extern potential or not
300299
td_vext_dire 1 #extern potential direction
301300
td_propagator 0 # method of propagator

source/source_io/test_serial/read_input_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace Global_File
3333
void make_dir_out(const std::string& suffix,
3434
const std::string& calculation,
3535
const bool& out_dir,
36+
const bool& out_wfc_dir,
3637
const int rank,
3738
const bool& restart,
3839
const bool out_alllog)

source/source_lcao/module_operator_lcao/td_pot_hybrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void hamilt::TD_pot_hybrid<hamilt::OperatorLCAO<TK, TR>>::init_td()
238238
template <typename TK, typename TR>
239239
void hamilt::TD_pot_hybrid<hamilt::OperatorLCAO<TK, TR>>::update_td()
240240
{
241-
//std::cout<<"hybrid gague" <<std::endl;
241+
//std::cout<<"hybrid gauge" <<std::endl;
242242
this->cart_At = TD_info::td_vel_op->cart_At;
243243
//std::cout<<"At: "<< TD_info::td_vel_op->cart_At[0] <<" "<<TD_info::td_vel_op->cart_At[1]<<" "<<TD_info::td_vel_op->cart_At[2]<<" "<<std::endl;
244244
Et = elecstate::H_TDDFT_pw::Et;

source/source_lcao/module_operator_lcao/test/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ AddTest(
99
../../../source_basis/module_ao/parallel_orbitals.cpp
1010
../../../source_basis/module_ao/ORB_atomic_lm.cpp
1111
tmp_mocks.cpp ../../../source_hamilt/operator.cpp
12+
../../../source_lcao/module_rt/td_info.cpp
13+
../../../source_lcao/module_rt/td_folding.cpp
14+
../../../source_estate/module_pot/H_TDDFT_pw.cpp
1215
)
1316

1417
AddTest(
@@ -19,6 +22,9 @@ AddTest(
1922
../../../source_basis/module_ao/parallel_orbitals.cpp
2023
../../../source_basis/module_ao/ORB_atomic_lm.cpp
2124
tmp_mocks.cpp ../../../source_hamilt/operator.cpp
25+
../../../source_lcao/module_rt/td_info.cpp
26+
../../../source_lcao/module_rt/td_folding.cpp
27+
../../../source_estate/module_pot/H_TDDFT_pw.cpp
2228
)
2329

2430
AddTest(

0 commit comments

Comments
 (0)