You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Computing saturation vapor pressure includes both calls to exp and ^here, and based on looking at flame graphs in ClimaAtmos, it seems that this is actually pretty expensive.
The text was updated successfully, but these errors were encountered:
123: Use p_vap_sat func in q_vap_sat r=charleskawczynski a=charleskawczynski
This PR is a small refactoring step towards #119. This PR:
- Slightly generalizes `saturation_vapor_pressure` to allow users to provide a phase partition
- `saturation_vapor_pressure` is then called inside `q_vap_saturation`, whose contents were moved over
This mostly just deletes duplicate code. There is a bit of algebraic difference between the two, but I've confirmed that they're equivalent.
Co-authored-by: Charles Kawczynski <[email protected]>
124: Reduce number of ^ calls r=charleskawczynski a=charleskawczynski
This PR
- Adds a few methods that allow us to compute saturation vapor pressure ahead of time
- Reduce the number of saturation vapor pressure calls using these new methods
- a step towards #119
Co-authored-by: Charles Kawczynski <[email protected]>
Computing saturation vapor pressure includes both calls to
exp
and^
here, and based on looking at flame graphs in ClimaAtmos, it seems that this is actually pretty expensive.The text was updated successfully, but these errors were encountered: