From 976ba7a64a6836cea50550639c93e4353657dc20 Mon Sep 17 00:00:00 2001 From: Michael Reed <18372368+chakravala@users.noreply.github.com> Date: Sun, 17 Apr 2022 18:14:30 -0400 Subject: [PATCH] fixed minor EntropySystem constructor issue --- Project.toml | 2 +- src/UnitSystems.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index c7be438..066e040 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/UnitSystems.jl b/src/UnitSystems.jl index 8adab6d..0ee2f90 100644 --- a/src/UnitSystems.jl +++ b/src/UnitSystems.jl @@ -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,