Skip to content

Commit dd037ea

Browse files
committed
docs: Fix a misleading comment.
1 parent 0534ac7 commit dd037ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/solver.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ subroutine gradient(self, dpdx, dpdy, dpdz, pressure)
338338
p_sxy_z => self%backend%allocator%get_block()
339339
dpdz_sxy_z => self%backend%allocator%get_block()
340340

341-
! Staggared der for pressure field in x
342-
! Interpolation for pressure field in x
341+
! Staggared der for pressure field in z
342+
! Interpolation for pressure field in z
343343
call self%backend%tds_solve(p_sxy_z, pressure, self%zdirps, &
344344
self%zdirps%interpl_p2v)
345345
call self%backend%tds_solve(dpdz_sxy_z, pressure, self%zdirps, &
@@ -360,7 +360,7 @@ subroutine gradient(self, dpdx, dpdy, dpdz, pressure)
360360
dpdy_sx_y => self%backend%allocator%get_block()
361361
dpdz_sx_y => self%backend%allocator%get_block()
362362

363-
! similar to the z direction, obtain derivatives in x.
363+
! similar to the z direction, obtain derivatives in y.
364364
call self%backend%tds_solve(p_sx_y, p_sxy_y, self%ydirps, &
365365
self%ydirps%interpl_p2v)
366366
call self%backend%tds_solve(dpdy_sx_y, p_sxy_y, self%ydirps, &
@@ -372,7 +372,7 @@ subroutine gradient(self, dpdx, dpdy, dpdz, pressure)
372372
call self%backend%allocator%release_block(p_sxy_y)
373373
call self%backend%allocator%release_block(dpdz_sxy_y)
374374

375-
! just like in y direction, get some fields for the z derivatives.
375+
! just like in y direction, get some fields for the x derivatives.
376376
p_sx_x => self%backend%allocator%get_block()
377377
dpdy_sx_x => self%backend%allocator%get_block()
378378
dpdz_sx_x => self%backend%allocator%get_block()

0 commit comments

Comments
 (0)