Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pentrc/torque.F90
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ subroutine tpsi(tpsi_var,psi,n,l,zi,mi,wdfac,divxfac,electron, &
jbb = (rzphi_f(4) * eqfun_f(1)**2)
dbob = sum( dbob_m_f(:)*expm ) ! dB/B
divx = sum( divx_m_f(:)*expm ) ! nabla.xi_perp
kapx = -0.5*(dbob+divx)
kapx = -(dbob+divx)
cglspl%xs(i) = theta
! include 0.5 correction for quadratic calculations in complex analysis
cglspl%fs(i,1) = rzphi_f(4)*0.5*abs(divx)**2
Expand All @@ -386,8 +386,8 @@ subroutine tpsi(tpsi_var,psi,n,l,zi,mi,wdfac,divxfac,electron, &
call spline_int(cglspl)
! torque
tpsi_var = 2.0*n*xj*kin_f(s)*kin_f(s+2) & ! T = 2nidW
*(0.5*(5.0/3.0)*cglspl%fsi(cglspl%mx,1)&
+ 0.5*(1.0/3.0)*cglspl%fsi(cglspl%mx,2))
*(0.5_r8*(5.0_r8/3.0_r8)*cglspl%fsi(cglspl%mx,1)&
+ 0.5_r8*(1.0_r8/3.0_r8)*cglspl%fsi(cglspl%mx,2))
call spline_dealloc(cglspl)
else
tpsi_var=0
Expand Down
Loading