ceed-qfunction.c (6a6b797f790a7f197cde448212987b3ead5d18fa) ceed-qfunction.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>

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

334 @ref Backend
335**/
336int CeedQFunctionGetUserFunction(CeedQFunction qf, CeedQFunctionUser *f) {
337 *f = qf->function;
338 return CEED_ERROR_SUCCESS;
339}
340
341/**
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>

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

334 @ref Backend
335**/
336int CeedQFunctionGetUserFunction(CeedQFunction qf, CeedQFunctionUser *f) {
337 *f = qf->function;
338 return CEED_ERROR_SUCCESS;
339}
340
341/**
342 @brief Get the number of tabs to indent for @ref CeedQFunctionView() output
343
344 @param[in] qf `CeedQFunction` to get the number of view tabs
345 @param[out] num_tabs Number of view tabs
346
347 @return Error code: 0 - success, otherwise - failure
348
349 @ref Backend
350**/
351int CeedQFunctionGetNumViewTabs(CeedQFunction qf, CeedInt *num_tabs) {
352 *num_tabs = qf->num_tabs;
353 return CEED_ERROR_SUCCESS;
354}
355
356/**
357 @brief Get global context for a `CeedQFunction`.
358
359 Note: For `CeedQFunction` from the Fortran interface, this function will return the Fortran context `CeedQFunctionContext`.
360
361 @param[in] qf CeedQFunction
362 @param[out] ctx Variable to store CeedQFunctionContext
363
364 @return An error code: 0 - success, otherwise - failure

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

1038**/
1039int CeedQFunctionSetNumViewTabs(CeedQFunction qf, CeedInt num_tabs) {
1040 CeedCheck(num_tabs >= 0, CeedQFunctionReturnCeed(qf), CEED_ERROR_MINOR, "Number of view tabs must be non-negative");
1041 qf->num_tabs = num_tabs;
1042 return CEED_ERROR_SUCCESS;
1043}
1044
1045/**
342 @brief Get global context for a `CeedQFunction`.
343
344 Note: For `CeedQFunction` from the Fortran interface, this function will return the Fortran context `CeedQFunctionContext`.
345
346 @param[in] qf CeedQFunction
347 @param[out] ctx Variable to store CeedQFunctionContext
348
349 @return An error code: 0 - success, otherwise - failure

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

1023**/
1024int CeedQFunctionSetNumViewTabs(CeedQFunction qf, CeedInt num_tabs) {
1025 CeedCheck(num_tabs >= 0, CeedQFunctionReturnCeed(qf), CEED_ERROR_MINOR, "Number of view tabs must be non-negative");
1026 qf->num_tabs = num_tabs;
1027 return CEED_ERROR_SUCCESS;
1028}
1029
1030/**
1031 @brief Get the number of tabs to indent for @ref CeedQFunctionView() output
1032
1033 @param[in] qf `CeedQFunction` to get the number of view tabs
1034 @param[out] num_tabs Number of view tabs
1035
1036 @return Error code: 0 - success, otherwise - failure
1037
1038 @ref User
1039**/
1040int CeedQFunctionGetNumViewTabs(CeedQFunction qf, CeedInt *num_tabs) {
1041 *num_tabs = qf->num_tabs;
1042 return CEED_ERROR_SUCCESS;
1043}
1044
1045/**
1046 @brief View a `CeedQFunction`
1047
1048 @param[in] qf `CeedQFunction` to view
1049 @param[in] stream Stream to write; typically `stdout` or a file
1050
1051 @return Error code: 0 - success, otherwise - failure
1052
1053 @ref User

--- 125 unchanged lines hidden ---
1046 @brief View a `CeedQFunction`
1047
1048 @param[in] qf `CeedQFunction` to view
1049 @param[in] stream Stream to write; typically `stdout` or a file
1050
1051 @return Error code: 0 - success, otherwise - failure
1052
1053 @ref User

--- 125 unchanged lines hidden ---