cholla
subgrid_routines_3D.h
Go to the documentation of this file.
1 
4 #ifdef CUDA
5 #ifndef SUBGRID_ROUTINES_3D_H
6 #define SUBGRID_ROUTINES_3D_H
7 
8 
9 void sub_dimensions_3D(int nx, int ny, int nz, int n_ghost, int *nx_s, int *ny_s, int *nz_s, int *block1_tot, int *block2_tot, int *block3_tot, int *remainder1, int *remainder2, int *remainder3, int n_fields);
10 
11 void get_offsets_3D(int nx_s, int ny_s, int nz_s, int n_ghost, int x_off, int y_off, int z_off, int block, int block1_tot, int block2_tot, int block3_tot, int remainder1, int remainder2, int remainder3, int *x_off_s, int *y_off_s, int *z_off_s);
12 
13 // copy the conserved variable block into the buffer
14 void host_copy_block_3D(int nx, int ny, int nz, int nx_s, int ny_s, int nz_s, int n_ghost, int block, int block1_tot, int block2_tot, int block3_tot, int remainder1, int remainder2, int remainder3, int BLOCK_VOL, Real *host_conserved, Real *buffer, int n_fields, Real *host_grav_potential, Real *buffer_potential );
15 
16 // return the values from buffer to the host_conserved array
17 void host_return_block_3D(int nx, int ny, int nz, int nx_s, int ny_s, int nz_s, int n_ghost, int block, int block1_tot, int block2_tot, int block3_tot, int remainder1, int remainder2, int remainder3, int BLOCK_VOL, Real *host_conserved, Real *buffer, int n_fields);
18 
19 
20 #endif //SUBGRID_ROUTINES_3D_H
21 #endif //CUDA