-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprojective_smoothing_backend_grid.cl
60 lines (49 loc) · 1.85 KB
/
projective_smoothing_backend_grid.cl
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
/*
* This file is part of illcrawl, a reconstruction engine for data from
* the illustris simulation.
*
* Copyright (C) 2017 Aksel Alpay
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PROJECTIVE_SMOOTHING_GRID_RECONSTRUCTION_CL
#define PROJECTIVE_SMOOTHING_GRID_RECONSTRUCTION_CL
#define SPG_PROJECTION
#include "smoothing_particle_grid.cl"
__kernel void projective_smoothing_grid(
__global int2* grid_cells,
int3 num_grid_cells,
vector3 grid_min_corner,
vector3 grid_cell_sizes,
__global vector4* particles,
__global scalar* smoothing_lengths,
scalar overall_max_smoothing_length,
__global scalar* max_smoothing_lengths,
int num_evaluation_points,
__global vector4* evaluation_points_coordinates,
__global scalar* results)
{
spg_run_reconstruction(grid_cells,
num_grid_cells,
grid_min_corner,
grid_cell_sizes,
particles,
smoothing_lengths,
overall_max_smoothing_length,
max_smoothing_lengths,
num_evaluation_points,
evaluation_points_coordinates,
results);
}
#endif