CliMA / Thermodynamics.jl

A package containing a library of moist thermodynamic relations.
https://clima.github.io/Thermodynamics.jl/dev/
Apache License 2.0
61 stars 2 forks source link

Add conversion methods and other fixes for Dual numbers #200

Closed dennisYatunin closed 7 months ago

dennisYatunin commented 7 months ago

This is a followup to #199, with some additional fixes for supporting Dual numbers in ClimaAtmos. Specifically, this PR adds methods for converting a ThermodynamicState{<:AbstractFloat} to a ThermodynamicState{<:Dual}, and it removes the requirement that the solution tolerance of saturation adjustment must have the same type as the input quantities. It also fixes a typo in the PhaseDry_ρT constructor and bumps the minor version number.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c54e008) 90.98% compared to head (bc86a88) 91.00%.

Files Patch % Lines
src/states.jl 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #200 +/- ## ========================================== + Coverage 90.98% 91.00% +0.02% ========================================== Files 10 10 Lines 1176 1179 +3 ========================================== + Hits 1070 1073 +3 Misses 106 106 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.