Skip to content

Commit d42429c

Browse files
committed
refactor and clean up
1 parent 76d6f3f commit d42429c

File tree

11 files changed

+29
-53
lines changed

11 files changed

+29
-53
lines changed

examples/1D_exp_tube_phasechange/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
# save frequency = SF + 1 (because the initial state, 0.dat, is also saved)
8585
SF = 200
8686

87-
# making Nt divisible By SF
87+
# making Nt divisible by SF
8888
tendA = (xe - xb) / ss * 0.25
8989

9090
# 1 - ensure NtA is sufficient to go a little beyond tendA

examples/2D_axisym_shockwatercavity/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115

116116
# I calculating tend twice; first is an estimate, second is
117117
# the actual value used. This is because I am getting errors in the
118-
# post process part every time I approximate the actual Nt By an integer
118+
# post process part every time I approximate the actual Nt by an integer
119119
# number (think of a smarter way).
120120

121121
# dimensionless time
@@ -135,7 +135,7 @@
135135
# Save Frequency. Note that the number of autosaves will be SF + 1, as th IC (0.dat) is also saved
136136
SF = 400
137137

138-
## making Nt divisible By SF
138+
## making Nt divisible by SF
139139
# 1 - ensure NtA goes slightly beyond tendA
140140
NtA = int(tendA // dt + 1)
141141

examples/2D_laplace_pressure_jump/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
# This case file demonstrates the Laplace pressure jump of a water droplet in air. The laplace pressure jump
3-
# in 2D is given By delta = sigma / r where delta is the pressure jump, sigma is the surface tension coefficient,
3+
# in 2D is given by delta = sigma / r where delta is the pressure jump, sigma is the surface tension coefficient,
44
# and r is the radius of the droplet. The results of this simulation agree with theory to well within 1%
55
# relative error.
66

examples/2D_phasechange_bubble/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
# Critical time-step
151151
tc = 0.915 * R0 * math.sqrt(rho0wl1 / p01)
152152

153-
# making Nt divisible By SF
153+
# making Nt divisible by SF
154154
# tendA = 1.5 * tc
155155
tend = 1.2 * tc
156156

examples/2D_phasechange_bubble/casefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
# Critical time-step
151151
tc = 0.915 * R0 * math.sqrt(rho0wl1 / p01)
152152

153-
# making Nt divisible By SF
153+
# making Nt divisible by SF
154154
# tendA = 1.5 * tc
155155
tend = 1.2 * tc
156156

examples/2D_shocktube_phasechange/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
# save frequency = SF + 1 (because the initial state, 0.dat, is also saved)
139139
SF = 40
140140

141-
# making Nt divisible By SF
141+
# making Nt divisible by SF
142142
tendA = (xe - xb) / ss * 5 / 24
143143

144144
# 1 - ensure NtA is sufficient to go a little beyond tendA

examples/3D_phasechange_bubble/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
# Critical time-step
151151
tc = 0.915 * R0 * math.sqrt(rho0wl1 / p01)
152152

153-
# making Nt divisible By SF
153+
# making Nt divisible by SF
154154
# tendA = 1.5 * tc
155155
tend = 1.2 * tc
156156

examples/3D_shockdroplet/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125

126126
# I calculating tend twice; first is an estimate, second is
127127
# the actual value used. This is because I am getting errors in the
128-
# post process part every time I approximate the actual Nt By an integer
128+
# post process part every time I approximate the actual Nt by an integer
129129
# number (think of a smarter way).
130130

131131
# dimensionless time
@@ -145,7 +145,7 @@
145145
# Save Frequency. Note that the number of autosaves will be SF + 1, as th IC (0.dat) is also saved
146146
SF = 400
147147

148-
## making Nt divisible By SF
148+
## making Nt divisible by SF
149149
# 1 - ensure NtA goes slightly beyond tendA
150150
NtA = int(tendA // dt + 1)
151151

examples/scaling/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]:
179179

180180
# I calculate tend twice; first is an estimate, second is
181181
# the actual value used. This is because I am getting errors in the
182-
# post process part every time I approximate the actual Nt By an integer
182+
# post process part every time I approximate the actual Nt by an integer
183183
# number (think of a smarter way).
184184

185185
# dimensionless time
@@ -197,7 +197,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]:
197197
# Save Frequency. Note that the number of autosaves will be SF + 1, as th IC (0.dat) is also saved
198198
SF = 400
199199

200-
## making Nt divisible By SF
200+
## making Nt divisible by SF
201201
# 1 - ensure NtA goes slightly beyond tendA
202202
NtA = int(tendA // dt + 1)
203203

src/common/m_variables_conversion.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ contains
15891589
end subroutine s_finalize_variables_conversion_module
15901590

15911591
#ifndef MFC_PRE_PROCESS
1592-
subroutine s_compute_speed_of_sound(pres, rho, gamma, pi_inf, H, adv, vel_sum, c_c, c)
1592+
pure subroutine s_compute_speed_of_sound(pres, rho, gamma, pi_inf, H, adv, vel_sum, c_c, c)
15931593
#ifdef _CRAYFTN
15941594
!DIR$ INLINEALWAYS s_compute_speed_of_sound
15951595
#else

0 commit comments

Comments
 (0)