Retrieve the integration points and weights (gauss points for radial integration)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=2), | intent(in) | :: | var |
selection string: which variable to evaluate |
||
| real, | intent(out), | DIMENSION(:) | :: | s_GP |
output arrays for the gauss points and weights |
|
| real, | intent(out), | DIMENSION(:) | :: | s_w |
output arrays for the gauss points and weights |
|
| real, | intent(out) | :: | t_w |
output array for the fourier interpolation weights (equidistant points) |
||
| real, | intent(out) | :: | z_w |
output array for the fourier interpolation weights (equidistant points) |
SUBROUTINE get_integration_points(var, s_GP, s_w, t_w, z_w) ! MODULES USE MODgvec_base, ONLY: t_base !USE MODgvec_MHD3D_vars, ONLY: X1_base,X2_base,LA_base ! INPUT/OUTPUT VARIABLES ------------------------------------------------------------------------------------------------------! CHARACTER(LEN=2), INTENT(IN) :: var !! selection string: which variable to evaluate REAL, DIMENSION(:), INTENT(OUT) :: s_GP, s_w !! output arrays for the gauss points and weights REAL, INTENT(OUT) :: t_w, z_w !! output array for the fourier interpolation weights (equidistant points) ! LOCAL VARIABLES -------------------------------------------------------------------------------------------------------------! CLASS(t_base), POINTER :: base !! pointer to the base object (X1, X2, LA) ! CODE ------------------------------------------------------------------------------------------------------------------------! CALL select_base(var, base) s_GP = base%s%s_GP s_w = base%s%w_GP t_w = base%f%d_thet z_w = base%f%d_zeta END SUBROUTINE get_integration_points