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
ac30a077
Commit
ac30a077
authored
1 year ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 25/07/2023: OpenACC: adv_boundaries: remove data transfers not necessary anymore
parent
18105833
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/MNH/adv_boundaries.f90
+1
-46
1 addition, 46 deletions
src/MNH/adv_boundaries.f90
src/MNH/advection_metsv.f90
+0
-2
0 additions, 2 deletions
src/MNH/advection_metsv.f90
with
1 addition
and
48 deletions
src/MNH/adv_boundaries.f90
+
1
−
46
View file @
ac30a077
!MNH_LIC Copyright 1994-202
2
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 1994-202
3
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.
...
...
@@ -126,10 +126,6 @@ IJU=SIZE(PFIELD,2)
PFIELD
(:,:,
IKE
+1
)
=
PFIELD
(:,:,
IKE
)
!$acc end kernels
!
!Not enough? !$acc update self(PFIELD(:,:,IKB-1))
!Not enough? !$acc update self(PFIELD(:,:,IKE+1))
!$acc update self(PFIELD(:,:,:))
!
CALL
MPPDB_CHECK
(
PFIELD
,
"ADV_BOUNDARIES end:PFIELD"
)
!
!$acc end data
...
...
@@ -231,26 +227,6 @@ GNORTH = ( HLBCY(2) == 'OPEN' .AND. LNORTH_ll() )
END
IF
!$acc end kernels
!
#if 0
!Not enough?
!$acc update self(PFIELD(:,:,IKB-1))
!$acc update self(PFIELD(:,:,IKE+1))
IF
(
GWEST
)
THEN
!$acc update self(PFIELD(1,:,:))
END
IF
IF
(
GEAST
)
THEN
!$acc update self(PFIELD(IIU,:,:))
END
IF
IF
(
GSOUTH
)
THEN
!$acc update self(PFIELD(:,1,:))
END
IF
IF
(
GNORTH
)
THEN
!$acc update self(PFIELD(:,IJU,:))
END
IF
#else
!$acc update self(PFIELD(:,:,:))
#endif
!
CALL
MPPDB_CHECK
(
PFIELD
,
"ADV_BOUNDARIES end:PFIELD"
)
!
!$acc end data
...
...
@@ -376,27 +352,6 @@ END SELECT
IF
(
IFLAG
==
3
)
PFIELD
(:,:,
IKE
+1
)
=
0.
!IF HFIELD=='W'
!$acc end kernels
!
#if 0
!Not enough?
!add also if hfield =u or v
!$acc update self(PFIELD(:,:,IKB-1))
!$acc update self(PFIELD(:,:,IKE+1))
IF
(
GWEST
)
THEN
!$acc update self(PFIELD(1,:,:))
END
IF
IF
(
GEAST
)
THEN
!$acc update self(PFIELD(IIU,:,:))
END
IF
IF
(
GSOUTH
)
THEN
!$acc update self(PFIELD(:,1,:))
END
IF
IF
(
GNORTH
)
THEN
!$acc update self(PFIELD(:,IJU,:))
END
IF
#else
!$acc update self(PFIELD(:,:,:))
#endif
!
CALL
MPPDB_CHECK
(
PFIELD
,
"ADV_BOUNDARIES end:PFIELD"
)
!
...
...
This diff is collapsed.
Click to expand it.
src/MNH/advection_metsv.f90
+
0
−
2
View file @
ac30a077
...
...
@@ -809,7 +809,6 @@ END DO
DO
JSV
=
1
,
KSV
CALL
ADV_BOUNDARIES_DEVICE
(
HLBCX
,
HLBCY
,
ZRSVS_OTHER
(:,:,:,
JSV
))
END
DO
!Already done in ADV_BOUNDARIES_DEVICE !$acc update self(ZRTHS_OTHER,ZRTKES_OTHER,ZRRS_OTHER(:,:,:,1:KRR),ZRSVS_OTHER(:,:,:,1:KSV))
#else
CALL
ADV_BOUNDARIES
(
HLBCX
,
HLBCY
,
ZRTHS_OTHER
)
IF
(
GTKE
)
CALL
ADV_BOUNDARIES
(
HLBCX
,
HLBCY
,
ZRTKES_OTHER
)
...
...
@@ -1002,7 +1001,6 @@ DO JSPL=1,KSPLIT
DO
JSV
=
1
,
KSV
CALL
ADV_BOUNDARIES_DEVICE
(
HLBCX
,
HLBCY
,
ZSV
(:,:,:,
JSV
),
PSVT
(:,:,:,
JSV
))
END
DO
!Already done in ADV_BOUNDARIES_DEVICE !$acc update self(ZTH,ZTKE,ZR,ZSV)
#endif
IF
(
LBLOWSNOW
)
THEN
! Advection of Canopy mass at the 1st atmospheric level
...
...
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