You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/module_hamilt_general/module_xc/xc_functional_NCLibxc_gga.cpp
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
// This file is for implementing multi-collinear appraoch for GGA functionals.
3
3
// NCLibxc package only completes multi-collienar approach for LDA functionals, because the GGA functionals need gradient that is entangled with ABACUS.
if (PARAM.inp.nspin == 4 && PARAM.inp.multicolin == 1
180
180
&& (func_type == 0 || func_type == 1) )
181
181
{ // noncollinear case added by Xiaoyu Zhang, Peking University, 2024.10.02. multicollinear method for lda Since NCLibxc needs libxc, this part codes will not be used.
182
-
NCLibxc::print_NCLibxc();
183
-
#ifdef _OPENMP
184
-
#pragma omp parallel for reduction(+:etxc) reduction(+:vtxc)
185
-
#endif
186
-
for(int ir = 0;ir<nrxx; ir++)
187
-
{
188
-
if(!use_libxc){
189
-
std::cerr << "Error: Multi-collinear approach does not support running without Libxc." << std::endl;
190
-
std::exit(EXIT_FAILURE);
191
-
}
192
-
double exc = 0.0;
193
-
for(int ipol=0;ipol<4;ipol++){
194
-
v(ipol, ir) = 0;
195
-
}
196
-
NCLibxc nc_libxc;
197
-
std::vector<double> n = {chr->rho[0][ir] + chr->rho_core[ir]};
0 commit comments