10SUBROUTINE lamcal(overg, guu, guv, gvv)
19 REAL(rprec),
DIMENSION(ns,nznt),
INTENT(in) :: overg, guu, guv, gvv
21 REAL(rprec),
PARAMETER :: damping_fac=2.0_dp
24 REAL(rprec) :: tnn, tnm, tmm, power, pfactor0, pfactor
26 blam(:ns) = sum(guu*overg, dim=2)
27 clam(:ns) = sum(gvv*overg, dim=2)
28 dlam(:ns) = sum(guv*overg, dim=2)
46 power = min(tmm/256.0_dp, 8._dp)
50 IF (m.eq.0 .and. n.eq.0) cycle
64 IF (
faclam(js,n,m,1) .eq. zero)
then
65 faclam(js,n,m,1) = -1.e-10_dp
77 faclam(:ns,0:ntor,0:mpol1,n) =
faclam(:ns,0:ntor,0:mpol1,1)
88 call add_real(
"pfactor0", pfactor0)
90 call add_real_1d(
"blam", ns+1,
blam)
91 call add_real_1d(
"clam", ns+1,
clam)
92 call add_real_1d(
"dlam", ns+1,
dlam)
94 call add_real_3d(
"faclam", ns, ntor+1, mpol,
faclam(:ns,0:ntor,0:mpol1,1))
subroutine lamcal(overg, guu, guv, gvv)
Normalization parameters for .
logical function open_dbg_context(context_name, repetition, id)
check if any output is desired for the current iteration check if the given context should be openend...
real(rprec), dimension(:), allocatable sqrts
sqrt(s), two-dimensional array on full-grid
real(rprec), dimension(:), allocatable dlam
real(rprec), dimension(:,:,:,:), allocatable faclam
real(rprec), dimension(:), allocatable clam
integer num_eqsolve_retries
real(rprec), dimension(:), allocatable blam
integer, dimension(0:mpold), parameter jlam
starting js(m) values for which Lambda is evolved
integer ntmax
number of contributing Fourier basis function (can be 1, 2 or 4); assigned in read_indata()