Skip to content

Commit 84d54d5

Browse files
committed
correct according to integrated test result
1 parent 1b8b622 commit 84d54d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_hamilt_general/module_xc/xc_functional_libxc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ int xc_func_type_classifier(const std::string& xc_func,
7070
})
7171
{
7272
// the libxc standard functional pattern is like:
73-
// "(XC_)?(LDA|GGA|MGGA|HYB_GGA|HYB_MGGA|HYB_LDA)_(X|C|XC|K)_(.*)"
74-
std::regex pattern(R"((XC_)?(LDA|GGA|MGGA|HYB_GGA|HYB_MGGA|HYB_LDA)_(X|C|XC|K)_(.*))");
73+
// "(XC_)?(LDA|GGA|MGGA|HYB_GGA|HYB_MGGA|HYB_LDA)_(X|C|XC|K)(_(.*))?"
74+
std::regex pattern(R"((XC_)?(LDA|GGA|MGGA|HYB_GGA|HYB_MGGA|HYB_LDA)_(X|C|XC|K)(_(.*))?)");
7575
std::smatch match;
7676
if (std::regex_match(xc_func, match, pattern)) {
7777
std::string type = match[2].str();

0 commit comments

Comments
 (0)