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
b2f6acbe
Commit
b2f6acbe
authored
11 years ago
by
ESCOBAR Juan
Browse files
Options
Downloads
Patches
Plain Diff
Juan 9/04/2013: minor change, for test of performance on ppm routines
parent
49798d13
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/ppm.f90
+14
-5
14 additions, 5 deletions
MNH/ppm.f90
with
14 additions
and
5 deletions
MNH/ppm.f90
+
14
−
5
View file @
b2f6acbe
...
@@ -82,7 +82,8 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
...
@@ -82,7 +82,8 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
!
!
! output source term
! output source term
REAL
,
DIMENSION
(
SIZE
(
PCR
,
1
),
SIZE
(
PCR
,
2
),
SIZE
(
PCR
,
3
))
::
PR
REAL
,
DIMENSION
(:,:,:),
INTENT
(
OUT
)
::
PR
!
!
END
SUBROUTINE
PPM_S0_X
END
SUBROUTINE
PPM_S0_X
!
!
...
@@ -102,7 +103,8 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
...
@@ -102,7 +103,8 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
!
!
! output source term
! output source term
REAL
,
DIMENSION
(
SIZE
(
PCR
,
1
),
SIZE
(
PCR
,
2
),
SIZE
(
PCR
,
3
))
::
PR
REAL
,
DIMENSION
(:,:,:),
INTENT
(
INOUT
)
::
PR
!
!
END
SUBROUTINE
PPM_S0_Y
END
SUBROUTINE
PPM_S0_Y
!
!
...
@@ -1521,6 +1523,8 @@ USE MODE_MNH_ZWORK, ONLY : &
...
@@ -1521,6 +1523,8 @@ USE MODE_MNH_ZWORK, ONLY : &
&
ZRHO_MXM
=>
ZW3D5
,
ZCR_MXM
=>
ZW3D6
,
ZCR_DXF
=>
ZW3D7
,
&
&
ZRHO_MXM
=>
ZW3D5
,
ZCR_MXM
=>
ZW3D6
,
ZCR_DXF
=>
ZW3D7
,
&
&
ZPSRC_HALO2_WEST
&
ZPSRC_HALO2_WEST
!
!
USE
MODD_IO_ll
,
ONLY
:
GSMONOPROC
!
IMPLICIT
NONE
IMPLICIT
NONE
!
!
!* 0.1 Declarations of dummy arguments :
!* 0.1 Declarations of dummy arguments :
...
@@ -1536,7 +1540,8 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
...
@@ -1536,7 +1540,8 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
!
!
! output source term
! output source term
REAL
,
DIMENSION
(
SIZE
(
PCR
,
1
),
SIZE
(
PCR
,
2
),
SIZE
(
PCR
,
3
))
::
PR
REAL
,
DIMENSION
(:,:,:),
INTENT
(
OUT
)
::
PR
! acc reflected (psrc,pcr,prho,pr)
!
!
!* 0.2 Declarations of local variables :
!* 0.2 Declarations of local variables :
!
!
...
@@ -1596,14 +1601,18 @@ IF(NHALO /= 1) THEN
...
@@ -1596,14 +1601,18 @@ IF(NHALO /= 1) THEN
STOP
STOP
ENDIF
ENDIF
!
!
IF
(
.NOT.
GSMONOPROC
)
THEN
CALL
GET_HALO2
(
PSRC
,
TZ_PSRC_HALO2_ll
)
CALL
GET_HALO2
(
PSRC
,
TZ_PSRC_HALO2_ll
)
ZPSRC_HALO2_WEST
(:,:)
=
TZ_PSRC_HALO2_ll
%
HALO2
%
WEST
(:,:)
ZPSRC_HALO2_WEST
(:,:)
=
TZ_PSRC_HALO2_ll
%
HALO2
%
WEST
(:,:)
!$acc update device (ZPSRC_HALO2_WEST)
!$acc update device (ZPSRC_HALO2_WEST)
END
IF
!
!
#define JUAN_ACC_S0_X
#define JUAN_ACC_S0_X
#ifdef JUAN_ACC_S0_X
#ifdef JUAN_ACC_S0_X
!$acc data pcopyin (psrc,pcr,prho) pcopyout(pr)
! acc data pcopyin (psrc,pcr,prho) pcopyout(pr)
! acc data pcreate (psrc,pcr,prho,pr)
!$acc data present (psrc,pcr,prho,pr)
!$acc kernels
!$acc kernels
#endif
#endif
!
!
...
@@ -1852,7 +1861,7 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
...
@@ -1852,7 +1861,7 @@ REAL, DIMENSION(:,:,:), INTENT(IN) :: PRHO ! density
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
REAL
,
INTENT
(
IN
)
::
PTSTEP
! Time step
!
!
! output source term
! output source term
REAL
,
DIMENSION
(
SIZE
(
PCR
,
1
),
SIZE
(
PCR
,
2
),
SIZE
(
PCR
,
3
)
)
::
PR
REAL
,
DIMENSION
(
:,:,:),
INTENT
(
INOUT
)
::
PR
!
!
!* 0.2 Declarations of local variables :
!* 0.2 Declarations of local variables :
!
!
...
...
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