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
Méso-NH
Méso-NH code
Commits
4b06fb52
Commit
4b06fb52
authored
2 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 30/11/2022: WATER_SUM is now a PURE function
parent
13585252
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/water_sum.f90
+6
-11
6 additions, 11 deletions
src/MNH/water_sum.f90
with
6 additions
and
11 deletions
src/MNH/water_sum.f90
+
6
−
11
View file @
4b06fb52
!MNH_LIC Copyright 199
4
-20
14
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 199
8
-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 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 version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1.
!MNH_LIC for details. version 1.
!-----------------------------------------------------------------
!-----------------------------------------------------------------
!--------------- special set of characters for RCS information
!-----------------------------------------------------------------
! $Source$ $Revision$
! MASDEV4_7 prep_real 2006/05/18 13:07:25
!-----------------------------------------------------------------
! #####################
! #####################
MODULE
MODI_WATER_SUM
MODULE
MODI_WATER_SUM
! #####################
! #####################
INTERFACE
INTERFACE
FUNCTION
WATER_SUM
(
PR
)
RESULT
(
PSUM_R
)
PURE
FUNCTION
WATER_SUM
(
PR
)
RESULT
(
PSUM_R
)
!
!
REAL
,
DIMENSION
(:,:,:,:),
INTENT
(
IN
)
::
PR
! water species
REAL
,
DIMENSION
(:,:,:,:),
INTENT
(
IN
)
::
PR
! water species
REAL
,
DIMENSION
(
SIZE
(
PR
,
1
),
SIZE
(
PR
,
2
),
SIZE
(
PR
,
3
))
::
PSUM_R
! sum of water species
REAL
,
DIMENSION
(
SIZE
(
PR
,
1
),
SIZE
(
PR
,
2
),
SIZE
(
PR
,
3
))
::
PSUM_R
! sum of water species
...
@@ -20,9 +15,9 @@ REAL,DIMENSION(SIZE(PR,1),SIZE(PR,2),SIZE(PR,3)) :: PSUM_R ! sum of water specie
...
@@ -20,9 +15,9 @@ REAL,DIMENSION(SIZE(PR,1),SIZE(PR,2),SIZE(PR,3)) :: PSUM_R ! sum of water specie
END
FUNCTION
WATER_SUM
END
FUNCTION
WATER_SUM
END
INTERFACE
END
INTERFACE
END
MODULE
MODI_WATER_SUM
END
MODULE
MODI_WATER_SUM
! ######################################
! ######################################
#####
FUNCTION
WATER_SUM
(
PR
)
RESULT
(
PSUM_R
)
PURE
FUNCTION
WATER_SUM
(
PR
)
RESULT
(
PSUM_R
)
! ######################################
! ######################################
#####
!
!
!!**** *WATER_SUM* - summation on the water species (fourth array index)
!!**** *WATER_SUM* - summation on the water species (fourth array index)
!!
!!
...
...
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