54typedef float cs_cocg_t;
55typedef float cs_cocg_6_t[6];
56typedef float cs_cocg_33_t[3][3];
66#if defined(HAVE_ACCEL)
82cs_sync_scalar_gradient_halo_d(
const cs_mesh_t *m,
86 if (m->
halo !=
nullptr) {
89 cs_halo_sync_d(m->
halo, halo_type, datatype, 3, (T *)grad);
111template <cs_lnum_t str
ide,
typename T>
113cs_sync_strided_gradient_halo_d(
const cs_mesh_t *m,
117 if (m->
halo !=
nullptr) {
121 cs_halo_sync_d(m->
halo, halo_type, datatype, stride*3, (T *)grad);
127 else if (stride == 3)
129 else if (stride == 6)
159cs_gradient_get_cell_cocg_lsq(
const cs_mesh_t *m,
164#if defined(HAVE_CUDA)
190cs_gradient_scalar_lsq_cuda(
const cs_mesh_t *m,
219template <cs_lnum_t str
ide,
typename T>
221cs_gradient_strided_lsq_cuda
251template <cs_lnum_t str
ide,
typename T>
253cs_gradient_strided_gg_r_cuda
259 bool warped_correction,
263 const T r_grad[][stride][3],
285template <cs_lnum_t str
ide>
287cs_gradient_strided_gg_r_cuda
294 bool warped_correction,
296 const cs_real_t coefbv[][stride][stride],
360template <cs_lnum_t str
ide>
392template <cs_lnum_t str
ide>
400 bool warped_correction,
cs_datatype_t
Definition: cs_defs.h:290
#define restrict
Definition: cs_defs.h:148
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:349
void cs_gradient_strided_lsq_hip(const cs_mesh_t *m, const cs_mesh_adjacencies_t *madj, const cs_mesh_quantities_t *fvq, const cs_halo_type_t halo_type, const cs_real_t val_f[][stride], const cs_real_t pvar[][stride], const cs_real_t *c_weight, cs_cocg_6_t *cocg, cs_real_t grad[][stride][3])
Definition: cs_gradient_hip.cpp:1086
void cs_gradient_strided_gg_r_hip(const cs_mesh_t *m, const cs_mesh_adjacencies_t *madj, const cs_mesh_quantities_t *fvq, cs_halo_type_t halo_type, bool warped_correction, const cs_real_t val_f[][stride], const cs_real_t pvar[][stride], const cs_real_t *c_weight, const cs_real_t r_grad[][stride][3], cs_real_t grad[][stride][3])
Definition: cs_gradient_hip.cpp:1381
void cs_gradient_scalar_lsq_hip(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, cs_halo_type_t halo_type, const cs_real_t val_f[], const cs_real_t *pvar, const cs_real_t *restrict c_weight, cs_cocg_6_t *restrict cocg, cs_real_3_t *restrict grad)
Definition: cs_gradient_hip.cpp:915
cs_halo_type_t
Definition: cs_halo.h:53
void cs_halo_perio_sync_var_vect(const cs_halo_t *halo, cs_halo_type_t sync_mode, T var[], int incvar)
Definition: cs_halo_perio.cpp:385
void cs_halo_perio_sync_var_sym_tens_grad(const cs_halo_t *halo, cs_halo_type_t sync_mode, T var[])
Definition: cs_halo_perio.cpp:624
void cs_halo_perio_sync_var_tens(const cs_halo_t *halo, cs_halo_type_t sync_mode, T var[])
Definition: cs_halo_perio.cpp:471
void cs_sync_h2d(const void *ptr)
Synchronize data from host to device.
Definition: cs_mem.h:935
void cs_sync_d2h(void *ptr)
Synchronize data from device to host.
Definition: cs_mem.h:1000
Definition: cs_mesh_adjacencies.h:82
Definition: cs_mesh_quantities.h:88
int have_rotation_perio
Definition: cs_mesh.h:143
cs_halo_t * halo
Definition: cs_mesh.h:156