PHYEX
0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
src
phyex
micro
momg.h
Go to the documentation of this file.
1
!MNH_LIC Copyright 1994-2025 CNRS, Meteo-France and Universite Paul Sabatier
2
!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
3
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4
!MNH_LIC for details. version 1.
5
!--------------------------------------------------------------------------
6
! ******* TO BE INCLUDED IN THE *CONTAINS* OF A SUBROUTINE OR FUNCTION ******
7
! => Don't use drHook !!!
8
! "gamma.h" must be included at the same time (MOMG uses GAMMA)
9
!
10
! #############################################################
11
ELEMENTAL
FUNCTION
momg
(PALPHA, PNU, PP)
RESULT
(PMOMG)
12
! #############################################################
13
!
14
!!**** *MOMG* - Moment of the generalized gamma law
15
!!
16
!! PURPOSE
17
!! -------
18
!! Compute: G(p) = Gamma(nu + p/alpha) / Gamma(nu)
19
!! = M(p) * lambda^p
20
!!
21
!! AUTHOR
22
!! ------
23
!! C. Barthe * Laboratoire de l'Atmosphere et des Cyclones *
24
!!
25
!! MODIFICATIONS
26
!! -------------
27
!! Original 26 Nov. 2009
28
!! S. Riette Nov. 2026: elemental function in momg.h, replaces momg.F90
29
!! (MOMG_X0D, MOMG_X1D) and the copies in several routines
30
!
31
!* 0. DECLARATIONS
32
! ------------
33
!
34
IMPLICIT NONE
35
36
!$acc routine seq
37
38
!
39
!* 0.1 declarations of arguments and result
40
!
41
REAL
,
INTENT(IN)
:: palpha
! first shape parameter of the dimensionnal distribution
42
REAL
,
INTENT(IN)
:: pnu
! second shape parameter of the dimensionnal distribution
43
REAL
,
INTENT(IN)
:: pp
! order of the moment
44
REAL
:: pmomg
! result: moment of order PP
45
!
46
!-------------------------------------------------------------------------------
47
!
48
pmomg =
gamma
(pnu+pp/palpha) /
gamma
(pnu)
49
!
50
END FUNCTION
momg
gamma
elemental real function gamma(px)
Definition
gamma.h:14
momg
elemental real function momg(palpha, pnu, pp)
Definition
momg.h:12
Generated by
1.15.0