Skip to content

Commit 436515d

Browse files
committed
Fixed typos
1 parent e1c413f commit 436515d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/atmosphere.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,9 +1722,9 @@ module atmosphere
17221722
# Reset phase change flags
17231723
# Reset condensation yield values
17241724
for g in atmos.gas_names
1725-
fill!(atmo.gas_vmr[g][1:end-1, gas_vmr[g][end]])
1726-
fill!(atmos.gas_sat[g], false)
1727-
fill!(atmos.gas_yield[g], 0.0)
1725+
fill!(atmos.gas_vmr[g][1:end-1], atmos.gas_vmr[g][end])
1726+
fill!(atmos.gas_sat[g], false)
1727+
fill!(atmos.gas_yield[g], 0.0)
17281728
end
17291729

17301730
# Reset water cloud

src/plotting.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ module plotting
6363
end
6464

6565
sat_t = collect(Float64, 1:sat_n) * atmos.gas_dat[c].T_crit / sat_n
66-
@. sat_p = phys.get_Psat(atmos.gas_dat[c], sat_t) * 1e-5
66+
for i in 1:sat_n
67+
sat_p[i] = phys.get_Psat(atmos.gas_dat[c], sat_t[i]) .* 1e-5
68+
end
6769

6870
# plot phase boundary for this condensate
6971
plot!(plt, sat_t, sat_p, lc=atmos.gas_dat[c].plot_color, ls=:dot,

0 commit comments

Comments
 (0)