Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/module_esolver/esolver_gets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void ESolver_GetS::runner(UnitCell& ucell, const int istep)
}

void ESolver_GetS::after_all_runners(UnitCell& ucell) {};
double ESolver_GetS::cal_energy() {};
double ESolver_GetS::cal_energy() { return 0.0; };
void ESolver_GetS::cal_force(UnitCell& ucell, ModuleBase::matrix& force) {};
void ESolver_GetS::cal_stress(UnitCell& ucell, ModuleBase::matrix& stress) {};

Expand Down
2 changes: 1 addition & 1 deletion source/module_esolver/esolver_ks.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ESolver_KS : public ESolver_FP
virtual void iter_init(UnitCell& ucell, const int istep, const int iter);

//! Something to do after hamilt2density function in each iter loop.
virtual void iter_finish(UnitCell& ucell, const int istep, int& iter);
virtual void iter_finish(UnitCell& ucell, const int istep, int& iter) override;

// calculate electron density from a specific Hamiltonian with ethr
virtual void hamilt2density_single(UnitCell& ucell, const int istep, const int iter, const double ethr);
Expand Down
Loading