Skip to content

Commit d676e9c

Browse files
committed
update comments
1 parent 2293149 commit d676e9c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

source/module_lr/potentials/pot_hxc_lrtd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace LR
1414
/// S1: K^Hartree + K^xc
1515
/// S2_singlet: 2*K^Hartree + K^xc_{upup} + K^xc_{updown}
1616
/// S2_triplet: K^xc_{upup} - K^xc_{updown}
17+
/// S2_updown: K^Hartree + (K^xc_{upup}, K^xc_{updown}, K^xc_{downup} or K^xc_{downdown}), according to `ispin_op` (for spin-polarized systems)
1718
enum SpinType { S1 = 0, S2_singlet = 1, S2_triplet = 2, S2_updown = 3 };
1819
enum XCType { None = 0, LDA = 1, GGA = 2, HYB_GGA = 4 };
1920
/// constructor for exchange-correlation kernel

source/module_lr/potentials/xc_kernel.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33

44
namespace LR
55
{
6+
/// @brief Calculate the exchange-correlation (XC) kernel ($f_{xc}=\delta^2E_xc/\delta\rho^2$) and store its components.
67
class KernelXC
78
{
89
public:
910
KernelXC(const ModulePW::PW_Basis& rho_basis) : rho_basis_(rho_basis) {};
1011
~KernelXC() {};
1112

12-
// xc kernel for LR-TDDFT
1313
#ifdef USE_LIBXC
14+
/// @brief Calculate the XC kernel using libxc.
1415
void f_xc_libxc(const int& nspin, const double& omega, const double& tpiba, const double* const* const rho_gs, const double* const rho_core = nullptr);
1516
#endif
1617

18+
// Setters and getters for certain components, such as v2rho2, v2rhosigma, v2sigma2, or other custom combinations.
1719
void set_kernel(const std::string& name, const std::vector<double>& vec) { this->kernel_set_[name] = vec; }
1820
void set_kernel(const std::string& name, const std::vector<double>&& vec) { this->kernel_set_[name] = std::move(vec); }
1921
const std::vector<double>& get_kernel(const std::string& name) { return kernel_set_[name]; }

0 commit comments

Comments
 (0)