Skip to content

Commit

Permalink
FastJX-GEOSFP coupling: remove redundant deg2rad conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
ctessum committed Sep 5, 2024
1 parent 742a535 commit b711e08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/EarthSciDataExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ end

function EarthSciMLBase.couple2(f::GasChem.FastJXCoupler, g::EarthSciData.GEOSFPCoupler)
f, g = f.sys, g.sys

f = param_to_var(f, :T, :lat, :long)
ConnectorSystem([
f.T ~ g.I3₊T,
f.lat ~ deg2rad(g.lat),
f.long ~ deg2rad(g.lon),
f.lat ~ g.lat,
f.long ~ g.lon,
], f, g)
end

end
end

0 comments on commit b711e08

Please sign in to comment.