From 1c8f92285e3b49438c25b31e6941251eec57cf67 Mon Sep 17 00:00:00 2001 From: Chad Mitchell <46825199+cemitch99@users.noreply.github.com> Date: Fri, 24 Feb 2023 14:40:43 -0800 Subject: [PATCH] Update RFcoef.f90 Corrected lines 111-112 for reconstructing the second on-axis derivative of the longitudinal field, "tmpsumpp". The quantities "Fcoef(j)" and "Fcoef2(j)" should be moved outside the power of 2. --- utilities/RFcoef.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/RFcoef.f90 b/utilities/RFcoef.f90 index 273d079..3c0da02 100644 --- a/utilities/RFcoef.f90 +++ b/utilities/RFcoef.f90 @@ -108,8 +108,8 @@ program rfcoef Fcoef2(j)*sin((j-1)*2*pi*zz/zlen) tmpsump = tmpsump-(j-1)*2*pi*Fcoef(j)*sin((j-1)*2*pi*zz/zlen)/zlen +& (j-1)*2*pi*Fcoef2(j)*cos((j-1)*2*pi*zz/zlen)/zlen - tmpsumpp = tmpsumpp-((j-1)*2*pi*Fcoef(j)/zlen)**2*cos((j-1)*2*pi*zz/zlen) -& - ((j-1)*2*pi*Fcoef2(j)/zlen)**2*sin((j-1)*2*pi*zz/zlen) + tmpsumpp = tmpsumpp-((j-1)*2*pi/zlen)**2*Fcoef(j)*cos((j-1)*2*pi*zz/zlen) -& + ((j-1)*2*pi/zlen)**2*Fcoef2(j)*sin((j-1)*2*pi*zz/zlen) enddo write(8,*)zdata(i),tmpsum,tmpsump,tmpsumpp enddo