Lines Matching full:-
1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 // SPDX-License-Identifier: BSD-2-Clause
13 #include "ceed-ref.h"
15 //------------------------------------------------------------------------------
17 //------------------------------------------------------------------------------
23 *has_valid_array = impl->array; in CeedVectorHasValidArray_Ref()
27 //------------------------------------------------------------------------------
29 //------------------------------------------------------------------------------
35 *has_borrowed_array_of_type = impl->array_borrowed; in CeedVectorHasBorrowedArrayOfType_Ref()
39 //------------------------------------------------------------------------------
41 //------------------------------------------------------------------------------
51 …CeedCallBackend(CeedSetHostCeedScalarArray(array, copy_mode, length, (const CeedScalar **)&impl->a… in CeedVectorSetArray_Ref()
52 … (const CeedScalar **)&impl->array_borrowed, (const CeedScalar **)&impl->array)); in CeedVectorSetArray_Ref()
56 //------------------------------------------------------------------------------
58 //------------------------------------------------------------------------------
66 (*array) = impl->array_borrowed; in CeedVectorTakeArray_Ref()
67 impl->array_borrowed = NULL; in CeedVectorTakeArray_Ref()
68 impl->array = NULL; in CeedVectorTakeArray_Ref()
72 //------------------------------------------------------------------------------
74 //------------------------------------------------------------------------------
82 *array = impl->array; in CeedVectorGetArrayCore_Ref()
86 //------------------------------------------------------------------------------
88 //------------------------------------------------------------------------------
93 //------------------------------------------------------------------------------
95 //------------------------------------------------------------------------------
100 //------------------------------------------------------------------------------
102 //------------------------------------------------------------------------------
108 if (!impl->array) CeedCallBackend(CeedVectorSetArray(vec, CEED_MEM_HOST, CEED_COPY_VALUES, NULL)); in CeedVectorGetArrayWrite_Ref()
112 //------------------------------------------------------------------------------
114 //------------------------------------------------------------------------------
117 //------------------------------------------------------------------------------
119 //------------------------------------------------------------------------------
122 //------------------------------------------------------------------------------
124 //------------------------------------------------------------------------------
129 CeedCallBackend(CeedFree(&impl->array_owned)); in CeedVectorDestroy_Ref()
134 //------------------------------------------------------------------------------
136 //------------------------------------------------------------------------------
158 //------------------------------------------------------------------------------