ceed-qfunctioncontext.c (c52157525785c51910c8fadbbfd077683f26126a) ceed-qfunctioncontext.c (db002c03923317a1c3814dcd861330002c00a8ea)
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>

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

482
483 CeedCall(CeedGetObjectDelegate(ceed, &delegate, "Context"));
484 CeedCheck(delegate, ceed, CEED_ERROR_UNSUPPORTED, "Backend does not support ContextCreate");
485 CeedCall(CeedQFunctionContextCreate(delegate, ctx));
486 return CEED_ERROR_SUCCESS;
487 }
488
489 CeedCall(CeedCalloc(1, 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-impl.h>

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

482
483 CeedCall(CeedGetObjectDelegate(ceed, &delegate, "Context"));
484 CeedCheck(delegate, ceed, CEED_ERROR_UNSUPPORTED, "Backend does not support ContextCreate");
485 CeedCall(CeedQFunctionContextCreate(delegate, ctx));
486 return CEED_ERROR_SUCCESS;
487 }
488
489 CeedCall(CeedCalloc(1, ctx));
490 (*ctx)->ceed = ceed;
491 CeedCall(CeedReference(ceed));
490 CeedCall(CeedReferenceCopy(ceed, &(*ctx)->ceed));
492 (*ctx)->ref_count = 1;
493 CeedCall(ceed->QFunctionContextCreate(*ctx));
494 return CEED_ERROR_SUCCESS;
495}
496
497/**
498 @brief Copy the pointer to a CeedQFunctionContext.
499

--- 341 unchanged lines hidden ---
491 (*ctx)->ref_count = 1;
492 CeedCall(ceed->QFunctionContextCreate(*ctx));
493 return CEED_ERROR_SUCCESS;
494}
495
496/**
497 @brief Copy the pointer to a CeedQFunctionContext.
498

--- 341 unchanged lines hidden ---