Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nichollsh committed Sep 12, 2024
1 parent 681f2ec commit f746192
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/atmosphere.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1722,9 +1722,9 @@ module atmosphere
# Reset phase change flags
# Reset condensation yield values
for g in atmos.gas_names
fill!(atmo.gas_vmr[g][1:end-1, gas_vmr[g][end]])
fill!(atmos.gas_sat[g], false)
fill!(atmos.gas_yield[g], 0.0)
fill!(atmos.gas_vmr[g][1:end-1], atmos.gas_vmr[g][end])
fill!(atmos.gas_sat[g], false)
fill!(atmos.gas_yield[g], 0.0)
end

# Reset water cloud
Expand Down
4 changes: 3 additions & 1 deletion src/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ module plotting
end

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

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

0 comments on commit f746192

Please sign in to comment.