xref: /libCEED/rust/libceed-sys/c-src/backends/opt/ceed-opt.h (revision ec3da8bcb94d9f0073544b37b5081a06981a86f7)
189c6efa4Sjeremylt // Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC.
289c6efa4Sjeremylt // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707.
389c6efa4Sjeremylt // All Rights reserved. See files LICENSE and NOTICE for details.
489c6efa4Sjeremylt //
589c6efa4Sjeremylt // This file is part of CEED, a collection of benchmarks, miniapps, software
689c6efa4Sjeremylt // libraries and APIs for efficient high-order finite element and spectral
789c6efa4Sjeremylt // element discretizations for exascale applications. For more information and
889c6efa4Sjeremylt // source code availability see http://github.com/ceed.
989c6efa4Sjeremylt //
1089c6efa4Sjeremylt // The CEED research is supported by the Exascale Computing Project 17-SC-20-SC,
1189c6efa4Sjeremylt // a collaborative effort of two U.S. Department of Energy organizations (Office
1289c6efa4Sjeremylt // of Science and the National Nuclear Security Administration) responsible for
1389c6efa4Sjeremylt // the planning and preparation of a capable exascale ecosystem, including
1489c6efa4Sjeremylt // software, applications, hardware, advanced system engineering and early
1589c6efa4Sjeremylt // testbed platforms, in support of the nation's exascale computing imperative.
1689c6efa4Sjeremylt 
173d576824SJeremy L Thompson #ifndef _ceed_opt_h
183d576824SJeremy L Thompson #define _ceed_opt_h
193d576824SJeremy L Thompson 
20*ec3da8bcSJed Brown #include <ceed/ceed.h>
21*ec3da8bcSJed Brown #include <ceed/backend.h>
223d576824SJeremy L Thompson #include <stdbool.h>
233d576824SJeremy L Thompson #include <stdint.h>
2489c6efa4Sjeremylt 
2589c6efa4Sjeremylt typedef struct {
2689c6efa4Sjeremylt   CeedInt blksize;
2789c6efa4Sjeremylt } Ceed_Opt;
2889c6efa4Sjeremylt 
2989c6efa4Sjeremylt typedef struct {
3089c6efa4Sjeremylt   CeedScalar *colograd1d;
3189c6efa4Sjeremylt } CeedBasis_Opt;
3289c6efa4Sjeremylt 
3389c6efa4Sjeremylt typedef struct {
3416911fdaSjeremylt   bool identityqf;
3589c6efa4Sjeremylt   CeedElemRestriction *blkrestr; /// Blocked versions of restrictions
3689c6efa4Sjeremylt   CeedVector
3789c6efa4Sjeremylt   *evecs;   /// E-vectors needed to apply operator (input followed by outputs)
3889c6efa4Sjeremylt   CeedScalar **edata;
3989c6efa4Sjeremylt   uint64_t *inputstate;  /// State counter of inputs
4089c6efa4Sjeremylt   CeedVector *evecsin;   /// Input E-vectors needed to apply operator
4189c6efa4Sjeremylt   CeedVector *evecsout;  /// Output E-vectors needed to apply operator
4289c6efa4Sjeremylt   CeedVector *qvecsin;   /// Input Q-vectors needed to apply operator
4389c6efa4Sjeremylt   CeedVector *qvecsout;  /// Output Q-vectors needed to apply operator
4489c6efa4Sjeremylt   CeedInt    numein;
4589c6efa4Sjeremylt   CeedInt    numeout;
4689c6efa4Sjeremylt } CeedOperator_Opt;
4789c6efa4Sjeremylt 
4889c6efa4Sjeremylt CEED_INTERN int CeedOperatorCreate_Opt(CeedOperator op);
493d576824SJeremy L Thompson 
503d576824SJeremy L Thompson #endif // _ceed_opt_h
51