| ceed-operator.c (890b9714d73dbfd3bee9bc93b04d3c87fc9b0ce8) | ceed-operator.c (5b6ec284bdf44cf80e0149478c71a532d645e5cd) |
|---|---|
| 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> --- 1483 unchanged lines hidden (view full) --- 1492 1493 @ref User 1494**/ 1495int CeedOperatorRestoreContextInt32Read(CeedOperator op, CeedContextFieldLabel field_label, const int **values) { 1496 return CeedOperatorContextRestoreGenericRead(op, field_label, CEED_CONTEXT_FIELD_INT32, values); 1497} 1498 1499/** | 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> --- 1483 unchanged lines hidden (view full) --- 1492 1493 @ref User 1494**/ 1495int CeedOperatorRestoreContextInt32Read(CeedOperator op, CeedContextFieldLabel field_label, const int **values) { 1496 return CeedOperatorContextRestoreGenericRead(op, field_label, CEED_CONTEXT_FIELD_INT32, values); 1497} 1498 1499/** |
| 1500 @brief Set QFunctionContext field holding boolean values. 1501 1502 For composite operators, the values are set in all sub-operator QFunctionContexts that have a matching `field_name`. 1503 1504 @param[in,out] op CeedOperator 1505 @param[in] field_label Label of field to set 1506 @param[in] values Values to set 1507 1508 @return An error code: 0 - success, otherwise - failure 1509 1510 @ref User 1511**/ 1512int CeedOperatorSetContextBoolean(CeedOperator op, CeedContextFieldLabel field_label, bool *values) { 1513 return CeedOperatorContextSetGeneric(op, field_label, CEED_CONTEXT_FIELD_BOOL, values); 1514} 1515 1516/** 1517 @brief Get QFunctionContext field holding boolean values, read-only. 1518 1519 For composite operators, the values correspond to the first sub-operator QFunctionContexts that has a matching `field_name`. 1520 1521 @param[in] op CeedOperator 1522 @param[in] field_label Label of field to get 1523 @param[out] num_values Number of int32 values in `values` 1524 @param[out] values Pointer to context values 1525 1526 @return An error code: 0 - success, otherwise - failure 1527 1528 @ref User 1529**/ 1530int CeedOperatorGetContextBooleanRead(CeedOperator op, CeedContextFieldLabel field_label, size_t *num_values, const bool **values) { 1531 return CeedOperatorContextGetGenericRead(op, field_label, CEED_CONTEXT_FIELD_BOOL, num_values, values); 1532} 1533 1534/** 1535 @brief Restore QFunctionContext field holding boolean values, read-only. 1536 1537 @param[in] op CeedOperator 1538 @param[in] field_label Label of field to get 1539 @param[out] values Pointer to context values 1540 1541 @return An error code: 0 - success, otherwise - failure 1542 1543 @ref User 1544**/ 1545int CeedOperatorRestoreContextBooleanRead(CeedOperator op, CeedContextFieldLabel field_label, const bool **values) { 1546 return CeedOperatorContextRestoreGenericRead(op, field_label, CEED_CONTEXT_FIELD_BOOL, values); 1547} 1548 1549/** |
|
| 1500 @brief Apply CeedOperator to a vector 1501 1502 This computes the action of the operator on the specified (active) input, yielding its (active) output. 1503 All inputs and outputs must be specified using CeedOperatorSetField(). 1504 1505 Note: Calling this function asserts that setup is complete and sets the CeedOperator as immutable. 1506 1507 @param[in] op CeedOperator to apply --- 178 unchanged lines hidden --- | 1550 @brief Apply CeedOperator to a vector 1551 1552 This computes the action of the operator on the specified (active) input, yielding its (active) output. 1553 All inputs and outputs must be specified using CeedOperatorSetField(). 1554 1555 Note: Calling this function asserts that setup is complete and sets the CeedOperator as immutable. 1556 1557 @param[in] op CeedOperator to apply --- 178 unchanged lines hidden --- |