Skip to content

Commit

Permalink
fixed output of domain volume in overview
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Sep 4, 2020
1 parent ef29590 commit 9bfcc4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Units.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Angs3tocm3 = 1e24
Angs3toL = 1e27
Angs3tocm3permol = mole/Angs3tocm3
Angs3toLpermol = mole*Angs3toL
Angs3toLpermol = mole/Angs3toL
SitesperAngs3tomolperL = Angs3toL/mole
end
units = Units()
Expand Down
7 changes: 2 additions & 5 deletions src/tools/overview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@with_kw_noshow mutable struct Overview
R :: Result
domain_volume :: Float64 = 0.
domain_molar_volume :: Float64 = 0.
density :: Density = Density()
solvent_molar_volume :: Float64 = 0.
Expand Down Expand Up @@ -33,8 +32,7 @@ function Base.show( io :: IO, ov :: Overview )
println(" Simulation molar volume: $(ov.solute_molar_volume) cm³ mol⁻¹")
println()
println(" Using with dbulk=$(ov.R.dbulk) Å: ")
println(" Volume of the solute domain: $(ov.domain_volume) cm³ mol⁻¹")
println(" Molar volume of the solute domain: $(ov.domain_molar_volume) L mol ⁻¹")
println(" Molar volume of the solute domain: $(ov.domain_molar_volume) cm³ mol⁻¹")
println()
println(bars)
end
Expand All @@ -43,8 +41,7 @@ function overview(R :: Result)

ov = Overview(R = R)

ov.domain_volume = R.volume.domain * units.Angs3tocm3permol
ov.domain_molar_volume = R.volume.domain * units.Angs3toLpermol
ov.domain_molar_volume = R.volume.domain * units.Angs3tocm3permol

ov.density.solute = R.density.solute * units.SitesperAngs3tomolperL
ov.density.solvent = R.density.solvent * units.SitesperAngs3tomolperL
Expand Down

0 comments on commit 9bfcc4f

Please sign in to comment.