-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupdate_tile_halo_kernel.h
173 lines (158 loc) · 6.02 KB
/
update_tile_halo_kernel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
Crown Copyright 2012 AWE.
This file is part of CloverLeaf.
CloverLeaf is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option)
any later version.
CloverLeaf is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
CloverLeaf. If not, see http://www.gnu.org/licenses/.
*/
#ifndef UPDATE_TILE_HALO_KERNEL_H
#define UPDATE_TILE_HALO_KERNEL_H
#include "definitions.h"
void update_tile_halo_l_kernel(
int x_min, int x_max, int y_min,int y_max,
Kokkos::View<double**>& density0,
Kokkos::View<double**>& energy0,
Kokkos::View<double**>& pressure,
Kokkos::View<double**>& viscosity,
Kokkos::View<double**>& soundspeed,
Kokkos::View<double**>& density1,
Kokkos::View<double**>& energy1,
Kokkos::View<double**>& xvel0,
Kokkos::View<double**>& yvel0,
Kokkos::View<double**>& xvel1,
Kokkos::View<double**>& yvel1,
Kokkos::View<double**>& vol_flux_x,
Kokkos::View<double**>& vol_flux_y,
Kokkos::View<double**>& mass_flux_x,
Kokkos::View<double**>& mass_flux_y,
int left_xmin, int left_xmax, int left_ymin, int left_ymax,
Kokkos::View<double**>& left_density0,
Kokkos::View<double**>& left_energy0,
Kokkos::View<double**>& left_pressure,
Kokkos::View<double**>& left_viscosity,
Kokkos::View<double**>& left_soundspeed,
Kokkos::View<double**>& left_density1,
Kokkos::View<double**>& left_energy1,
Kokkos::View<double**>& left_xvel0,
Kokkos::View<double**>& left_yvel0,
Kokkos::View<double**>& left_xvel1,
Kokkos::View<double**>& left_yvel1,
Kokkos::View<double**>& left_vol_flux_x,
Kokkos::View<double**>& left_vol_flux_y,
Kokkos::View<double**>& left_mass_flux_x,
Kokkos::View<double**>& left_mass_flux_y,
int fields[NUM_FIELDS],
int depth);
void update_tile_halo_r_kernel(
int x_min, int x_max, int y_min, int y_max,
Kokkos::View<double**>& density0,
Kokkos::View<double**>& energy0,
Kokkos::View<double**>& pressure,
Kokkos::View<double**>& viscosity,
Kokkos::View<double**>& soundspeed,
Kokkos::View<double**>& density1,
Kokkos::View<double**>& energy1,
Kokkos::View<double**>& xvel0,
Kokkos::View<double**>& yvel0,
Kokkos::View<double**>& xvel1,
Kokkos::View<double**>& yvel1,
Kokkos::View<double**>& vol_flux_x,
Kokkos::View<double**>& vol_flux_y,
Kokkos::View<double**>& mass_flux_x,
Kokkos::View<double**>& mass_flux_y,
int right_xmin, int right_xmax, int right_ymin, int right_ymax,
Kokkos::View<double**>& right_density0,
Kokkos::View<double**>& right_energy0,
Kokkos::View<double**>& right_pressure,
Kokkos::View<double**>& right_viscosity,
Kokkos::View<double**>& right_soundspeed,
Kokkos::View<double**>& right_density1,
Kokkos::View<double**>& right_energy1,
Kokkos::View<double**>& right_xvel0,
Kokkos::View<double**>& right_yvel0,
Kokkos::View<double**>& right_xvel1,
Kokkos::View<double**>& right_yvel1,
Kokkos::View<double**>& right_vol_flux_x,
Kokkos::View<double**>& right_vol_flux_y,
Kokkos::View<double**>& right_mass_flux_x,
Kokkos::View<double**>& right_mass_flux_y,
int fields[NUM_FIELDS],
int depth);
void update_tile_halo_t_kernel(
int x_min, int x_max, int y_min, int y_max,
Kokkos::View<double**>& density0,
Kokkos::View<double**>& energy0,
Kokkos::View<double**>& pressure,
Kokkos::View<double**>& viscosity,
Kokkos::View<double**>& soundspeed,
Kokkos::View<double**>& density1,
Kokkos::View<double**>& energy1,
Kokkos::View<double**>& xvel0,
Kokkos::View<double**>& yvel0,
Kokkos::View<double**>& xvel1,
Kokkos::View<double**>& yvel1,
Kokkos::View<double**>& vol_flux_x,
Kokkos::View<double**>& vol_flux_y,
Kokkos::View<double**>& mass_flux_x,
Kokkos::View<double**>& mass_flux_y,
int top_xmin, int top_xmax, int top_ymin, int top_ymax,
Kokkos::View<double**>& top_density0,
Kokkos::View<double**>& top_energy0,
Kokkos::View<double**>& top_pressure,
Kokkos::View<double**>& top_viscosity,
Kokkos::View<double**>& top_soundspeed,
Kokkos::View<double**>& top_density1,
Kokkos::View<double**>& top_energy1,
Kokkos::View<double**>& top_xvel0,
Kokkos::View<double**>& top_yvel0,
Kokkos::View<double**>& top_xvel1,
Kokkos::View<double**>& top_yvel1,
Kokkos::View<double**>& top_vol_flux_x,
Kokkos::View<double**>& top_vol_flux_y,
Kokkos::View<double**>& top_mass_flux_x,
Kokkos::View<double**>& top_mass_flux_y,
int fields[NUM_FIELDS],
int depth);
void update_tile_halo_b_kernel(
int x_min, int x_max, int y_min, int y_max,
Kokkos::View<double**>& density0,
Kokkos::View<double**>& energy0,
Kokkos::View<double**>& pressure,
Kokkos::View<double**>& viscosity,
Kokkos::View<double**>& soundspeed,
Kokkos::View<double**>& density1,
Kokkos::View<double**>& energy1,
Kokkos::View<double**>& xvel0,
Kokkos::View<double**>& yvel0,
Kokkos::View<double**>& xvel1,
Kokkos::View<double**>& yvel1,
Kokkos::View<double**>& vol_flux_x,
Kokkos::View<double**>& vol_flux_y,
Kokkos::View<double**>& mass_flux_x,
Kokkos::View<double**>& mass_flux_y,
int bottom_xmin, int bottom_xmax, int bottom_ymin, int bottom_ymax,
Kokkos::View<double**>& bottom_density0,
Kokkos::View<double**>& bottom_energy0,
Kokkos::View<double**>& bottom_pressure,
Kokkos::View<double**>& bottom_viscosity,
Kokkos::View<double**>& bottom_soundspeed,
Kokkos::View<double**>& bottom_density1,
Kokkos::View<double**>& bottom_energy1,
Kokkos::View<double**>& bottom_xvel0,
Kokkos::View<double**>& bottom_yvel0,
Kokkos::View<double**>& bottom_xvel1,
Kokkos::View<double**>& bottom_yvel1,
Kokkos::View<double**>& bottom_vol_flux_x,
Kokkos::View<double**>& bottom_vol_flux_y,
Kokkos::View<double**>& bottom_mass_flux_x,
Kokkos::View<double**>& bottom_mass_flux_y,
int fields[NUM_FIELDS],
int depth);
#endif