Lines Matching full:if

25   @brief Check if a `CeedOperator` Field matches the `CeedQFunction` Field
47 if (rstr != CEED_ELEMRESTRICTION_NONE) { in CeedOperatorCheckField()
53 if (basis != CEED_BASIS_NONE) { in CeedOperatorCheckField()
118 if (basis == CEED_BASIS_NONE) fprintf(stream, "%s No basis\n", tabs); in CeedOperatorFieldView()
119 if (vec == CEED_VECTOR_ACTIVE) fprintf(stream, "%s Active vector\n", tabs); in CeedOperatorFieldView()
120 else if (vec == CEED_VECTOR_NONE) fprintf(stream, "%s No vector\n", tabs); in CeedOperatorFieldView()
154 if (is_at_points) { in CeedOperatorSingleView()
244 if (active_input_basis) { in CeedOperatorGetActiveBases()
246 if (!is_composite) { in CeedOperatorGetActiveBases()
251 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorGetActiveBases()
257 if (!*active_input_basis) CeedCall(CeedBasisReferenceCopy(basis, active_input_basis)); in CeedOperatorGetActiveBases()
265 if (active_output_basis) { in CeedOperatorGetActiveBases()
267 if (!is_composite) { in CeedOperatorGetActiveBases()
272 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorGetActiveBases()
278 if (!*active_output_basis) CeedCall(CeedBasisReferenceCopy(basis, active_output_basis)); in CeedOperatorGetActiveBases()
327 if (active_input_rstr) { in CeedOperatorGetActiveElemRestrictions()
329 if (!is_composite) { in CeedOperatorGetActiveElemRestrictions()
334 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorGetActiveElemRestrictions()
340if (!*active_input_rstr) CeedCall(CeedElemRestrictionReferenceCopy(rstr, active_input_rstr)); in CeedOperatorGetActiveElemRestrictions()
348 if (active_output_rstr) { in CeedOperatorGetActiveElemRestrictions()
350 if (!is_composite) { in CeedOperatorGetActiveElemRestrictions()
355 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorGetActiveElemRestrictions()
361if (!*active_output_rstr) CeedCall(CeedElemRestrictionReferenceCopy(rstr, active_output_rstr)); in CeedOperatorGetActiveElemRestrictions()
392 // Check if field_label and op correspond in CeedOperatorContextSetGeneric()
393 if (field_label->from_op) { in CeedOperatorContextSetGeneric()
397 if (op->context_labels[i] == field_label) index = i; in CeedOperatorContextSetGeneric()
403 if (is_composite) { in CeedOperatorContextSetGeneric()
416 // Try every sub-operator, ok if some sub-operators do not have field in CeedOperatorContextSetGeneric()
417 if (ctx && field_label->sub_labels[i]) { in CeedOperatorContextSetGeneric()
459 // Check if field_label and op correspond in CeedOperatorContextGetGenericRead()
460 if (field_label->from_op) { in CeedOperatorContextGetGenericRead()
464 if (op->context_labels[i] == field_label) index = i; in CeedOperatorContextGetGenericRead()
470 if (is_composite) { in CeedOperatorContextGetGenericRead()
483 // Try every sub-operator, ok if some sub-operators do not have field in CeedOperatorContextGetGenericRead()
484 if (ctx && field_label->sub_labels[i]) { in CeedOperatorContextGetGenericRead()
522 // Check if field_label and op correspond in CeedOperatorContextRestoreGenericRead()
523 if (field_label->from_op) { in CeedOperatorContextRestoreGenericRead()
527 if (op->context_labels[i] == field_label) index = i; in CeedOperatorContextRestoreGenericRead()
533 if (is_composite) { in CeedOperatorContextRestoreGenericRead()
546 // Try every sub-operator, ok if some sub-operators do not have field in CeedOperatorContextRestoreGenericRead()
547 if (ctx && field_label->sub_labels[i]) { in CeedOperatorContextRestoreGenericRead()
595 `has_tensor_bases` is only set to `true` if every field uses a tensor-product basis.
615 if (basis != CEED_BASIS_NONE) { in CeedOperatorHasTensorBases()
626 if (basis != CEED_BASIS_NONE) { in CeedOperatorHasTensorBases()
636 @brief Get a boolean value indicating if the `CeedOperator` is immutable
686 @brief Get a boolean value indicating if the `CeedOperator` is composite
782 if (!ceed->OperatorCreate) { in CeedOperatorCreate()
799 if (dqf && dqf != CEED_QFUNCTION_NONE) CeedCall(CeedQFunctionReferenceCopy(dqf, &(*op)->dqf)); in CeedOperatorCreate()
800 if (dqfT && dqfT != CEED_QFUNCTION_NONE) CeedCall(CeedQFunctionReferenceCopy(dqfT, &(*op)->dqfT)); in CeedOperatorCreate()
824 if (!ceed->OperatorCreateAtPoints) { in CeedOperatorCreateAtPoints()
842 if (dqf && dqf != CEED_QFUNCTION_NONE) CeedCall(CeedQFunctionReferenceCopy(dqf, &(*op)->dqf)); in CeedOperatorCreateAtPoints()
843 if (dqfT && dqfT != CEED_QFUNCTION_NONE) CeedCall(CeedQFunctionReferenceCopy(dqfT, &(*op)->dqfT)); in CeedOperatorCreateAtPoints()
861 if (!ceed->CompositeOperatorCreate) { in CeedOperatorCreateComposite()
865 if (delegate) { in CeedOperatorCreateComposite()
879 if (ceed->CompositeOperatorCreate) CeedCall(ceed->CompositeOperatorCreate(*op)); in CeedOperatorCreateComposite()
888 …Note: If the value of `*op_copy` passed to this function is non-`NULL`, then it is assumed that `*…
889 … This `CeedOperator` will be destroyed if `*op_copy` is the only reference to this `CeedOperator`.
921 …@param[in] basis `CeedBasis` in which the field resides or @ref CEED_BASIS_NONE if colloc…
922 …o be used by CeedOperator or @ref CEED_VECTOR_ACTIVE if field is active or @ref CEED_VECTOR_NONE i…
951 if (rstr_type == CEED_RESTRICTION_POINTS) { in CeedOperatorSetField()
956 if (!op->first_points_rstr) { in CeedOperatorSetField()
968 if (basis == CEED_BASIS_NONE) CeedCall(CeedElemRestrictionGetElementSize(rstr, &num_qpts)); in CeedOperatorSetField()
982 if (!strcmp(field_name, qf_field_name)) { in CeedOperatorSetField()
993 if (!strcmp(field_name, qf_field_name)) { in CeedOperatorSetField()
1006 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorSetField()
1010 if (is_input) { in CeedOperatorSetField()
1011 if (op->input_size == -1) op->input_size = l_size; in CeedOperatorSetField()
1015 if (op->output_size == -1) op->output_size = l_size; in CeedOperatorSetField()
1023 if (rstr != CEED_ELEMRESTRICTION_NONE && !op->has_restriction) { in CeedOperatorSetField()
1028if (op->num_qpts == 0 && !is_at_points) op->num_qpts = num_qpts; // no consistent number of qpts … in CeedOperatorSetField()
1061 if (input_fields) *input_fields = op->input_fields; in CeedOperatorGetFields()
1062 if (output_fields) *output_fields = op->output_fields; in CeedOperatorGetFields()
1087 if (!op->first_points_rstr) { in CeedOperatorAtPointsSetPoints()
1103 …@brief Get a boolean value indicating if the `CeedOperator` was created with `CeedOperatorCreateAt…
1137 if (rstr_points) { in CeedOperatorAtPointsGetPoints()
1141 if (point_coords) { in CeedOperatorAtPointsGetPoints()
1151 `op_field` is set to `NULL` if the field is not found.
1172 if (!strcmp(name, field_name)) { in CeedOperatorGetFieldByName()
1179 if (!strcmp(name, field_name)) { in CeedOperatorGetFieldByName()
1274 if (field_name) CeedCall(CeedOperatorFieldGetName(op_field, field_name)); in CeedOperatorFieldGetData()
1275 if (rstr) CeedCall(CeedOperatorFieldGetElemRestriction(op_field, rstr)); in CeedOperatorFieldGetData()
1276 if (basis) CeedCall(CeedOperatorFieldGetBasis(op_field, basis)); in CeedOperatorFieldGetData()
1277 if (vec) CeedCall(CeedOperatorFieldGetVector(op_field, vec)); in CeedOperatorFieldGetData()
1304 if (composite_op->input_size == -1) composite_op->input_size = input_size; in CeedOperatorCompositeAddSub()
1305 if (composite_op->output_size == -1) composite_op->output_size = output_size; in CeedOperatorCompositeAddSub()
1362 `sub_op` is set to `NULL` if the sub operator is not found.
1385 if (sub_ops[i]->name && !strcmp(op_name, sub_ops[i]->name)) { in CeedOperatorCompositeGetSubByName()
1399 …@param[in] is_sequential Flag value to set, if `true`, forces the composite `CeedOperator` to exec…
1436 @brief Check if a `CeedOperator` is ready to be used.
1448 if (op->is_interface_setup) return CEED_ERROR_SUCCESS; in CeedOperatorCheckReady()
1452 if (!is_composite) CeedCall(CeedOperatorGetQFunction(op, &qf)); in CeedOperatorCheckReady()
1453 if (is_composite) { in CeedOperatorCheckReady()
1457 if (!num_suboperators) { in CeedOperatorCheckReady()
1487 if (qf && qf != CEED_QFUNCTION_NONE) CeedCall(CeedQFunctionSetImmutable(qf)); in CeedOperatorCheckReady()
1489 if (op->dqf && op->dqf != CEED_QFUNCTION_NONE) CeedCall(CeedQFunctionSetImmutable(op->dqf)); in CeedOperatorCheckReady()
1490 if (op->dqfT && op->dqfT != CEED_QFUNCTION_NONE) CeedCall(CeedQFunctionSetImmutable(op->dqfT)); in CeedOperatorCheckReady()
1510 if (input_size) *input_size = op->input_size; in CeedOperatorGetActiveVectorLengths()
1511 if (output_size) *output_size = op->output_size; in CeedOperatorGetActiveVectorLengths()
1514 if (is_composite && (op->input_size == -1 || op->output_size == -1)) { in CeedOperatorGetActiveVectorLengths()
1524 if (op->input_size == -1) op->input_size = sub_input_size; in CeedOperatorGetActiveVectorLengths()
1525 if (op->output_size == -1) op->output_size = sub_output_size; in CeedOperatorGetActiveVectorLengths()
1555 if (is_composite) { in CeedOperatorSetQFunctionAssemblyReuse()
1582 if (is_composite) { in CeedOperatorSetQFunctionAssemblyDataUpdateNeeded()
1615 if (name_len > 0) { in CeedOperatorSetName()
1634 if (op->name) { in CeedOperatorGetName()
1636 } else if (!op->is_composite) { in CeedOperatorGetName()
1640 if (qf) CeedCall(CeedQFunctionGetName(qf, name)); in CeedOperatorGetName()
1671 if (is_composite) { in CeedOperatorView_Core()
1685 if (is_full) CeedCall(CeedOperatorSingleView(sub_operators[i], tabs, stream)); in CeedOperatorView_Core()
1690 if (is_full) CeedCall(CeedOperatorSingleView(op, tabs, stream)); in CeedOperatorView_Core()
1835 if (is_composite) { in CeedOperatorGetFlopsEstimate()
1857 if (num_elem == 0) return CEED_ERROR_SUCCESS; in CeedOperatorGetFlopsEstimate()
1859 if (is_at_points) { in CeedOperatorGetFlopsEstimate()
1865 if (mem_type == CEED_MEM_DEVICE) { in CeedOperatorGetFlopsEstimate()
1890 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorGetFlopsEstimate()
1914 if (is_at_points) num_qpts = num_points; in CeedOperatorGetFlopsEstimate()
1929 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorGetFlopsEstimate()
1956 …Note: If the value of `ctx` passed into this function is non-`NULL`, then it is assumed that `ctx`…
1957 …This `CeedQFunctionContext` will be destroyed if `ctx` is the only reference to this `CeedQFunctio…
1977 if (qf_ctx) CeedCall(CeedQFunctionContextReferenceCopy(qf_ctx, ctx)); in CeedOperatorGetContext()
1982 …@brief Get label for a registered `CeedQFunctionContext` field, or `NULL` if no field has been reg…
1999 if (is_composite) { in CeedOperatorGetContextFieldLabel()
2001 // -- Check if composite label already created in CeedOperatorGetContextFieldLabel()
2003 if (!strcmp(op->context_labels[i]->name, field_name)) { in CeedOperatorGetContextFieldLabel()
2009 // -- Create composite label if needed in CeedOperatorGetContextFieldLabel()
2021 if (sub_operators[i]->qf->ctx) { in CeedOperatorGetContextFieldLabel()
2025 if (new_field_label_i) { in CeedOperatorGetContextFieldLabel()
2030 if (new_field_label->type && new_field_label->type != new_field_label_i->type) { in CeedOperatorGetContextFieldLabel()
2039if (new_field_label->num_values != 0 && new_field_label->num_values != new_field_label_i->num_valu… in CeedOperatorGetContextFieldLabel()
2052 // -- Cleanup if field was found in CeedOperatorGetContextFieldLabel()
2053 if (field_found) { in CeedOperatorGetContextFieldLabel()
2070 if (ctx) { in CeedOperatorGetContextFieldLabel()
2078 if (*field_label) { in CeedOperatorGetContextFieldLabel()
2082 if (op->num_context_labels == 0) { in CeedOperatorGetContextFieldLabel()
2085 } else if (op->num_context_labels == op->max_context_labels) { in CeedOperatorGetContextFieldLabel()
2254 …@param[in] in `CeedVector` containing input state or @ref CEED_VECTOR_NONE if there are no a…
2255 …of applying operator (must be distinct from `in`) or @ref CEED_VECTOR_NONE if there are no active …
2268 if (is_composite && op->ApplyComposite) { in CeedOperatorApply()
2271 } else if (!is_composite && op->Apply) { in CeedOperatorApply()
2277 if (out != CEED_VECTOR_NONE) CeedCall(CeedVectorSetValue(out, 0.0)); in CeedOperatorApply()
2296 …@param[in] in `CeedVector` containing input state or @ref CEED_VECTOR_NONE if there are no a…
2297 …of applying operator (must be distinct from `in`) or @ref CEED_VECTOR_NONE if there are no active …
2310 if (is_composite) { in CeedOperatorApplyAdd()
2312 if (op->ApplyAddComposite) { in CeedOperatorApplyAdd()
2324 } else if (op->num_elem > 0) { in CeedOperatorApplyAdd()
2340 …@param[in] in `CeedVector` containing input state or @ref CEED_VECTOR_NONE if there are no a…
2341 …of applying operator (must be distinct from `in`) or @ref CEED_VECTOR_NONE if there are no active …
2354 if (is_composite) { in CeedOperatorApplyAddActive()
2372if (vec != CEED_VECTOR_ACTIVE && vec != CEED_VECTOR_NONE) CeedCall(CeedVectorSetValue(vec, 0.0)); in CeedOperatorApplyAddActive()
2389if (vec != CEED_VECTOR_ACTIVE && vec != CEED_VECTOR_NONE) CeedCall(CeedVectorSetValue(vec, 0.0)); in CeedOperatorApplyAddActive()
2413 if (is_composite) { in CeedOperatorAssemblyDataStrip()
2437 if (!*op || CeedObjectDereference((CeedObject)*op) > 0) { in CeedOperatorDestroy()
2442 if ((*op)->Destroy) { in CeedOperatorDestroy()
2447 if ((*op)->input_fields[i]) { in CeedOperatorDestroy()
2448 if ((*op)->input_fields[i]->elem_rstr != CEED_ELEMRESTRICTION_NONE) { in CeedOperatorDestroy()
2451 if ((*op)->input_fields[i]->basis != CEED_BASIS_NONE) { in CeedOperatorDestroy()
2454if ((*op)->input_fields[i]->vec != CEED_VECTOR_ACTIVE && (*op)->input_fields[i]->vec != CEED_VECTO… in CeedOperatorDestroy()
2462 if ((*op)->output_fields[i]) { in CeedOperatorDestroy()
2464 if ((*op)->output_fields[i]->basis != CEED_BASIS_NONE) { in CeedOperatorDestroy()
2467if ((*op)->output_fields[i]->vec != CEED_VECTOR_ACTIVE && (*op)->output_fields[i]->vec != CEED_VEC… in CeedOperatorDestroy()
2484 if ((*op)->sub_operators[i]) { in CeedOperatorDestroy()
2493 if ((*op)->is_composite) { in CeedOperatorDestroy()