ceed-operator.c (2efebffe38fa9227caaeab504b43e3a698cb86d7) ceed-operator.c (2c2ea1dbee80fceecd2c97f30b09f8c87820a53e)
1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8#include <ceed-impl.h>

--- 280 unchanged lines hidden (view full) ---

289 if (is_composite) {
290 CeedInt num_sub;
291 CeedOperator *sub_operators;
292
293 CeedCall(CeedCompositeOperatorGetNumSub(op, &num_sub));
294 CeedCall(CeedCompositeOperatorGetSubList(op, &sub_operators));
295 if (num_sub != field_label->num_sub_labels) {
296 // LCOV_EXCL_START
1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3//
4// SPDX-License-Identifier: BSD-2-Clause
5//
6// This file is part of CEED: http://github.com/ceed
7
8#include <ceed-impl.h>

--- 280 unchanged lines hidden (view full) ---

289 if (is_composite) {
290 CeedInt num_sub;
291 CeedOperator *sub_operators;
292
293 CeedCall(CeedCompositeOperatorGetNumSub(op, &num_sub));
294 CeedCall(CeedCompositeOperatorGetSubList(op, &sub_operators));
295 if (num_sub != field_label->num_sub_labels) {
296 // LCOV_EXCL_START
297 CeedError(op->ceed, CEED_ERROR_UNSUPPORTED, "Composite operator modified after ContextFieldLabel created");
297 return CeedError(op->ceed, CEED_ERROR_UNSUPPORTED, "Composite operator modified after ContextFieldLabel created");
298 // LCOV_EXCL_STOP
299 }
300
301 for (CeedInt i = 0; i < num_sub; i++) {
302 // Try every sub-operator, ok if some sub-operators do not have field
303 if (field_label->sub_labels[i] && sub_operators[i]->qf->ctx) {
304 CeedCall(CeedQFunctionContextSetGeneric(sub_operators[i]->qf->ctx, field_label->sub_labels[i], field_type, values));
305 }

--- 1543 unchanged lines hidden ---
298 // LCOV_EXCL_STOP
299 }
300
301 for (CeedInt i = 0; i < num_sub; i++) {
302 // Try every sub-operator, ok if some sub-operators do not have field
303 if (field_label->sub_labels[i] && sub_operators[i]->qf->ctx) {
304 CeedCall(CeedQFunctionContextSetGeneric(sub_operators[i]->qf->ctx, field_label->sub_labels[i], field_type, values));
305 }

--- 1543 unchanged lines hidden ---