Skip to content

Commit

Permalink
fixed minor EntropySystem constructor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Apr 17, 2022
1 parent e61726a commit 976ba7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "UnitSystems"
uuid = "3a241a3c-2137-41aa-af5e-1388e404ca09"
authors = ["Michael Reed"]
version = "0.3.3"
version = "0.3.4"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
4 changes: 2 additions & 2 deletions src/UnitSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ However, most other constructors for `UnitSystem` derivations are based on inter
This means `EntropySystem` also constructs the examples listed there.
"""
function EntropySystem(u,t,l,m,θ=one(u)); tt = t*t; e = m*l*l/tt
EntropySystem(u,t,l,m,θ,permeability(u)/(m*l),molarmass(u)/m,gravity(u)*tt/l,m*l*l/(t*t))
EntropySystem(u,t,l,m,θ,permeability(u)/(m*l),molarmass(u)/m,gravity(u),m*l*l/(t*t))
end
function EntropySystem(u,t,l,m,θ,μ0,Mu=molarmass(u)/m,g0=gravity(u)*(t*t/l),e=m*l*l/(t*t),λ=one(u),αL=one(u))
function EntropySystem(u,t,l,m,θ,μ0,Mu=molarmass(u)/m,g0=gravity(u),e=m*l*l/(t*t),λ=one(u),αL=one(u))
UnitSystem(
boltzmann(u)*θ/e/g0,
planckreduced(u)/t/e/g0,
Expand Down

0 comments on commit 976ba7a

Please sign in to comment.