Skip to content

Commit c250d96

Browse files
author
titanniya542-spec
committed
fix: correct internal spelling typos
1 parent d5cd2df commit c250d96

6 files changed

Lines changed: 37 additions & 37 deletions

File tree

src/common/include/ExtrusionHardcodedIC.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
end select
193193
#:enddef
194194

195-
#:def HardcodedDellacation()
195+
#:def HardcodedDeallocation()
196196
if (allocated(stored_values)) then
197197
@:DEALLOCATE(stored_values)
198198
@:DEALLOCATE(x_coords)

src/common/m_boundary_common.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ contains
260260
call s_symmetry(q_prim_vf, 3, 1, k, l, pb_in, mv_in, q_T_sf)
261261
case (BC_PERIODIC)
262262
call s_periodic(q_prim_vf, 3, 1, k, l, pb_in, mv_in, q_T_sf)
263-
case (BC_SlIP_WALL)
263+
case (BC_SLIP_WALL)
264264
call s_slip_wall(q_prim_vf, 3, 1, k, l, q_T_sf)
265265
case (BC_NO_SLIP_WALL)
266266
call s_no_slip_wall(q_prim_vf, 3, 1, k, l, q_T_sf)

src/common/m_finite_differences.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ contains
3939

4040
#ifdef MFC_POST_PROCESS
4141
if (allocated(fd_coeff_s)) deallocate (fd_coeff_s)
42-
allocate (fd_coeff_s(-fd_number_in:fd_number_in,lb:lE))
42+
allocate (fd_coeff_s(-fd_number_in:fd_number_in,lB:lE))
4343
#endif
4444

4545
! Computing the 1st order finite-difference coefficients

src/pre_process/m_icpp_patches.fpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ contains
208208
if (1._wp - eta < sgm_eps) patch_id_fp(i, 0, 0) = patch_id
209209
end if
210210
end do
211-
@:HardcodedDellacation()
211+
@:HardcodedDeallocation()
212212
213213
end subroutine s_icpp_line_segment
214214
@@ -272,7 +272,7 @@ contains
272272
end if
273273
end do
274274
end do
275-
@:HardcodedDellacation()
275+
@:HardcodedDeallocation()
276276

277277
end subroutine s_icpp_spiral
278278

@@ -328,7 +328,7 @@ contains
328328
end if
329329
end do
330330
end do
331-
@:HardcodedDellacation()
331+
@:HardcodedDeallocation()
332332
333333
end subroutine s_icpp_circle
334334
@@ -385,7 +385,7 @@ contains
385385
end if
386386
end do
387387
end do
388-
@:HardcodedDellacation()
388+
@:HardcodedDeallocation()
389389

390390
end subroutine s_icpp_varcircle
391391

@@ -448,7 +448,7 @@ contains
448448
end do
449449
end do
450450
end do
451-
@:HardcodedDellacation()
451+
@:HardcodedDeallocation()
452452
453453
end subroutine s_icpp_3dvarcircle
454454
@@ -505,7 +505,7 @@ contains
505505
end if
506506
end do
507507
end do
508-
@:HardcodedDellacation()
508+
@:HardcodedDeallocation()
509509

510510
end subroutine s_icpp_ellipse
511511

@@ -576,7 +576,7 @@ contains
576576
end do
577577
end do
578578
end do
579-
@:HardcodedDellacation()
579+
@:HardcodedDeallocation()
580580
581581
end subroutine s_icpp_ellipsoid
582582
@@ -646,7 +646,7 @@ contains
646646
end if
647647
end do
648648
end do
649-
@:HardcodedDellacation()
649+
@:HardcodedDeallocation()
650650

651651
end subroutine s_icpp_rectangle
652652

@@ -705,7 +705,7 @@ contains
705705
end if
706706
end do
707707
end do
708-
@:HardcodedDellacation()
708+
@:HardcodedDeallocation()
709709

710710
end subroutine s_icpp_sweep_line
711711

@@ -774,7 +774,7 @@ contains
774774
end if
775775
end do
776776
end do
777-
@:HardcodedDellacation()
777+
@:HardcodedDeallocation()
778778
779779
end subroutine s_icpp_2D_TaylorGreen_Vortex
780780
@@ -828,7 +828,7 @@ contains
828828
end if
829829
end if
830830
end do
831-
@:HardcodedDellacation()
831+
@:HardcodedDeallocation()
832832

833833
end subroutine s_icpp_1D_bubble_pulse
834834

@@ -1016,7 +1016,7 @@ contains
10161016
end do
10171017
end do
10181018
end do
1019-
@:HardcodedDellacation()
1019+
@:HardcodedDeallocation()
10201020
10211021
end subroutine s_icpp_sphere
10221022
@@ -1086,7 +1086,7 @@ contains
10861086
end do
10871087
end do
10881088
end do
1089-
@:HardcodedDellacation()
1089+
@:HardcodedDeallocation()
10901090

10911091
end subroutine s_icpp_cuboid
10921092

@@ -1180,7 +1180,7 @@ contains
11801180
end do
11811181
end do
11821182
end do
1183-
@:HardcodedDellacation()
1183+
@:HardcodedDeallocation()
11841184

11851185
end subroutine s_icpp_cylinder
11861186

@@ -1251,7 +1251,7 @@ contains
12511251
end do
12521252
end do
12531253
end do
1254-
@:HardcodedDellacation()
1254+
@:HardcodedDeallocation()
12551255

12561256
end subroutine s_icpp_sweep_plane
12571257

src/simulation/m_collisions.fpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ contains
8181
integer :: i, encoded_pid1, encoded_pid2, xp1, xp2, yp1, yp2, zp1, zp2, pid1, pid2, l ! iterators and patch IDs
8282
real(wp) :: overlap_distance
8383
real(wp), dimension(3) :: normal_vector, centroid_1, centroid_2
84-
real(wp), dimension(3) :: normal_velocity, tangental_vector, normal_force, tangental_force, torque, radial_vector, &
84+
real(wp), dimension(3) :: normal_velocity, tangential_vector, normal_force, tangential_force, torque, radial_vector, &
8585
& rotation_velocity, vel1, vel2
8686
real(wp) :: k, eta, effective_mass ! the spring stiffness and damping coefficient and mass of a specific interaction
8787

@@ -92,7 +92,7 @@ contains
9292
! Iterate over all collisions detected
9393
$:GPU_PARALLEL_LOOP(private='[i, l, encoded_pid1, encoded_pid2, xp1, xp2, yp1, yp2, zp1, zp2, pid1, pid2, centroid_1, &
9494
& centroid_2, normal_vector, overlap_distance, effective_mass, k, eta, normal_velocity, &
95-
& tangental_vector, normal_force, tangental_force, torque, radial_vector, rotation_velocity, vel1, &
95+
& tangential_vector, normal_force, tangential_force, torque, radial_vector, rotation_velocity, vel1, &
9696
& vel2]', copy='[forces, torques]')
9797
do i = 1, num_considered_collisions
9898
encoded_pid1 = collision_lookup(i, 3)
@@ -132,25 +132,25 @@ contains
132132
vel2 = patch_ib(pid2)%vel + rotation_velocity
133133

134134
normal_velocity = dot_product(vel1 - vel2, normal_vector)*normal_vector
135-
tangental_vector = (vel1 - vel2) - normal_velocity
136-
if (.not. f_approx_equal(norm2(tangental_vector), &
137-
& 0._wp)) tangental_vector = tangental_vector/norm2(tangental_vector)
135+
tangential_vector = (vel1 - vel2) - normal_velocity
136+
if (.not. f_approx_equal(norm2(tangential_vector), &
137+
& 0._wp)) tangential_vector = tangential_vector/norm2(tangential_vector)
138138

139139
! compute force and torque
140140
normal_force = -k*overlap_distance*normal_vector - eta*normal_velocity
141-
tangental_force = -ib_coefficient_of_friction*norm2(normal_force)*tangental_vector
142-
call s_cross_product(normal_vector*patch_ib(pid1)%radius, tangental_force, torque)
141+
tangential_force = -ib_coefficient_of_friction*norm2(normal_force)*tangential_vector
142+
call s_cross_product(normal_vector*patch_ib(pid1)%radius, tangential_force, torque)
143143

144144
do l = 1, num_dims
145145
! update the first IB
146146
$:GPU_ATOMIC(atomic='update')
147-
forces(pid1, l) = forces(pid1, l) + (normal_force(l) + tangental_force(l))
147+
forces(pid1, l) = forces(pid1, l) + (normal_force(l) + tangential_force(l))
148148
$:GPU_ATOMIC(atomic='update')
149149
torques(pid1, l) = torques(pid1, l) + torque(l)
150150

151151
! apply equal and opposite force/torque to second IB
152152
$:GPU_ATOMIC(atomic='update')
153-
forces(pid2, l) = forces(pid2, l) - (normal_force(l) + tangental_force(l))
153+
forces(pid2, l) = forces(pid2, l) - (normal_force(l) + tangential_force(l))
154154
$:GPU_ATOMIC(atomic='update')
155155
torques(pid2, l) = torques(pid2, l) + torque(l)*patch_ib(pid2)%radius/patch_ib(pid1)%radius
156156
end do
@@ -166,12 +166,12 @@ contains
166166

167167
real(wp), dimension(num_ibs, 3), intent(inout) :: forces, torques
168168
integer :: patch_id, i, l
169-
real(wp), dimension(3) :: normal_force, tangental_force, normal_vector, normal_velocity, tangental_vector, &
169+
real(wp), dimension(3) :: normal_force, tangential_force, normal_vector, normal_velocity, tangential_vector, &
170170
& collision_location, torque, radial_vector, rotation_velocity, velocity
171171
real(wp) :: k, eta ! the spring stiffness and damping coefficient for a specific IB
172172

173173
$:GPU_PARALLEL_LOOP(private='[patch_id, i, l, collision_location, normal_vector, k, eta, normal_velocity, &
174-
& tangental_vector, normal_force, tangental_force, torque, radial_vector, rotation_velocity, &
174+
& tangential_vector, normal_force, tangential_force, torque, radial_vector, rotation_velocity, &
175175
& velocity]', copy='[forces, torques]', collapse=2)
176176
do patch_id = 1, num_ibs
177177
do i = 1, num_dims*2
@@ -208,16 +208,16 @@ contains
208208

209209
! standard soft-sphere collision with the wall
210210
normal_velocity = dot_product(velocity, normal_vector)*normal_vector
211-
tangental_vector = velocity - normal_velocity
212-
if (.not. f_approx_equal(norm2(tangental_vector), &
213-
& 0._wp)) tangental_vector = tangental_vector/norm2(tangental_vector)
211+
tangential_vector = velocity - normal_velocity
212+
if (.not. f_approx_equal(norm2(tangential_vector), &
213+
& 0._wp)) tangential_vector = tangential_vector/norm2(tangential_vector)
214214
normal_force = -k*wall_overlap_distances(patch_id, i)*normal_vector - eta*normal_velocity
215-
tangental_force = -ib_coefficient_of_friction*norm2(normal_force)*tangental_vector
216-
call s_cross_product(normal_vector*patch_ib(patch_id)%radius, tangental_force, torque)
215+
tangential_force = -ib_coefficient_of_friction*norm2(normal_force)*tangential_vector
216+
call s_cross_product(normal_vector*patch_ib(patch_id)%radius, tangential_force, torque)
217217

218218
do l = 1, num_dims
219219
$:GPU_ATOMIC(atomic='update')
220-
forces(patch_id, l) = forces(patch_id, l) + (normal_force(l) + tangental_force(l))
220+
forces(patch_id, l) = forces(patch_id, l) + (normal_force(l) + tangential_force(l))
221221
$:GPU_ATOMIC(atomic='update')
222222
torques(patch_id, l) = torques(patch_id, l) + torque(l)
223223
end do

toolchain/mfc/test/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,9 @@ def create_input_lagrange(path_test):
479479

480480
def copy_input_lagrange(path_example_input, path_test):
481481
folder_path_dest = path_test + "/input/"
482-
fite_path_dest = folder_path_dest + "lag_bubbles.dat"
482+
file_path_dest = folder_path_dest + "lag_bubbles.dat"
483483
file_path_src = common.MFC_EXAMPLE_DIRPATH + path_example_input + "/input/lag_bubbles.dat"
484484
if not os.path.exists(folder_path_dest):
485485
os.mkdir(folder_path_dest)
486486

487-
shutil.copyfile(file_path_src, fite_path_dest)
487+
shutil.copyfile(file_path_src, file_path_dest)

0 commit comments

Comments
 (0)