atomec-project / atoMEC

Python-based average-atom code for simulations of high energy density phenomena such as in warm dense matter.
https://atomec-project.github.io/atoMEC/
BSD 3-Clause "New" or "Revised" License
17 stars 12 forks source link

Speed up calculation of Hartree potential #198

Closed timcallow closed 1 year ago

timcallow commented 1 year ago

Significant speed-up for Hartree potential achieved by replacing expensive calls to np.where and np.trapz

codecov[bot] commented 1 year ago

Codecov Report

Merging #198 (7c7ef20) into develop (fa60b2b) will decrease coverage by 0.03%. The diff coverage is 83.33%.

@@             Coverage Diff             @@
##           develop     #198      +/-   ##
===========================================
- Coverage    91.72%   91.70%   -0.03%     
===========================================
  Files           14       14              
  Lines         2406     2411       +5     
===========================================
+ Hits          2207     2211       +4     
- Misses         199      200       +1     
Files Changed Coverage Δ
atoMEC/staticKS.py 95.43% <83.33%> (-0.14%) :arrow_down: