Skip to content

Improve performance in frequently called weighting functions#221

Draft
jcurtis2 wants to merge 2 commits into
masterfrom
perf_weighting
Draft

Improve performance in frequently called weighting functions#221
jcurtis2 wants to merge 2 commits into
masterfrom
perf_weighting

Conversation

@jcurtis2
Copy link
Copy Markdown
Collaborator

@jcurtis2 jcurtis2 commented May 6, 2026

  • Added fast_pow to handle common exponents in aero_weight_num_conc_at_radius
  • Removed array in aero_weight_array_num_conc_at_radius to avoid allocation costs

Urban plume scenario on Keeling saw a CPU reduction from 53.4s to 37.4s (with MOSAIC). Removing chemistry for a coagulation only case, this translates to approximately a 2x speedup.

@jcurtis2 jcurtis2 self-assigned this May 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

❌ Patch coverage is 70.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.40%. Comparing base (e6356e7) to head (a33eb76).

Files with missing lines Patch % Lines
src/util.F90 62.50% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #221      +/-   ##
==========================================
- Coverage   77.45%   77.40%   -0.05%     
==========================================
  Files          55       55              
  Lines        9420     9435      +15     
==========================================
+ Hits         7296     7303       +7     
- Misses       2124     2132       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant