Skip to content

Commit 719ef93

Browse files
committed
more fixes
1 parent 56ed664 commit 719ef93

8 files changed

Lines changed: 72 additions & 14 deletions

File tree

.codespell-ignore-words

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
blocs
2+
bloc
3+
inout
4+
als
5+
truns
6+
pres
7+
dum
8+
fom
9+
fromm
10+
thi
11+
nd
12+
ue
13+
bion
14+
aas
15+
checkin
16+
indx
17+
ans
18+
precesses
19+
fpr
20+
bu
21+
delt

.codespellrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[codespell]
2+
skip = .git,*.bib,*.ps,*.pdf
3+
ignore-words = .codespell-ignore-words
4+
5+

.github/workflows/codespell.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: codespell
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
codespell:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: '3.14'
22+
23+
- name: Install codespell
24+
run: pip install codespell jupyter nbconvert
25+
26+
- name: Preprocess notebooks
27+
run: for i in $(find . -name "*.ipynb"); do jupyter nbconvert --clear-output --inplace $i; done
28+
29+
- name: Run codespell
30+
run: |
31+
codespell content
32+

basic_numerics/FFT/fft_simple_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def plot_FFT(xx, xmax, f, outfile):
8282
fk_r = fk.real
8383
fk_i = fk.imag
8484

85-
# the fftfreq returns the postive and negative (and 0) frequencies
85+
# the fftfreq returns the positive and negative (and 0) frequencies
8686
# the newer versions of numpy (>=1.8) have an rfftfreq() function
8787
# that really does what we want -- we'll use that here.
8888
k = np.fft.rfftfreq(npts)

burgers/burgers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, nx, ng, xmin=0.0, xmax=1.0, bc="outflow"):
2929

3030
self.bc=bc
3131

32-
# python is zero-based. Make easy intergers to know where the
32+
# python is zero-based. Make easy integers to know where the
3333
# real data lives
3434
self.ilo = ng
3535
self.ihi = ng+nx-1

compressible/MOL/Fortran/riemann.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
! Fry: Fryxell et al. 2000, ApJS, 131, 273.
3434
!
3535
! Toro: Toro 1999, ``Riemann Solvers and Numerical Methods for Fluid
36-
! Dynamcs: A Practical Introduction, 2nd Ed.'', Springer-Verlag
36+
! Dynamics: A Practical Introduction, 2nd Ed.'', Springer-Verlag
3737
!
3838

3939
module riemann_module
@@ -139,7 +139,7 @@ subroutine riemann(gamma, &
139139

140140

141141
! begin the secant iteration -- see CG Eq. 17 for details. We will
142-
! continue to interate for convergence until the error falls below
142+
! continue to iterate for convergence until the error falls below
143143
! tol (in which case, things are good), or we hit nriem iterations
144144
! (in which case we have a problem, and we spit out an error).
145145
has_converged = .false.
@@ -222,7 +222,7 @@ subroutine riemann(gamma, &
222222

223223
ustar_sgn = sign(1.d0, ustar)
224224

225-
! decide which state is located at the zone iterface based on
225+
! decide which state is located at the zone interface based on
226226
! the values of the wave speeds. This is just saying that if
227227
! ustar > 0, then the state is U_L. if ustar < 0, then the
228228
! state on the axis is U_R.

compressible/MOL/python/riemann.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
Fry: Fryxell et al. 2000, ApJS, 131, 273.
3535
3636
Toro: Toro 1999, ``Riemann Solvers and Numerical Methods for Fluid
37-
Dynamcs: A Practical Introduction, 2nd Ed.'', Springer-Verlag
37+
Dynamcis: A Practical Introduction, 2nd Ed.'', Springer-Verlag
3838
"""
3939

4040
import numpy as np
@@ -107,7 +107,7 @@ def riemann(q_l, q_r, gamma):
107107
pstar2 = max(smallp, pstar2)
108108

109109
# begin the secant iteration -- see CG Eq. 17 for details. We will
110-
# continue to interate for convergence until the error falls below
110+
# continue to iterate for convergence until the error falls below
111111
# tol (in which case, things are good), or we hit nriem iterations
112112
# (in which case we have a problem, and we spit out an error).
113113
has_converged = False
@@ -188,7 +188,7 @@ def riemann(q_l, q_r, gamma):
188188
else:
189189
ustar_sgn = 1.0
190190

191-
# decide which state is located at the zone iterface based on
191+
# decide which state is located at the zone interface based on
192192
# the values of the wave speeds. This is just saying that if
193193
# ustar > 0, then the state is U_L. if ustar < 0, then the
194194
# state on the axis is U_R.

compressible/euler-generaleos.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
},
289289
"outputs": [],
290290
"source": [
291-
"# we use the helper rountines above to find the orthogonal left and right eigenvectors\n",
291+
"# we use the helper routines above to find the orthogonal left and right eigenvectors\n",
292292
"eigen = eigensystem(A)"
293293
]
294294
},
@@ -488,7 +488,7 @@
488488
"source": [
489489
"## $\\beta$'s and final update\n",
490490
"\n",
491-
"The final interface state is writen by projecting the jump in primitive variables, $\\Delta q$, into characteristic variables (as $l \\cdot \\Delta q$), and then adding up all the jumps that reach the interface.\n",
491+
"The final interface state is written by projecting the jump in primitive variables, $\\Delta q$, into characteristic variables (as $l \\cdot \\Delta q$), and then adding up all the jumps that reach the interface.\n",
492492
"\n",
493493
"The convention is to write $\\beta^\\nu = l^\\nu \\cdot \\Delta q$, where the superscript identifies which eigenvalue (and corresponding eigenvectors) we are considering. Note, that often a reference state is used, and the jump, $\\Delta q$, will be the difference with respect to this reference state. For PPM, the $\\Delta q$ will take the form of the integral under the parabola over the range that each wave can reach.\n",
494494
"\n",
@@ -877,7 +877,7 @@
877877
},
878878
"outputs": [],
879879
"source": [
880-
"# we use the helper rountines above to find the orthogonal left and right eigenvectors\n",
880+
"# we use the helper routines above to find the orthogonal left and right eigenvectors\n",
881881
"eigen = eigensystem(A)"
882882
]
883883
},
@@ -1544,7 +1544,7 @@
15441544
},
15451545
"outputs": [],
15461546
"source": [
1547-
"# we use the helper rountines above to find the orthogonal left and right eigenvectors\n",
1547+
"# we use the helper routines above to find the orthogonal left and right eigenvectors\n",
15481548
"eigen = eigensystem(A, suba=cg, subb=sqrt(cc))"
15491549
]
15501550
},
@@ -2092,7 +2092,7 @@
20922092
"source": [
20932093
"# Gray FLD Radiation Euler Equations with $(\\gamma_e)$\n",
20942094
"\n",
2095-
"We now look at the same system with a different auxillary thermodynamic variable (as we did with pure hydro), using $q = (\\tau, u, p, {\\gamma_e}_g, E_r)^\\intercal$:\n",
2095+
"We now look at the same system with a different auxiliary thermodynamic variable (as we did with pure hydro), using $q = (\\tau, u, p, {\\gamma_e}_g, E_r)^\\intercal$:\n",
20962096
"\\begin{align}\n",
20972097
"\\frac{\\partial \\tau}{\\partial t} &= -u\\frac{\\partial \\tau}{\\partial x} + \\tau \\frac{\\partial u}{\\partial x} \\\\\n",
20982098
"\\frac{\\partial u}{\\partial t} &= -u \\frac{\\partial u}{\\partial x} - \\tau \\frac{\\partial p}{\\partial x}\n",
@@ -2295,7 +2295,7 @@
22952295
},
22962296
"outputs": [],
22972297
"source": [
2298-
"# we use the helper rountines above to find the orthogonal left and right eigenvectors\n",
2298+
"# we use the helper routines above to find the orthogonal left and right eigenvectors\n",
22992299
"eigen = eigensystem(A, suba=cg, subb=sqrt(cc))"
23002300
]
23012301
},

0 commit comments

Comments
 (0)