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
67fb2226
Commit
67fb2226
authored
12 years ago
by
ESCOBAR Juan
Browse files
Options
Downloads
Patches
Plain Diff
Juan 23/03/2013: add update host to mirrored array
parent
2d1c30d1
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
MNH/mode_mnh_zwork.f90
+20
-12
20 additions, 12 deletions
MNH/mode_mnh_zwork.f90
with
20 additions
and
12 deletions
MNH/mode_mnh_zwork.f90
+
20
−
12
View file @
67fb2226
...
...
@@ -13,18 +13,18 @@ LOGICAL, SAVE :: GSOUTH , GNORTH
LOGICAL
,
SAVE
::
GFIRST_CALL_MNH_ALLOC_ZWORK
=
.TRUE.
!
REAL
,
SAVE
,
ALLOCATABLE
,
DIMENSION
(:,:,:)
::
&
ZW3D1
,
ZW3D2
,
ZW3D3
,
ZW3D4
,
ZW3D5
,
ZW3D6
,
ZW3D7
,
&
&
ZW3D1
,
ZW3D2
,
ZW3D3
,
ZW3D4
,
ZW3D5
,
ZW3D6
,
ZW3D7
,
&
&
ZW3D8
,
ZW3D9
,
ZW3D10
,
ZW3D11
,
ZW3D12
,
ZW3D13
,
ZW3D14
,
ZW3D15
!$acc declare mirror(ZW3D1,ZW3D2,ZW3D3,ZW3D4,ZW3D5,ZW3D6,ZW3D7) &
!$acc & mirror(ZW3D8,ZW3D9,ZW3D10,ZW3D11,ZW3D12,ZW3D13,ZW3D14,ZW3D15)
REAL
,
SAVE
,
ALLOCATABLE
,
DIMENSION
(:,:)
::
ZPSRC_HALO2_WEST
REAL
,
SAVE
,
ALLOCATABLE
,
DIMENSION
(:,:)
::
ZPSRC_HALO2_SOUTH
#define ACC_MIRROR
#ifdef ACC_MIRROR
!$acc declare mirror(ZW3D1,ZW3D2,ZW3D3,ZW3D4,ZW3D5,ZW3D6,ZW3D7)
!$acc declare mirror(ZW3D8,ZW3D9,ZW3D10,ZW3D11,ZW3D12,ZW3D13,ZW3D14,ZW3D15)
REAL
,
SAVE
,
ALLOCATABLE
,
DIMENSION
(:,:)
::
ZPSRC_HALO2_WEST
REAL
,
SAVE
,
ALLOCATABLE
,
DIMENSION
(:,:)
::
ZPSRC_HALO2_SOUTH
!$acc declare mirror(ZPSRC_HALO2_WEST,ZPSRC_HALO2_SOUTH)
#endif
REAL
,
SAVE
,
ALLOCATABLE
,
DIMENSION
(:,:,:)
::
ZUNIT3D
!$acc declare mirror(ZUNIT3D)
!
CONTAINS
...
...
@@ -78,7 +78,9 @@ SUBROUTINE MNH_ALLOC_ZWORK(IMODEL)
ALLOCATE
(
ZPSRC_HALO2_WEST
(
IJU
,
IKU
))
ALLOCATE
(
ZPSRC_HALO2_SOUTH
(
IIU
,
IKU
))
!$acc kernels
ALLOCATE
(
ZUNIT3D
(
IIU
,
IJU
,
IKU
))
!$acc kernels
ZW3D1
=
XUNDEF
ZW3D2
=
XUNDEF
ZW3D3
=
XUNDEF
...
...
@@ -97,8 +99,14 @@ SUBROUTINE MNH_ALLOC_ZWORK(IMODEL)
ZPSRC_HALO2_WEST
=
XUNDEF
ZPSRC_HALO2_SOUTH
=
XUNDEF
!$acc end kernels
ZUNIT3D
=
1.0
!$acc end kernels
!$acc update host (ZW3D1,ZW3D2,ZW3D3,ZW3D4,ZW3D5,ZW3D6,ZW3D7)
!$acc update host (ZW3D8,ZW3D9,ZW3D10,ZW3D11,ZW3D12,ZW3D13,ZW3D14,ZW3D15)
!$acc update host (ZPSRC_HALO2_WEST,ZPSRC_HALO2_SOUTH)
!$acc update host( ZUNIT3D)
END
IF
...
...
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