Skip to content

Commit bb022ad

Browse files
Claus SusanneClaus Susanne
Claus Susanne
authored and
Claus Susanne
committed
rename user_data custom_data
1 parent 49b23a0 commit bb022ad

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ffcx/codegeneration/C/expressions_template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
const {geom_type}* restrict coordinate_dofs,
2525
const int* restrict entity_local_index,
2626
const uint8_t* restrict quadrature_permutation,
27-
void* user_data)
27+
void* custom_data)
2828
{{
2929
{tabulate_expression}
3030
}}

ffcx/codegeneration/C/integrals_template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
const {geom_type}* restrict coordinate_dofs,
1818
const int* restrict entity_local_index,
1919
const uint8_t* restrict quadrature_permutation,
20-
void* user_data)
20+
void* custom_data)
2121
{{
2222
{tabulate_tensor}
2323
}}

ffcx/codegeneration/ufcx.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ extern "C"
8686
/// For integrals not on interior facets, this argument has no effect and a
8787
/// null pointer can be passed. For interior facets the array will have size 2
8888
/// (one permutation for each cell adjacent to the facet).
89-
/// @param[in] user_data Custom user data passed to the tabulate function.
89+
/// @param[in] custom_data Custom user data passed to the tabulate function.
9090
/// For example, a struct with additional data needed for the tabulate function.
9191
/// See the implementation of runtime integrals for further details.
9292
typedef void(ufcx_tabulate_tensor_float32)(
9393
float* restrict A, const float* restrict w, const float* restrict c,
9494
const float* restrict coordinate_dofs,
9595
const int* restrict entity_local_index,
9696
const uint8_t* restrict quadrature_permutation,
97-
void* user_data);
97+
void* custom_data);
9898

9999
/// Tabulate integral into tensor A with compiled
100100
/// quadrature rule and double precision
@@ -105,7 +105,7 @@ extern "C"
105105
const double* restrict coordinate_dofs,
106106
const int* restrict entity_local_index,
107107
const uint8_t* restrict quadrature_permutation,
108-
void* user_data);
108+
void* custom_data);
109109

110110
#ifndef __STDC_NO_COMPLEX__
111111
/// Tabulate integral into tensor A with compiled
@@ -117,7 +117,7 @@ extern "C"
117117
const float _Complex* restrict c, const float* restrict coordinate_dofs,
118118
const int* restrict entity_local_index,
119119
const uint8_t* restrict quadrature_permutation,
120-
void* user_data);
120+
void* custom_data);
121121
#endif // __STDC_NO_COMPLEX__
122122

123123
#ifndef __STDC_NO_COMPLEX__
@@ -130,7 +130,7 @@ extern "C"
130130
const double _Complex* restrict c, const double* restrict coordinate_dofs,
131131
const int* restrict entity_local_index,
132132
const uint8_t* restrict quadrature_permutation,
133-
void* user_data);
133+
void* custom_data);
134134
#endif // __STDC_NO_COMPLEX__
135135

136136
typedef struct ufcx_integral

0 commit comments

Comments
 (0)