xref: /libCEED/rust/libceed-sys/c-src/backends/blocked/ceed-blocked.h (revision a0162de9bfaf277d9d50534bbae669b234f08437)
14a2e7687Sjeremylt // Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC.
24a2e7687Sjeremylt // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707.
34a2e7687Sjeremylt // All Rights reserved. See files LICENSE and NOTICE for details.
44a2e7687Sjeremylt //
54a2e7687Sjeremylt // This file is part of CEED, a collection of benchmarks, miniapps, software
64a2e7687Sjeremylt // libraries and APIs for efficient high-order finite element and spectral
74a2e7687Sjeremylt // element discretizations for exascale applications. For more information and
84a2e7687Sjeremylt // source code availability see http://github.com/ceed.
94a2e7687Sjeremylt //
104a2e7687Sjeremylt // The CEED research is supported by the Exascale Computing Project 17-SC-20-SC,
114a2e7687Sjeremylt // a collaborative effort of two U.S. Department of Energy organizations (Office
124a2e7687Sjeremylt // of Science and the National Nuclear Security Administration) responsible for
134a2e7687Sjeremylt // the planning and preparation of a capable exascale ecosystem, including
144a2e7687Sjeremylt // software, applications, hardware, advanced system engineering and early
154a2e7687Sjeremylt // testbed platforms, in support of the nation's exascale computing imperative.
164a2e7687Sjeremylt 
173d576824SJeremy L Thompson #ifndef _ceed_blocked_h
183d576824SJeremy L Thompson #define _ceed_blocked_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>
244a2e7687Sjeremylt 
254a2e7687Sjeremylt typedef struct {
26d1d35e2fSjeremylt   CeedScalar *colo_grad_1d;
2752d6035fSJeremy L Thompson } CeedBasis_Blocked;
2852d6035fSJeremy L Thompson 
2952d6035fSJeremy L Thompson typedef struct {
300b454692Sjeremylt   bool is_identity_qf, is_identity_restr_op;
31*a0162de9SJeremy L Thompson   CeedElemRestriction *blk_restr; /* Blocked versions of restrictions */
32*a0162de9SJeremy L Thompson   CeedVector *e_vecs;      /* All E-vectors, inputs followed by outputs */
33*a0162de9SJeremy L Thompson   uint64_t *input_state;   /* State counter of inputs */
34*a0162de9SJeremy L Thompson   CeedVector *e_vecs_in;   /* Input E-vectors needed to apply operator */
35*a0162de9SJeremy L Thompson   CeedVector *e_vecs_out;  /* Output E-vectors needed to apply operator */
36*a0162de9SJeremy L Thompson   CeedVector *q_vecs_in;   /* Input Q-vectors needed to apply operator */
37*a0162de9SJeremy L Thompson   CeedVector *q_vecs_out;  /* Output Q-vectors needed to apply operator */
38d1d35e2fSjeremylt   CeedInt    num_e_vecs_in;
39d1d35e2fSjeremylt   CeedInt    num_e_vecs_out;
40bb219a0fSJeremy L Thompson   CeedInt    qf_num_active_in, qf_num_active_out;
41bb219a0fSJeremy L Thompson   CeedVector *qf_active_in;
42bb219a0fSJeremy L Thompson   CeedVector qf_lvec;
43bb219a0fSJeremy L Thompson   CeedElemRestriction qf_blk_rstr;
444a2e7687Sjeremylt } CeedOperator_Blocked;
454a2e7687Sjeremylt 
464a2e7687Sjeremylt CEED_INTERN int CeedOperatorCreate_Blocked(CeedOperator op);
473d576824SJeremy L Thompson 
483d576824SJeremy L Thompson #endif // _ceed_blocked_h
49