| ceed-qfunctioncontext.c (6a6b797f790a7f197cde448212987b3ead5d18fa) | ceed-qfunctioncontext.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#include <ceed-impl.h> --- 149 unchanged lines hidden (view full) --- 158 159 @return `Ceed` associated with `ctx` 160 161 @ref Backend 162**/ 163Ceed CeedQFunctionContextReturnCeed(CeedQFunctionContext ctx) { return ctx->ceed; } 164 165/** | 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#include <ceed-impl.h> --- 149 unchanged lines hidden (view full) --- 158 159 @return `Ceed` associated with `ctx` 160 161 @ref Backend 162**/ 163Ceed CeedQFunctionContextReturnCeed(CeedQFunctionContext ctx) { return ctx->ceed; } 164 165/** |
| 166 @brief Get the number of tabs to indent for @ref CeedQFunctionContextView() output 167 168 @param[in] ctx `CeedQFunctionContext` to get the number of view tabs 169 @param[out] num_tabs Number of view tabs 170 171 @return Error code: 0 - success, otherwise - failure 172 173 @ref Backend 174**/ 175int CeedQFunctionContextGetNumViewTabs(CeedQFunctionContext ctx, CeedInt *num_tabs) { 176 *num_tabs = ctx->num_tabs; 177 return CEED_ERROR_SUCCESS; 178} 179 180/** | |
| 181 @brief Check for valid data in a `CeedQFunctionContext` 182 183 @param[in] ctx `CeedQFunctionContext` to check validity 184 @param[out] has_valid_data Variable to store validity 185 186 @return An error code: 0 - success, otherwise - failure 187 188 @ref Backend --- 719 unchanged lines hidden (view full) --- 908**/ 909int CeedQFunctionContextSetNumViewTabs(CeedQFunctionContext ctx, CeedInt num_tabs) { 910 CeedCheck(num_tabs >= 0, CeedQFunctionContextReturnCeed(ctx), CEED_ERROR_MINOR, "Number of view tabs must be non-negative"); 911 ctx->num_tabs = num_tabs; 912 return CEED_ERROR_SUCCESS; 913} 914 915/** | 166 @brief Check for valid data in a `CeedQFunctionContext` 167 168 @param[in] ctx `CeedQFunctionContext` to check validity 169 @param[out] has_valid_data Variable to store validity 170 171 @return An error code: 0 - success, otherwise - failure 172 173 @ref Backend --- 719 unchanged lines hidden (view full) --- 893**/ 894int CeedQFunctionContextSetNumViewTabs(CeedQFunctionContext ctx, CeedInt num_tabs) { 895 CeedCheck(num_tabs >= 0, CeedQFunctionContextReturnCeed(ctx), CEED_ERROR_MINOR, "Number of view tabs must be non-negative"); 896 ctx->num_tabs = num_tabs; 897 return CEED_ERROR_SUCCESS; 898} 899 900/** |
| 901 @brief Get the number of tabs to indent for @ref CeedQFunctionContextView() output 902 903 @param[in] ctx `CeedQFunctionContext` to get the number of view tabs 904 @param[out] num_tabs Number of view tabs 905 906 @return Error code: 0 - success, otherwise - failure 907 908 @ref User 909**/ 910int CeedQFunctionContextGetNumViewTabs(CeedQFunctionContext ctx, CeedInt *num_tabs) { 911 *num_tabs = ctx->num_tabs; 912 return CEED_ERROR_SUCCESS; 913} 914 915/** |
|
| 916 @brief View a `CeedQFunctionContext` 917 918 @param[in] ctx `CeedQFunctionContext` to view 919 @param[in] stream Filestream to write to 920 921 @return An error code: 0 - success, otherwise - failure 922 923 @ref User --- 69 unchanged lines hidden --- | 916 @brief View a `CeedQFunctionContext` 917 918 @param[in] ctx `CeedQFunctionContext` to view 919 @param[in] stream Filestream to write to 920 921 @return An error code: 0 - success, otherwise - failure 922 923 @ref User --- 69 unchanged lines hidden --- |