1*52b0e563SJeremy L Thompson /// Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and other CEED contributors. 2*52b0e563SJeremy L Thompson /// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3*52b0e563SJeremy L Thompson /// 4*52b0e563SJeremy L Thompson /// SPDX-License-Identifier: BSD-2-Clause 5*52b0e563SJeremy L Thompson /// 6*52b0e563SJeremy L Thompson /// This file is part of CEED: http://github.com/ceed 7*52b0e563SJeremy L Thompson 8*52b0e563SJeremy L Thompson /// @file 9*52b0e563SJeremy L Thompson /// Public header for user and utility components of libCEED 10*52b0e563SJeremy L Thompson #pragma once 11*52b0e563SJeremy L Thompson 12*52b0e563SJeremy L Thompson #if __STDC_VERSION__ >= 202311L 13*52b0e563SJeremy L Thompson #define DEPRECATED(msg) [[deprecated(msg)]] 14*52b0e563SJeremy L Thompson #elif defined(__GNUC__) || defined(__clang__) 15*52b0e563SJeremy L Thompson #define DEPRECATED(msg) __attribute__((deprecated(msg))) 16*52b0e563SJeremy L Thompson #else 17*52b0e563SJeremy L Thompson #define DEPRECATED(msg) 18*52b0e563SJeremy L Thompson #endif 19*52b0e563SJeremy L Thompson 20*52b0e563SJeremy L Thompson // Compatibility with previous composite CeedOperator naming 21*52b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCreateComposite()") 22*52b0e563SJeremy L Thompson static inline int CeedCompositeOperatorCreate(Ceed a, CeedOperator *b) { return CeedOperatorCreateComposite(a, b); } 23*52b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeAddSub()") 24*52b0e563SJeremy L Thompson static inline int CeedCompositeOperatorAddSub(CeedOperator a, CeedOperator b) { return CeedOperatorCompositeAddSub(a, b); } 25*52b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeGetNumSub()") 26*52b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetNumSub(CeedOperator a, CeedInt *b) { return CeedOperatorCompositeGetNumSub(a, b); } 27*52b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeGetSubList()") 28*52b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetSubList(CeedOperator a, CeedOperator **b) { return CeedOperatorCompositeGetSubList(a, b); } 29*52b0e563SJeremy L Thompson DEPRECATED("Use CeedCompositeOperatorGetSubByName()") 30*52b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetSubByName(CeedOperator a, const char *b, CeedOperator *c) { 31*52b0e563SJeremy L Thompson return CeedOperatorCompositeGetSubByName(a, b, c); 32*52b0e563SJeremy L Thompson } 33*52b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeGetMultiplicity()") 34*52b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetMultiplicity(CeedOperator a, CeedInt b, CeedInt *c, CeedVector d) { 35*52b0e563SJeremy L Thompson return CeedOperatorCompositeGetMultiplicity(a, b, c, d); 36*52b0e563SJeremy L Thompson } 37*52b0e563SJeremy L Thompson 38*52b0e563SJeremy L Thompson #undef DEPRECATED 39