ceed-qfunction.c (fe329bd821eae5f384d5ab52e2e7868536448f49) ceed-qfunction.c (9e77b9c83fab354bd2f86ccd01d54da2efd469b5)
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/ceed.h>

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

902 @return An error code: 0 - success, otherwise - failure
903
904 @ref User
905**/
906int CeedQFunctionSetContext(CeedQFunction qf, CeedQFunctionContext ctx) {
907 int ierr;
908 ierr = CeedQFunctionContextDestroy(&qf->ctx); CeedChk(ierr);
909 qf->ctx = ctx;
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/ceed.h>

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

902 @return An error code: 0 - success, otherwise - failure
903
904 @ref User
905**/
906int CeedQFunctionSetContext(CeedQFunction qf, CeedQFunctionContext ctx) {
907 int ierr;
908 ierr = CeedQFunctionContextDestroy(&qf->ctx); CeedChk(ierr);
909 qf->ctx = ctx;
910 ierr = CeedQFunctionContextReference(ctx); CeedChk(ierr);
910 if (ctx) {
911 ierr = CeedQFunctionContextReference(ctx); CeedChk(ierr);
912 }
911 return CEED_ERROR_SUCCESS;
912}
913
914/**
915 @brief Set writability of CeedQFunctionContext when calling the `CeedQFunctionUser`.
916 The default value is 'is_writable == true'.
917
918 Setting `is_writable == true` indicates the `CeedQFunctionUser` writes

--- 162 unchanged lines hidden ---
913 return CEED_ERROR_SUCCESS;
914}
915
916/**
917 @brief Set writability of CeedQFunctionContext when calling the `CeedQFunctionUser`.
918 The default value is 'is_writable == true'.
919
920 Setting `is_writable == true` indicates the `CeedQFunctionUser` writes

--- 162 unchanged lines hidden ---