Skip to content

Commit

Permalink
fix some warnings about esolver (#5807)
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 authored Jan 4, 2025
1 parent b5a5068 commit 028e91d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 028e91d

Please sign in to comment.