| ceed.c (6a6b797f790a7f197cde448212987b3ead5d18fa) | ceed.c (690992b2ef7dcef8d00e259f2fa17075fde4c330) |
|---|---|
| 1// Copyright (c) 2017-2025, 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#define _POSIX_C_SOURCE 200112 --- 650 unchanged lines hidden (view full) --- 659**/ 660int CeedSetOperatorFallbackCeed(Ceed ceed, Ceed fallback_ceed) { 661 CeedCall(CeedReferenceCopy(fallback_ceed, &ceed->op_fallback_ceed)); 662 fallback_ceed->parent = ceed; 663 return CEED_ERROR_SUCCESS; 664} 665 666/** | 1// Copyright (c) 2017-2025, 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#define _POSIX_C_SOURCE 200112 --- 650 unchanged lines hidden (view full) --- 659**/ 660int CeedSetOperatorFallbackCeed(Ceed ceed, Ceed fallback_ceed) { 661 CeedCall(CeedReferenceCopy(fallback_ceed, &ceed->op_fallback_ceed)); 662 fallback_ceed->parent = ceed; 663 return CEED_ERROR_SUCCESS; 664} 665 666/** |
| 667 @brief Get the number of tabs to indent for @ref CeedView() output 668 669 @param[in] ceed `Ceed` to get the number of view tabs 670 @param[out] num_tabs Number of view tabs 671 672 @return Error code: 0 - success, otherwise - failure 673 674 @ref Backend 675**/ 676int CeedGetNumViewTabs(Ceed ceed, CeedInt *num_tabs) { 677 *num_tabs = ceed->num_tabs; 678 return CEED_ERROR_SUCCESS; 679} 680 681/** | |
| 682 @brief Flag `Ceed` context as deterministic 683 684 @param[in] ceed `Ceed` to flag as deterministic 685 @param[out] is_deterministic Deterministic status to set 686 687 @return An error code: 0 - success, otherwise - failure 688 689 @ref Backend --- 874 unchanged lines hidden (view full) --- 1564**/ 1565int CeedSetNumViewTabs(Ceed ceed, CeedInt num_tabs) { 1566 CeedCheck(num_tabs >= 0, ceed, CEED_ERROR_MINOR, "Number of view tabs must be non-negative"); 1567 ceed->num_tabs = num_tabs; 1568 return CEED_ERROR_SUCCESS; 1569} 1570 1571/** | 667 @brief Flag `Ceed` context as deterministic 668 669 @param[in] ceed `Ceed` to flag as deterministic 670 @param[out] is_deterministic Deterministic status to set 671 672 @return An error code: 0 - success, otherwise - failure 673 674 @ref Backend --- 874 unchanged lines hidden (view full) --- 1549**/ 1550int CeedSetNumViewTabs(Ceed ceed, CeedInt num_tabs) { 1551 CeedCheck(num_tabs >= 0, ceed, CEED_ERROR_MINOR, "Number of view tabs must be non-negative"); 1552 ceed->num_tabs = num_tabs; 1553 return CEED_ERROR_SUCCESS; 1554} 1555 1556/** |
| 1557 @brief Get the number of tabs to indent for @ref CeedView() output 1558 1559 @param[in] ceed `Ceed` to get the number of view tabs 1560 @param[out] num_tabs Number of view tabs 1561 1562 @return Error code: 0 - success, otherwise - failure 1563 1564 @ref User 1565**/ 1566int CeedGetNumViewTabs(Ceed ceed, CeedInt *num_tabs) { 1567 *num_tabs = ceed->num_tabs; 1568 return CEED_ERROR_SUCCESS; 1569} 1570 1571/** |
|
| 1572 @brief View a `Ceed` 1573 1574 @param[in] ceed `Ceed` to view 1575 @param[in] stream Filestream to write to 1576 1577 @return An error code: 0 - success, otherwise - failure 1578 1579 @ref User --- 288 unchanged lines hidden --- | 1572 @brief View a `Ceed` 1573 1574 @param[in] ceed `Ceed` to view 1575 @param[in] stream Filestream to write to 1576 1577 @return An error code: 0 - success, otherwise - failure 1578 1579 @ref User --- 288 unchanged lines hidden --- |