Cosine-bell kernel for the Neverworld2 basin: 0.5·(1 + cos(π·min(|x/L|,1))).
Peaks at 1 for x=0, decays smoothly to 0 at |x|=L. Re-derived from
Marques et al. (2022, GMD) “Neverworld2”; MOM6-inspired.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
real(kind=wp),
private,
parameter
::
PI
=
4.0_wp*atan(1.0_wp)
Source Code
pure function nw2_cosbell(x,L)result(c)!! Cosine-bell kernel for the Neverworld2 basin: `0.5·(1 + cos(π·min(|x/L|,1)))`.!! Peaks at 1 for x=0, decays smoothly to 0 at |x|=L. Re-derived from!! Marques et al. (2022, GMD) "Neverworld2"; MOM6-inspired.real(wp),intent(in)::x,Lreal(wp)::creal(wp),parameter::PI=4.0_wp*atan(1.0_wp)c=0.5_wp*(1.0_wp+cos(PI*min(abs(x/L),1.0_wp)))end function nw2_cosbell