Skip to content

Commit

Permalink
Change from degrees to radians and specify the data type for emis
Browse files Browse the repository at this point in the history
  • Loading branch information
jialinl6 committed Aug 29, 2024
1 parent 9e5b4e3 commit a5dafb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/composing_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ using ModelingToolkit:t
@parameters lat = deg2rad(40.0f0) [unit=u"rad"]
@parameters lon = deg2rad(-97.0f0) [unit=u"rad"]
@parameters lev = 1
emis, emis_updater = NEI2016MonthlyEmis("mrggrid_withbeis_withrwc", lon, lat, lev)
emis, emis_updater = NEI2016MonthlyEmis("mrggrid_withbeis_withrwc", lon, lat, lev; dtype=Float64)
model_noemis = couple(SuperFast(),FastJX()) # A model with chemistry and photolysis, but no emissions.
model_withemis = couple(SuperFast(), FastJX(), emis) # The same model with emissions.
Expand Down
10 changes: 5 additions & 5 deletions test/EarthSciData_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ using Test, Dates, ModelingToolkit, DifferentialEquations, EarthSciMLBase, Dynam

@testset "NEI2016Extension3way" begin

@parameters lat = 40
@parameters lon = -97
@parameters lat = deg2rad(40.0f0) [unit=u"rad"]
@parameters lon = deg2rad(-97.0f0) [unit=u"rad"]
@parameters lev = 1
emis = NEI2016MonthlyEmis("mrggrid_withbeis_withrwc", lon, lat, lev; dtype=Float64)
emis, emis_updater = NEI2016MonthlyEmis("mrggrid_withbeis_withrwc", lon, lat, lev)

model_3way = couple(FastJX(), SuperFast(), emis)

Expand All @@ -21,8 +21,8 @@ end

@testset "GEOS-FP" begin

@parameters lat = 40
@parameters lon = -97
@parameters lat = deg2rad(40.0f0) [unit=u"rad"]
@parameters lon = deg2rad(-97.0f0) [unit=u"rad"]
@parameters lev = 1
geosfp = GEOSFP("4x5")

Expand Down

0 comments on commit a5dafb7

Please sign in to comment.