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
5b0d507f
Commit
5b0d507f
authored
3 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 31/01/2022: OpenACC: possibility to release several real arrays in one call
parent
9d1d6ed3
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/mode_mnh_zwork.f90
+38
-3
38 additions, 3 deletions
src/MNH/mode_mnh_zwork.f90
with
38 additions
and
3 deletions
src/MNH/mode_mnh_zwork.f90
+
38
−
3
View file @
5b0d507f
...
...
@@ -169,6 +169,7 @@ MODULE MODE_MNH_ZWORK
INTERFACE
MNH_RELEASE_FLAT
MODULE
PROCEDURE
::
MNH_REL_ZT1DFLAT
MODULE
PROCEDURE
::
MNH_REL_ZT1DFLAT_N0
END
INTERFACE
MNH_RELEASE_FLAT
CONTAINS
...
...
@@ -1503,19 +1504,19 @@ CONTAINS
END
FUNCTION
MNH_GET_ZT1DFLAT
SUBROUTINE
MNH_REL_ZT1DFLAT
(
KINDEX
)
SUBROUTINE
MNH_REL_ZT1DFLAT
_N0
(
KINDEX
)
USE
MODD_PARAMETERS
,
ONLY
:
NNEGUNDEF
IMPLICIT
NONE
INTEGER
::
KINDEX
INTEGER
,
INTENT
(
IN
)
::
KINDEX
NCALL_MNH_REL_ZT1DFLAT
=
NCALL_MNH_REL_ZT1DFLAT
+
1
!Release only if last block
IF
(
KINDEX
/
=
NT1DFLAT_TOP_R
)
&
call
Print_msg
(
NVERB_FATAL
,
'GEN'
,
'MNH_REL_ZT1DFLAT'
,
'trying to release block that is not the last one'
)
call
Print_msg
(
NVERB_FATAL
,
'GEN'
,
'MNH_REL_ZT1DFLAT
_N0
'
,
'trying to release block that is not the last one'
)
NTOT_RELSIZE_ZT1DFLAT
=
NTOT_RELSIZE_ZT1DFLAT
+
NT1DFLAT_SIZE_R
(
KINDEX
)
...
...
@@ -1525,6 +1526,40 @@ CONTAINS
NT1DFLAT_POOL_R
(
KINDEX
)
=
NNEGUNDEF
NT1DFLAT_SIZE_R
(
KINDEX
)
=
NNEGUNDEF
END
SUBROUTINE
MNH_REL_ZT1DFLAT_N0
SUBROUTINE
MNH_REL_ZT1DFLAT
(
KTEMP1
,
KTEMP2
,
KTEMP3
,
KTEMP4
,
KTEMP5
,
KTEMP6
,
KTEMP7
,
KTEMP8
,
KTEMP9
,
KTEMP10
,
&
KTEMP11
,
KTEMP12
,
KTEMP13
,
KTEMP14
,
KTEMP15
,
KTEMP16
,
KTEMP17
,
KTEMP18
,
KTEMP19
,
KTEMP20
)
IMPLICIT
NONE
INTEGER
,
INTENT
(
IN
)
::
KTEMP1
,
KTEMP2
INTEGER
,
OPTIONAL
,
INTENT
(
IN
)
::
KTEMP3
,
KTEMP4
,
KTEMP5
,
KTEMP6
,
KTEMP7
,
KTEMP8
,
KTEMP9
INTEGER
,
OPTIONAL
,
INTENT
(
IN
)
::
KTEMP10
,
KTEMP11
,
KTEMP12
,
KTEMP13
,
KTEMP14
,
KTEMP15
,
KTEMP16
,
KTEMP17
,
KTEMP18
INTEGER
,
OPTIONAL
,
INTENT
(
IN
)
::
KTEMP19
,
KTEMP20
IF
(
PRESENT
(
KTEMP20
)
)
CALL
MNH_REL_ZT1DFLAT_N0
(
KTEMP20
)
IF
(
PRESENT
(
KTEMP19
)
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REL_ZT1DFLAT_N0
(
KTEMP1
)
END
SUBROUTINE
MNH_REL_ZT1DFLAT
...
...
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