| ceed-operator.c (ff40a6a712cac5a35ddf9c674f7779549394649b) | ceed-operator.c (6222cb59140a973754caeb8d899c33bfbd3dcb5f) |
|---|---|
| 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/ceed.h> --- 731 unchanged lines hidden (view full) --- 740 // LCOV_EXCL_STOP 741 742 CeedInt num_elem; 743 ierr = CeedElemRestrictionGetNumElements(r, &num_elem); CeedChk(ierr); 744 if (r != CEED_ELEMRESTRICTION_NONE && op->has_restriction && 745 op->num_elem != num_elem) 746 // LCOV_EXCL_START 747 return CeedError(op->ceed, CEED_ERROR_DIMENSION, | 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/ceed.h> --- 731 unchanged lines hidden (view full) --- 740 // LCOV_EXCL_STOP 741 742 CeedInt num_elem; 743 ierr = CeedElemRestrictionGetNumElements(r, &num_elem); CeedChk(ierr); 744 if (r != CEED_ELEMRESTRICTION_NONE && op->has_restriction && 745 op->num_elem != num_elem) 746 // LCOV_EXCL_START 747 return CeedError(op->ceed, CEED_ERROR_DIMENSION, |
| 748 "ElemRestriction with %" CeedInt_FMT " elements incompatible with prior " | 748 "ElemRestriction with %" CeedInt_FMT " elements incompatible with prior %" |
| 749 CeedInt_FMT " elements", num_elem, op->num_elem); 750 // LCOV_EXCL_STOP 751 752 CeedInt num_qpts = 0; 753 if (b != CEED_BASIS_COLLOCATED) { 754 ierr = CeedBasisGetNumQuadraturePoints(b, &num_qpts); CeedChk(ierr); 755 if (op->num_qpts && op->num_qpts != num_qpts) 756 // LCOV_EXCL_START --- 985 unchanged lines hidden --- | 749 CeedInt_FMT " elements", num_elem, op->num_elem); 750 // LCOV_EXCL_STOP 751 752 CeedInt num_qpts = 0; 753 if (b != CEED_BASIS_COLLOCATED) { 754 ierr = CeedBasisGetNumQuadraturePoints(b, &num_qpts); CeedChk(ierr); 755 if (op->num_qpts && op->num_qpts != num_qpts) 756 // LCOV_EXCL_START --- 985 unchanged lines hidden --- |