Skip to content
Snippets Groups Projects
Commit b44f5170 authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann :seedling:
Browse files

compute dvpar4 coeff

parent a4da873e
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,28 @@ SUBROUTINE build_dnjs_table ...@@ -45,6 +45,28 @@ SUBROUTINE build_dnjs_table
ENDDO ENDDO
ENDDO ENDDO
END SUBROUTINE build_dnjs_table END SUBROUTINE build_dnjs_table
!******************************************************************************!
!!!!!!! Build the fourth derivative Hermite coefficient table
!******************************************************************************!
SUBROUTINE build_dv4Hp_table
USE array, ONLY: dv4_Hp_coeff
USE grid, ONLY: pmaxi, pmaxe
IMPLICIT NONE
INTEGER :: p_, pmax_
pmax_ = MAX(pmaxi,pmaxe)
DO p_ = -2,pmax_
if (p_ < 4) THEN
dv4_Hp_coeff(p_) = 0._dp
ELSE
dv4_Hp_coeff(p_) = 4_dp*SQRT(REAL((p_-3)*(p_-2)*(p_-1)*p_,dp))
ENDIF
ENDDO
!we scale it w.r.t. to the max degree since
!D_4^{v}\sim (\Delta v/2)^4 and \Delta v \sim 2pi/kvpar = pi/\sqrt{2P}
! dv4_Hp_coeff = dv4_Hp_coeff*(1._dp/2._dp/SQRT(REAL(pmax_,dp)))**4
dv4_Hp_coeff = dv4_Hp_coeff*(PI/2._dp/SQRT(2._dp*REAL(pmax_,dp)))**4
END SUBROUTINE build_dv4Hp_table
!******************************************************************************! !******************************************************************************!
!******************************************************************************! !******************************************************************************!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment