ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
chg_drho.cpp File Reference
#include "charge.h"
#include "chg_drho.h"
#include "chg_drho_detail.h"
#include "source_base/timer.h"
#include "source_base/parallel_reduce.h"
#include <cassert>
#include <functional>
Include dependency graph for chg_drho.cpp:

Namespaces

namespace  module_charge
 Charge-density symmetrization free functions.

Functions

double module_charge::cal_drho (Charge *chr, const double nelec, const ModulePW::PW_Basis &rhopw, const MixingConfig &cfg, const double omega, const double tpiba)
 Charge residual between chr->rho and chr->rho_save, normalized per electron.
double module_charge::cal_dkin (Charge *chr, const double nelec, const ModulePW::PW_Basis &rhopw, const MixingConfig &cfg, const double omega)
 Kinetic-energy-density residual between chr->kin_r and chr->kin_r_save.
double module_charge::inner_product_real (const double *rho1, const double *rho2, const ModulePW::PW_Basis &rhopw, const MixingConfig &cfg)
 Inner product of two real-space vectors used in real-space mixing.