cholla
subgrid_routines_2D.h
Go to the documentation of this file.
1 
4 #ifdef CUDA
5 #ifndef SUBGRID_ROUTINES_2D_H
6 #define SUBGRID_ROUTINES_2D_H
7 
8 void sub_dimensions_2D(int nx, int ny, int n_ghost, int *nx_s, int *ny_s, int *block1_tot, int *block2_tot, int *remainder1, int *remainder2, int n_fields);
9 
10 
11 void get_offsets_2D(int nx_s, int ny_s, int n_ghost, int x_off, int y_off, int block, int block1_tot, int block2_tot, int remainder1, int remainder2, int *x_off_s, int *y_off_s);
12 
13 
14 // copy the conserved variable block into the buffer
15 void host_copy_block_2D(int nx, int ny, int nx_s, int ny_s, int n_ghost, int block, int block1_tot, int block2_tot, int remainder1, int remainder2, int BLOCK_VOL, Real *host_conserved, Real *buffer, int n_fields);
16 
17 
18 // return the values from buffer to the host_conserved array
19 void host_return_block_2D(int nx, int ny, int nx_s, int ny_s, int n_ghost, int block, int block1_tot, int block2_tot, int remainder1, int remainder2, int BLOCK_VOL, Real *host_conserved, Real *buffer, int n_fields);
20 
21 
22 #endif //SUBGRID_ROUTINES_2D_H
23 #endif //CUDA