Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
c8e2febd
Commit
c8e2febd
authored
2 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 22/06/2022: gamma functions are now declared PURE
parent
8a4dc041
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/gamma.f90
+11
-9
11 additions, 9 deletions
src/MNH/gamma.f90
with
11 additions
and
9 deletions
src/MNH/gamma.f90
+
11
−
9
View file @
c8e2febd
!MNH_LIC Copyright 1995-20
19
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 1995-20
22
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1.
...
...
@@ -9,13 +9,13 @@
!
INTERFACE
GAMMA
!
FUNCTION
GAMMA_X0D
(
PX
)
RESULT
(
PGAMMA
)
PURE
FUNCTION
GAMMA_X0D
(
PX
)
RESULT
(
PGAMMA
)
!$acc routine seq
REAL
,
INTENT
(
IN
)
::
PX
REAL
::
PGAMMA
END
FUNCTION
GAMMA_X0D
!
FUNCTION
GAMMA_X1D
(
PX
)
RESULT
(
PGAMMA
)
PURE
FUNCTION
GAMMA_X1D
(
PX
)
RESULT
(
PGAMMA
)
REAL
,
DIMENSION
(:),
INTENT
(
IN
)
::
PX
REAL
,
DIMENSION
(
SIZE
(
PX
))
::
PGAMMA
END
FUNCTION
GAMMA_X1D
...
...
@@ -30,9 +30,9 @@ END MODULE MODI_GAMMA
!* 1. FUNCTION GAMMA FOR SCALAR VARIABLE
!
!
! ######################################
FUNCTION
GAMMA_X0D
(
PX
)
RESULT
(
PGAMMA
)
! ######################################
! ######################################
#####
PURE
FUNCTION
GAMMA_X0D
(
PX
)
RESULT
(
PGAMMA
)
! ######################################
#####
!
!
!!**** *GAMMA * - Gamma function
...
...
@@ -67,6 +67,7 @@ END MODULE MODI_GAMMA
!! -------------
!! Original 7/11/95
!! C. Barthe 9/11/09 add a function for 1D arguments
! P. Wautelet 22/06/2022: GAMMA_X0D is now declared PURE
!
!* 0. DECLARATIONS
! ------------
...
...
@@ -153,9 +154,9 @@ END FUNCTION GAMMA_X0D
!* 1. FUNCTION GAMMA FOR 1D ARRAY
!
!
! ######################################
FUNCTION
GAMMA_X1D
(
PX
)
RESULT
(
PGAMMA
)
! ######################################
! ######################################
#####
PURE
FUNCTION
GAMMA_X1D
(
PX
)
RESULT
(
PGAMMA
)
! ######################################
#####
!
!
!!**** *GAMMA * - Gamma function
...
...
@@ -189,6 +190,7 @@ END FUNCTION GAMMA_X0D
!! MODIFICATIONS
!! -------------
!! Original 7/11/95
! P. Wautelet 22/06/2022: GAMMA_X1D is now declared PURE
!!
!-------------------------------------------------------------------------------
!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment