Skip to content

Commit d51a55f

Browse files
committed
Fix control flow of occNum_func in rdmft_tools to include default value control flow.
1 parent a94c62d commit d51a55f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/source_lcao/module_rdmft/rdmft_tools.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ double occNum_func(const double eta, const int symbol, const std::string XC_func
180180
} else if ( symbol==4 ) { return alpha*std::pow(eta, alpha-1.0);
181181
} else if ( symbol==5 ) { return 1.0;
182182
}
183+
184+
// default symbol = 0
185+
return eta;
183186

184187
}
185188

0 commit comments

Comments
 (0)