Skip to content

Commit 6d0e31d

Browse files
committed
fix exx error due to nrxx>0
1 parent 44bbd96 commit 6d0e31d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/source_hamilt/module_xc/xc_functional_libxc_tools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ std::vector<double> XC_Functional_Libxc::cal_sgn(
134134
const std::vector<double> &rho,
135135
const std::vector<double> &sigma)
136136
{
137-
assert(nrxx>0);
137+
//assert(nrxx>0); // adding this once will cause error in examples
138138
std::vector<double> sgn(nrxx*nspin, 1.0);
139139
// in the case of GGA correlation for polarized case,
140140
// a cutoff for grho is required to ensure that libxc gives reasonable results

0 commit comments

Comments
 (0)