xref: /libCEED/rust/libceed-sys/c-src/backends/opt/ceed-opt.h (revision d1d35e2f02dc969aee8debf3fd943dd784aa847a)
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 
20ec3da8bcSJed Brown #include <ceed/ceed.h>
21ec3da8bcSJed Brown #include <ceed/backend.h>
223d576824SJeremy L Thompson #include <stdbool.h>
233d576824SJeremy L Thompson #include <stdint.h>
2489c6efa4Sjeremylt 
2589c6efa4Sjeremylt typedef struct {
26*d1d35e2fSjeremylt   CeedInt blk_size;
2789c6efa4Sjeremylt } Ceed_Opt;
2889c6efa4Sjeremylt 
2989c6efa4Sjeremylt typedef struct {
30*d1d35e2fSjeremylt   CeedScalar *colo_grad_1d;
3189c6efa4Sjeremylt } CeedBasis_Opt;
3289c6efa4Sjeremylt 
3389c6efa4Sjeremylt typedef struct {
34*d1d35e2fSjeremylt   bool identity_qf;
35*d1d35e2fSjeremylt   CeedElemRestriction *blk_restr; /* Blocked versions of restrictions */
3689c6efa4Sjeremylt   CeedVector
37*d1d35e2fSjeremylt   *e_vecs;   /* E-vectors needed to apply operator (input followed by outputs) */
38*d1d35e2fSjeremylt   CeedScalar **e_data;
39*d1d35e2fSjeremylt   uint64_t *input_state;   /* State counter of inputs */
40*d1d35e2fSjeremylt   CeedVector *e_vecs_in;   /* Input E-vectors needed to apply operator */
41*d1d35e2fSjeremylt   CeedVector *e_vecs_out;  /* Output E-vectors needed to apply operator */
42*d1d35e2fSjeremylt   CeedVector *q_vecs_in;   /* Input Q-vectors needed to apply operator */
43*d1d35e2fSjeremylt   CeedVector *q_vecs_out;  /* Output Q-vectors needed to apply operator */
44*d1d35e2fSjeremylt   CeedInt    num_e_vecs_in;
45*d1d35e2fSjeremylt   CeedInt    num_e_vecs_out;
4689c6efa4Sjeremylt } CeedOperator_Opt;
4789c6efa4Sjeremylt 
4889c6efa4Sjeremylt CEED_INTERN int CeedOperatorCreate_Opt(CeedOperator op);
493d576824SJeremy L Thompson 
503d576824SJeremy L Thompson #endif // _ceed_opt_h
51