Skip to content

Improve performance in frequently called weighting functions#221

Merged
jcurtis2 merged 4 commits into
masterfrom
perf_weighting
Jun 11, 2026
Merged

Improve performance in frequently called weighting functions#221
jcurtis2 merged 4 commits into
masterfrom
perf_weighting

Conversation

@jcurtis2

@jcurtis2 jcurtis2 commented May 6, 2026

Copy link
Copy Markdown
Collaborator
  • 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

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

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

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 Harness.
📢 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.

@jcurtis2 jcurtis2 marked this pull request as ready for review June 11, 2026 19:39
@jcurtis2 jcurtis2 merged commit 10643ec into master Jun 11, 2026
11 checks passed
@jcurtis2 jcurtis2 deleted the perf_weighting branch June 11, 2026 19:52
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.

2 participants