From d4782e8d6b5024b4df9149614451a4d447d7c50d Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sat, 13 Jun 2026 04:55:57 -0400 Subject: [PATCH] Spellcheck: fix typos / extend allowlist Fix real prose/comment typos flagged by crate-ci/typos (objct -> object, pressue -> pressure in a description string, pbject -> object). Allowlist `Construtor` (correct Portuguese spelling of "constructor" in a Portuguese-language source comment, a false positive). Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- .typos.toml | 2 ++ src/Separation/Flash.jl | 2 +- src/Sources/MaterialSource.jl | 2 +- test/Reactor_tests/CSTR_test.jl | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.typos.toml b/.typos.toml index cabb966..2c931bb 100644 --- a/.typos.toml +++ b/.typos.toml @@ -1,4 +1,6 @@ [default.extend-words] +# Portuguese for "constructor" in Portuguese-language source comments +Construtor = "Construtor" # Julia-specific functions indexin = "indexin" findfirst = "findfirst" diff --git a/src/Separation/Flash.jl b/src/Separation/Flash.jl index d60b291..787df94 100644 --- a/src/Separation/Flash.jl +++ b/src/Separation/Flash.jl @@ -59,7 +59,7 @@ Nᵍ(t), [description = "Total molar holdup in the gas phase (mol)", guess = 10.0] T(t), [description = "Drum temperature (K)"] - P(t), [description = "Drum pressue (Pa)", guess = 1.2 * 101325.0] + P(t), [description = "Drum pressure (Pa)", guess = 1.2 * 101325.0] U(t), [description = "Total internal energy holdup in the tank (L + G) (J)"] V(t), [description = "Total volume in the tank (L + G) (m³)"] diff --git a/src/Sources/MaterialSource.jl b/src/Sources/MaterialSource.jl index d0ded21..dc73ad9 100644 --- a/src/Sources/MaterialSource.jl +++ b/src/Sources/MaterialSource.jl @@ -65,7 +65,7 @@ #Out stuff Out.P ~ P Out.T ~ T - Out.F ~ Fₜ # F is negative as it is leaving the pbject + Out.F ~ Fₜ # F is negative as it is leaving the object Out.H ~ Hⱼ[1] scalarize(Out.z₁ .~ zⱼᵢ[1, :])... scalarize(Out.z₂ .~ zⱼᵢ[2, :])... diff --git a/test/Reactor_tests/CSTR_test.jl b/test/Reactor_tests/CSTR_test.jl index 676d453..6c8ace8 100644 --- a/test/Reactor_tests/CSTR_test.jl +++ b/test/Reactor_tests/CSTR_test.jl @@ -5,7 +5,7 @@ using ProcessSimulator: matcon # Test for CSTR -#---------- Source objct +#---------- Source object substances = ["water", "methanol", "propyleneglycol", "methyloxirane"] idealmodel = ReidIdeal(substances; userlocations = read_reidcp(substances)) PCSAFT_model = PCPSAFT(substances, idealmodel = idealmodel)