Skip to content

Commit 4a37fd9

Browse files
committed
fix doublet sign
1 parent 9eca01a commit 4a37fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FLOWPanel_elements_fmm.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function compute_source_dipole(::FastMultipole.DerivativesSwitch{PS,VS,GS}, targ
359359
tan_term = atan(num, den)
360360
end
361361

362-
potential = -strength[1] * tan_term
362+
potential = strength[1] * tan_term
363363

364364
velocity = zero(FastMultipole.StaticArrays.SVector{3,TF})
365365
if VS
@@ -437,7 +437,7 @@ function compute_source_dipole(::FastMultipole.DerivativesSwitch{PS,VS,GS}, targ
437437
potential = zero(TF)
438438
if PS# && !isinf(mi)
439439
potential += strength[1] * (((target_Rx - vx_i) * dy - (target_Ry - vy_i) * dx) / ds * log_term + target_Rz * tan_term)
440-
potential -= strength[2] * tan_term
440+
potential += strength[2] * tan_term
441441
end
442442

443443
velocity = zero(FastMultipole.StaticArrays.SVector{3,TF})

0 commit comments

Comments
 (0)