Lines Matching refs:field_label

387 static int CeedOperatorContextSetGeneric(CeedOperator op, CeedContextFieldLabel field_label, CeedCo…  in CeedOperatorContextSetGeneric()  argument
390 CeedCheck(field_label, CeedOperatorReturnCeed(op), CEED_ERROR_UNSUPPORTED, "Invalid field label"); in CeedOperatorContextSetGeneric()
393 if (field_label->from_op) { in CeedOperatorContextSetGeneric()
397 if (op->context_labels[i] == field_label) index = i; in CeedOperatorContextSetGeneric()
409 …CeedCheck(num_sub == field_label->num_sub_labels, CeedOperatorReturnCeed(op), CEED_ERROR_UNSUPPORT… in CeedOperatorContextSetGeneric()
417 if (ctx && field_label->sub_labels[i]) { in CeedOperatorContextSetGeneric()
418 … CeedCall(CeedQFunctionContextSetGeneric(ctx, field_label->sub_labels[i], field_type, values)); in CeedOperatorContextSetGeneric()
427 CeedCall(CeedQFunctionContextSetGeneric(ctx, field_label, field_type, values)); in CeedOperatorContextSetGeneric()
450 static int CeedOperatorContextGetGenericRead(CeedOperator op, CeedContextFieldLabel field_label, Ce… in CeedOperatorContextGetGenericRead() argument
454 CeedCheck(field_label, CeedOperatorReturnCeed(op), CEED_ERROR_UNSUPPORTED, "Invalid field label"); in CeedOperatorContextGetGenericRead()
460 if (field_label->from_op) { in CeedOperatorContextGetGenericRead()
464 if (op->context_labels[i] == field_label) index = i; in CeedOperatorContextGetGenericRead()
476 …CeedCheck(num_sub == field_label->num_sub_labels, CeedOperatorReturnCeed(op), CEED_ERROR_UNSUPPORT… in CeedOperatorContextGetGenericRead()
484 if (ctx && field_label->sub_labels[i]) { in CeedOperatorContextGetGenericRead()
485 …CeedCall(CeedQFunctionContextGetGenericRead(ctx, field_label->sub_labels[i], field_type, num_value… in CeedOperatorContextGetGenericRead()
496 CeedCall(CeedQFunctionContextGetGenericRead(ctx, field_label, field_type, num_values, values)); in CeedOperatorContextGetGenericRead()
517 static int CeedOperatorContextRestoreGenericRead(CeedOperator op, CeedContextFieldLabel field_label in CeedOperatorContextRestoreGenericRead() argument
520 CeedCheck(field_label, CeedOperatorReturnCeed(op), CEED_ERROR_UNSUPPORTED, "Invalid field label"); in CeedOperatorContextRestoreGenericRead()
523 if (field_label->from_op) { in CeedOperatorContextRestoreGenericRead()
527 if (op->context_labels[i] == field_label) index = i; in CeedOperatorContextRestoreGenericRead()
539 …CeedCheck(num_sub == field_label->num_sub_labels, CeedOperatorReturnCeed(op), CEED_ERROR_UNSUPPORT… in CeedOperatorContextRestoreGenericRead()
547 if (ctx && field_label->sub_labels[i]) { in CeedOperatorContextRestoreGenericRead()
548 …CeedCall(CeedQFunctionContextRestoreGenericRead(ctx, field_label->sub_labels[i], field_type, value… in CeedOperatorContextRestoreGenericRead()
559 CeedCall(CeedQFunctionContextRestoreGenericRead(ctx, field_label, field_type, values)); in CeedOperatorContextRestoreGenericRead()
1994 …GetContextFieldLabel(CeedOperator op, const char *field_name, CeedContextFieldLabel *field_label) { in CeedOperatorGetContextFieldLabel() argument
2004 *field_label = op->context_labels[i]; in CeedOperatorGetContextFieldLabel()
2054 *field_label = new_field_label; in CeedOperatorGetContextFieldLabel()
2059 *field_label = NULL; in CeedOperatorGetContextFieldLabel()
2071 CeedCall(CeedQFunctionContextGetFieldLabel(ctx, field_name, field_label)); in CeedOperatorGetContextFieldLabel()
2073 *field_label = NULL; in CeedOperatorGetContextFieldLabel()
2078 if (*field_label) { in CeedOperatorGetContextFieldLabel()
2079 (*field_label)->from_op = true; in CeedOperatorGetContextFieldLabel()
2089 op->context_labels[op->num_context_labels] = *field_label; in CeedOperatorGetContextFieldLabel()
2108 int CeedOperatorSetContextDouble(CeedOperator op, CeedContextFieldLabel field_label, double *values… in CeedOperatorSetContextDouble() argument
2109 return CeedOperatorContextSetGeneric(op, field_label, CEED_CONTEXT_FIELD_DOUBLE, values); in CeedOperatorSetContextDouble()
2126 int CeedOperatorGetContextDoubleRead(CeedOperator op, CeedContextFieldLabel field_label, size_t *nu… in CeedOperatorGetContextDoubleRead() argument
2127 …return CeedOperatorContextGetGenericRead(op, field_label, CEED_CONTEXT_FIELD_DOUBLE, num_values, v… in CeedOperatorGetContextDoubleRead()
2141 int CeedOperatorRestoreContextDoubleRead(CeedOperator op, CeedContextFieldLabel field_label, const … in CeedOperatorRestoreContextDoubleRead() argument
2142 return CeedOperatorContextRestoreGenericRead(op, field_label, CEED_CONTEXT_FIELD_DOUBLE, values); in CeedOperatorRestoreContextDoubleRead()
2158 int CeedOperatorSetContextInt32(CeedOperator op, CeedContextFieldLabel field_label, int32_t *values… in CeedOperatorSetContextInt32() argument
2159 return CeedOperatorContextSetGeneric(op, field_label, CEED_CONTEXT_FIELD_INT32, values); in CeedOperatorSetContextInt32()
2176 int CeedOperatorGetContextInt32Read(CeedOperator op, CeedContextFieldLabel field_label, size_t *num… in CeedOperatorGetContextInt32Read() argument
2177 …return CeedOperatorContextGetGenericRead(op, field_label, CEED_CONTEXT_FIELD_INT32, num_values, va… in CeedOperatorGetContextInt32Read()
2191 int CeedOperatorRestoreContextInt32Read(CeedOperator op, CeedContextFieldLabel field_label, const i… in CeedOperatorRestoreContextInt32Read() argument
2192 return CeedOperatorContextRestoreGenericRead(op, field_label, CEED_CONTEXT_FIELD_INT32, values); in CeedOperatorRestoreContextInt32Read()
2208 int CeedOperatorSetContextBoolean(CeedOperator op, CeedContextFieldLabel field_label, bool *values)… in CeedOperatorSetContextBoolean() argument
2209 return CeedOperatorContextSetGeneric(op, field_label, CEED_CONTEXT_FIELD_BOOL, values); in CeedOperatorSetContextBoolean()
2226 int CeedOperatorGetContextBooleanRead(CeedOperator op, CeedContextFieldLabel field_label, size_t *n… in CeedOperatorGetContextBooleanRead() argument
2227 …return CeedOperatorContextGetGenericRead(op, field_label, CEED_CONTEXT_FIELD_BOOL, num_values, val… in CeedOperatorGetContextBooleanRead()
2241 int CeedOperatorRestoreContextBooleanRead(CeedOperator op, CeedContextFieldLabel field_label, const… in CeedOperatorRestoreContextBooleanRead() argument
2242 return CeedOperatorContextRestoreGenericRead(op, field_label, CEED_CONTEXT_FIELD_BOOL, values); in CeedOperatorRestoreContextBooleanRead()