Skip to content
Snippets Groups Projects
Commit df77b83e authored by ESCOBAR MUNOZ Juan's avatar ESCOBAR MUNOZ Juan
Browse files

Juan 21/10/2021:ZSOLVER/mode_exchange2_ll.f90 , for GPU=OPENACCO2 , add enter data in init_halo2

parent 1260c749
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,8 @@ implicit none
!
TYPE(HALO2LIST_ll), POINTER :: TZHALO2LIST
INTEGER :: JJ ! loop counter
REAL , POINTER , CONTIGUOUS , DIMENSION(:,:) :: ZWEST,ZEAST,ZSOUTH,ZNORTH
!
!-------------------------------------------------------------------------------
!
......@@ -132,16 +134,26 @@ implicit none
!
!* 1.1 Allocate the current HALO2_ll
!
ALLOCATE(TZHALO2LIST%HALO2)
ALLOCATE(TZHALO2LIST%HALO2)
ALLOCATE(TZHALO2LIST%HALO2%WEST(KDIMY, KDIMZ))
ALLOCATE(TZHALO2LIST%HALO2%EAST(KDIMY, KDIMZ))
ALLOCATE(TZHALO2LIST%HALO2%SOUTH(KDIMX, KDIMZ))
ALLOCATE(TZHALO2LIST%HALO2%NORTH(KDIMX, KDIMZ))
ALLOCATE(TZHALO2LIST%NEXT)
TZHALO2LIST%HALO2%WEST=0.
TZHALO2LIST%HALO2%EAST=0.
TZHALO2LIST%HALO2%SOUTH=0.
TZHALO2LIST%HALO2%NORTH=0.
ZWEST => TZHALO2LIST%HALO2%WEST
ZEAST => TZHALO2LIST%HALO2%EAST
ZSOUTH => TZHALO2LIST%HALO2%SOUTH
ZNORTH => TZHALO2LIST%HALO2%NORTH
!$acc enter data create(ZWEST,ZEAST,ZSOUTH,ZNORTH)
!$acc kernels
ZWEST=0.
ZEAST=0.
ZSOUTH=0.
ZNORTH=0.
!$acc end kernels
ALLOCATE(TZHALO2LIST%NEXT)
!
!* 1.2 Go to the next HALO2_ll, or terminate the list
!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment