Skip to content

Commit a5233e6

Browse files
committed
save
1 parent c9a1e04 commit a5233e6

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

source/module_esolver/esolver_ks_lcao.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464

6565
// test RDMFT
6666
#include "module_rdmft/rdmft.h"
67-
#include "module_elecstate/module_dm/cal_dm_psi.h" //temp ,delete
6867
#include <iostream>
6968

7069
namespace ModuleESolver

source/module_hamilt_general/module_xc/xc_functional.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,6 @@ void XC_Functional::set_xc_type(const std::string xc_func_in)
235235
func_type = 4;
236236
use_libxc = true;
237237
}
238-
// just for test BLYP in libxc, added by jghan, 2024-10-22
239-
else if( xc_func == "BLYP_LIBXC")
240-
{
241-
func_id.push_back(XC_GGA_X_B88); // complete B88_X, id=106
242-
func_id.push_back(XC_GGA_C_LYP); // complete LYP_C, id=131
243-
func_type = 2;
244-
use_libxc = true;
245-
}
246238
else if( xc_func == "BLYP_LR")
247239
{
248240
// BLYP_XC_lr = -BLYP_XC_sr + BLYP_XC, the realization of it is in v_xc_libxc() function, xc_functional_libxc_vxc.cpp

source/module_rdmft/rdmft_tools.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <complex>
2020
#include <fstream>
2121
#include <sstream>
22+
#include <cassert>
2223

2324

2425
namespace rdmft
@@ -168,22 +169,20 @@ double occNum_func(const double eta, const int symbol, const std::string XC_func
168169
// else if( XC_func_rdmft == "muller" ) alpha = 0.5;
169170
// else if( XC_func_rdmft == "power" || XC_func_rdmft == "wp22" || XC_func_rdmft == "cwp22" ) ;
170171
// else alpha = 1.0;
171-
if( XC_func_rdmft == "power" || XC_func_rdmft == "wp22" || XC_func_rdmft == "cwp22" ) { ;
172-
} else if( XC_func_rdmft == "muller" ) { alpha = 0.5;
173-
} else { alpha = 1.0;
174-
}
172+
if( XC_func_rdmft == "power" || XC_func_rdmft == "wp22" || XC_func_rdmft == "cwp22" ) { ; }
173+
else if( XC_func_rdmft == "muller" ) { alpha = 0.5; }
174+
else { alpha = 1.0; }
175+
176+
assert(symbol <= 5);
175177

176178
if( symbol==0 ) { return eta;
177179
} else if ( symbol==1 ) { return 0.5*eta;
178180
} else if ( symbol==2 ) { return std::pow(eta, alpha);
179181
} else if ( symbol==3 ) { return 0.5*std::pow(eta, alpha);
180182
} else if ( symbol==4 ) { return alpha*std::pow(eta, alpha-1.0);
181183
} else if ( symbol==5 ) { return 1.0;
182-
} else
183-
{
184-
std::cout << "\n!!!!!!\nThere may be some errors when calling wg_fun()\n!!!!!!\n";
185-
return eta ;
186184
}
185+
187186
}
188187

189188

0 commit comments

Comments
 (0)