@@ -94,21 +94,6 @@ module m_weno
9494! real (kind (0d0 )), pointer, dimension (:, :, :) :: beta_coef = > null()
9595 !> @}
9696
97- #ifdef CRAY_ACC_WAR
98- @:CRAY_DECLARE_GLOBAL(real (kind (0d0 )), dimension (:, :, :), CpL)
99- @:CRAY_DECLARE_GLOBAL(real (kind (0d0 )), dimension (:, :, :), CpR)
100- @:CRAY_DECLARE_GLOBAL(real (kind (0d0 )), dimension (:, :, :), Cb)
101- !$acc declare link(CpL, CpR, Cb)
102- #else
103- real (kind (0d0 )), target, allocatable, dimension (:, :, :) :: CpL
104- real (kind (0d0 )), target, allocatable, dimension (:, :, :) :: CpR
105- real (kind (0d0 )), target, allocatable, dimension (:, :, :) :: Cb
106- #endif
107-
108- real (kind (0d0 )) :: w(1 :8 ) ! Intermediate variables for overall stencil for ideal weights
109- real (kind (0d0 )) :: x(1 :5 ) ! Intermediate variables for sub- stencils for poly and beta
110- real (kind (0d0 )) :: y(1 :4 ) ! Differences in x
111-
11297 ! END: WENO Coefficients ===================================================
11398
11499 integer :: v_size !< Number of WENO- reconstructed cell- average variables
@@ -171,10 +156,6 @@ contains
171156 ! Number of cross terms for dvd = (k-1 )(k-1+1 )/ 2 , where weno_polyn = k-1
172157 ! Note: k-1 not k because we are using value differences (dvd) not the values themselves
173158
174- @:ALLOCATE_GLOBAL(CpL(is1_weno%beg + weno_polyn:is1_weno%end - weno_polyn, 0 :3 , 4 ))
175- @:ALLOCATE_GLOBAL(CpR(is1_weno%beg + weno_polyn:is1_weno%end - weno_polyn, 0 :3 , 4 ))
176- @:ALLOCATE_GLOBAL(Cb(is1_weno%beg + weno_polyn:is1_weno%end - weno_polyn, 0 :3 , 10 ))
177-
178159 call s_compute_weno_coefficients(1 , is1_weno)
179160
180161 @:ALLOCATE(v_rs_ws_x(is1_weno%beg:is1_weno%end, &
@@ -261,6 +242,9 @@ contains
261242
262243 integer :: i !< Generic loop iterator
263244
245+ real (kind (0d0 )) :: w(1 :8 ) ! Intermediate var for ideal weights: s_cb across overall stencil
246+ real (kind (0d0 )) :: y(1 :4 ) ! Intermediate var for poly & beta: diff(s_cb) across sub- stencil
247+
264248 ! Determining the number of cells, the cell- boundary locations and
265249 ! the boundary conditions in the coordinate direction selected for
266250 ! the WENO reconstruction
0 commit comments