| ceed.c (1c66c397a67401e1a222857807e6e5b7c45b88c0) | ceed.c (bb229da952f7e9779ba6cb3cd1ca2ebeac5feb1f) |
|---|---|
| 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#define _POSIX_C_SOURCE 200112 --- 515 unchanged lines hidden (view full) --- 524 CeedCall(CeedStringAllocCopy(resource, (char **)&ceed->op_fallback_resource)); 525 526 // Check validity 527 ceed->has_valid_op_fallback_resource = ceed->op_fallback_resource && ceed->resource && strcmp(ceed->op_fallback_resource, ceed->resource); 528 return CEED_ERROR_SUCCESS; 529} 530 531/** | 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#define _POSIX_C_SOURCE 200112 --- 515 unchanged lines hidden (view full) --- 524 CeedCall(CeedStringAllocCopy(resource, (char **)&ceed->op_fallback_resource)); 525 526 // Check validity 527 ceed->has_valid_op_fallback_resource = ceed->op_fallback_resource && ceed->resource && strcmp(ceed->op_fallback_resource, ceed->resource); 528 return CEED_ERROR_SUCCESS; 529} 530 531/** |
| 532 @brief Get the parent Ceed context associated with a fallback Ceed context for a CeedOperator 533 534 @param[in] ceed Ceed context 535 @param[out] parent Variable to store parent Ceed context 536 537 @return An error code: 0 - success, otherwise - failure 538 539 @ref Backend 540**/ 541int CeedGetOperatorFallbackParentCeed(Ceed ceed, Ceed *parent) { 542 *parent = ceed->op_fallback_parent; 543 return CEED_ERROR_SUCCESS; 544} 545 546/** | |
| 547 @brief Flag Ceed context as deterministic 548 549 @param[in] ceed Ceed to flag as deterministic 550 @param[out] is_deterministic Deterministic status to set 551 552 @return An error code: 0 - success, otherwise - failure 553 554 @ref Backend --- 724 unchanged lines hidden --- | 532 @brief Flag Ceed context as deterministic 533 534 @param[in] ceed Ceed to flag as deterministic 535 @param[out] is_deterministic Deterministic status to set 536 537 @return An error code: 0 - success, otherwise - failure 538 539 @ref Backend --- 724 unchanged lines hidden --- |