50 #define CS_ARRAY_NO_SUBLIST -1 51 #define CS_ARRAY_IN_SUBLIST 0 52 #define CS_ARRAY_OUT_SUBLIST 1 53 #define CS_ARRAY_INOUT_SUBLIST 2 void cs_array_real_set_scalar(cs_lnum_t n_elts, cs_real_t ref_val, cs_real_t a[])
Assign a constant scalar value to an array.
Definition: cs_array.c:239
#define restrict
Definition: cs_defs.h:142
void cs_array_real_copy(cs_lnum_t n_elts, cs_lnum_t dim, const cs_real_t src[], cs_real_t dest[restrict])
Copy real values from an array to another of the same dimensions.
Definition: cs_array.c:216
void cs_array_real_set_symm_tensor_on_subset(cs_lnum_t n_elts, const cs_lnum_t elt_ids[], const cs_real_t ref_val[6], cs_real_t *a)
Assign a constant vector of size 6 (optimized way to define a symmetric tensor) to an interlaced arra...
Definition: cs_array.c:378
#define BEGIN_C_DECLS
Definition: cs_defs.h:512
void cs_array_real_set_scalar_on_subset(cs_lnum_t n_elts, const cs_lnum_t elt_ids[], cs_real_t ref_val, cs_real_t a[])
Assign a constant scalar value to an array on a selected subset of elements. If elt_ids = NULL...
Definition: cs_array.c:262
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:114
void cs_array_real_set_vector(cs_lnum_t n_elts, const cs_real_t ref_val[3], cs_real_t *a)
Assign a constant vector to an array of stride 3 which is interlaced.
Definition: cs_array.c:290
void cs_array_set_value_real(cs_lnum_t n_elts, cs_lnum_t dim, cs_real_t v, cs_real_t a[])
Assign a constant value to an array (deprecated function).
Definition: cs_array.c:503
double precision, save a
Definition: cs_fuel_incl.f90:148
void cs_array_real_fill_zero(cs_lnum_t size, cs_real_t a[])
Assign zero to all elements of an array.
Definition: cs_array.c:479
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
void cs_array_real_set_vector_on_subset(cs_lnum_t n_elts, const cs_lnum_t elt_ids[], const cs_real_t ref_val[3], cs_real_t a[])
Assign a constant vector to an interlaced array (of stride 3) on a selected subset of elements...
Definition: cs_array.c:315
#define END_C_DECLS
Definition: cs_defs.h:513
void cs_array_real_set_tensor_on_subset(cs_lnum_t n_elts, const cs_lnum_t elt_ids[], const cs_real_t ref_tens[3][3], cs_real_t *a)
Assign a constant 3x3 tensor to an interlaced array (of stride 9) on a subset of elements. If elt_ids = NULL, then one recovers the function cs_array_real_set_tensor.
Definition: cs_array.c:445
void cs_array_real_set_symm_tensor(cs_lnum_t n_elts, const cs_real_t ref_val[6], cs_real_t *a)
Assign a constant vector of size 6 (optimized way to define a symmetric tensor) to an array (of strid...
Definition: cs_array.c:346
void cs_array_real_set_tensor(cs_lnum_t n_elts, const cs_real_t ref_tens[3][3], cs_real_t *a)
Assign a constant 3x3 tensor to an array (of stride 9) which is interlaced.
Definition: cs_array.c:410
void cs_array_real_copy_sublist(cs_lnum_t n_elts, int stride, const cs_lnum_t elt_ids[], int mode, const cs_real_t ref[], cs_real_t dest[])
Copy an array ("ref") into another array ("dest") on possibly only a part of the array(s). Array with stride > 1 are assumed to be interlaced. The sublist of element on which working is defined by "elt_ids" (of size "n_elts"). The way to apply the sublist is set with the parameter "mode" as follows:
Definition: cs_array.c:100