Skip to content

Commit ca5bf78

Browse files
committed
change ctrl_output_lcao to ctrl_scf_lcao
1 parent 3100997 commit ca5bf78

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

source/Makefile.Objects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ OBJS_IO=input_conv.o\
581581
write_libxc_r.o\
582582
output_log.o\
583583
output_mat_sparse.o\
584-
ctrl_output_lcao.o\
584+
ctrl_scf_lcao.o\
585585
ctrl_output_fp.o\
586586
ctrl_output_pw.o\
587587
para_json.o\

source/source_esolver/lcao_after_scf.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "esolver_ks_lcao.h"
2-
#include "source_io/ctrl_output_lcao.h"
2+
#include "source_io/ctrl_scf_lcao.h"
33

44
namespace ModuleESolver
55
{
@@ -23,7 +23,12 @@ void ESolver_KS_LCAO<TK, TR>::after_scf(UnitCell& ucell, const int istep, const
2323

2424
if(!estate)
2525
{
26-
ModuleBase::WARNING_QUIT("ModuleIO::ctrl_output_lcao","pelec does not exist");
26+
ModuleBase::WARNING_QUIT("ESolver_KS_LCAO::after_scf","pelec does not exist");
27+
}
28+
29+
if(!hamilt_lcao)
30+
{
31+
ModuleBase::WARNING_QUIT("ESolver_KS_LCAO::after_scf","p_hamilt does not exist");
2732
}
2833

2934

@@ -49,7 +54,7 @@ void ESolver_KS_LCAO<TK, TR>::after_scf(UnitCell& ucell, const int istep, const
4954

5055
if (out_flag)
5156
{
52-
ModuleIO::ctrl_output_lcao<TK, TR>(ucell,
57+
ModuleIO::ctrl_scf_lcao<TK, TR>(ucell,
5358
PARAM.inp,
5459
this->kv,
5560
estate,

source/source_io/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if(ENABLE_LCAO)
8383
single_R_io.cpp
8484
cal_r_overlap_R.cpp
8585
output_mat_sparse.cpp
86-
ctrl_output_lcao.cpp
86+
ctrl_scf_lcao.cpp
8787
)
8888
endif()
8989

source/source_io/ctrl_output_lcao.cpp renamed to source/source_io/ctrl_scf_lcao.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <complex>
22

33
#include "source_estate/elecstate_lcao.h" // use elecstate::ElecState
4-
#include "source_io/ctrl_output_lcao.h" // use ctrl_output_lcao()
4+
#include "source_io/ctrl_scf_lcao.h" // use ctrl_scf_lcao()
55
#include "source_lcao/hamilt_lcao.h" // use hamilt::HamiltLCAO<TK, TR>
66
#include "source_hamilt/hamilt.h" // use Hamilt<T>
77

@@ -34,7 +34,7 @@ namespace ModuleIO
3434
{
3535

3636
template <typename TK, typename TR>
37-
void ctrl_output_lcao(UnitCell& ucell,
37+
void ctrl_scf_lcao(UnitCell& ucell,
3838
const Input_para& inp,
3939
K_Vectors& kv,
4040
elecstate::ElecStateLCAO<TK>* pelec,
@@ -60,8 +60,8 @@ void ctrl_output_lcao(UnitCell& ucell,
6060
#endif
6161
const int istep)
6262
{
63-
ModuleBase::TITLE("ModuleIO", "ctrl_output_lcao");
64-
ModuleBase::timer::tick("ModuleIO", "ctrl_output_lcao");
63+
ModuleBase::TITLE("ModuleIO", "ctrl_scf_lcao");
64+
ModuleBase::timer::tick("ModuleIO", "ctrl_scf_lcao");
6565

6666
const bool out_app_flag = inp.out_app_flag;
6767
const bool gamma_only = PARAM.globalv.gamma_only_local;
@@ -434,14 +434,14 @@ void ctrl_output_lcao(UnitCell& ucell,
434434
}
435435

436436

437-
ModuleBase::timer::tick("ModuleIO", "ctrl_output_lcao");
437+
ModuleBase::timer::tick("ModuleIO", "ctrl_scf_lcao");
438438
}
439439

440440
} // End ModuleIO
441441

442442

443443
// For gamma only
444-
template void ModuleIO::ctrl_output_lcao<double, double>(UnitCell& ucell,
444+
template void ModuleIO::ctrl_scf_lcao<double, double>(UnitCell& ucell,
445445
const Input_para& inp,
446446
K_Vectors& kv,
447447
elecstate::ElecStateLCAO<double>* pelec,
@@ -468,7 +468,7 @@ template void ModuleIO::ctrl_output_lcao<double, double>(UnitCell& ucell,
468468
const int istep);
469469

470470
// For multiple k-points
471-
template void ModuleIO::ctrl_output_lcao<std::complex<double>, double>(UnitCell& ucell,
471+
template void ModuleIO::ctrl_scf_lcao<std::complex<double>, double>(UnitCell& ucell,
472472
const Input_para& inp,
473473
K_Vectors& kv,
474474
elecstate::ElecStateLCAO<std::complex<double>>* pelec,
@@ -494,7 +494,7 @@ template void ModuleIO::ctrl_output_lcao<std::complex<double>, double>(UnitCell&
494494
#endif
495495
const int istep);
496496

497-
template void ModuleIO::ctrl_output_lcao<std::complex<double>, std::complex<double>>(UnitCell& ucell,
497+
template void ModuleIO::ctrl_scf_lcao<std::complex<double>, std::complex<double>>(UnitCell& ucell,
498498
const Input_para& inp,
499499
K_Vectors& kv,
500500
elecstate::ElecStateLCAO<std::complex<double>>* pelec,

source/source_io/ctrl_output_lcao.h renamed to source/source_io/ctrl_scf_lcao.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef CTRL_OUTPUT_LCAO_H
2-
#define CTRL_OUTPUT_LCAO_H
1+
#ifndef CTRL_SCF_LCAO_H
2+
#define CTRL_SCF_LCAO_H
33

44
#include <complex>
55

@@ -21,7 +21,7 @@ namespace ModuleIO
2121
{
2222
// in principle, we need to add const for all of the variables, mohan note 2025-06-05
2323
template <typename TK, typename TR>
24-
void ctrl_output_lcao(UnitCell& ucell,
24+
void ctrl_scf_lcao(UnitCell& ucell,
2525
const Input_para& inp,
2626
K_Vectors& kv,
2727
elecstate::ElecStateLCAO<TK>* pelec,

0 commit comments

Comments
 (0)