xref: /libCEED/rust/libceed-sys/c-src/backends/blocked/ceed-blocked.h (revision 3d8e882215d238700cdceb37404f76ca7fa24eaa)
1*3d8e8822SJeremy L Thompson // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2*3d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
34a2e7687Sjeremylt //
4*3d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause
54a2e7687Sjeremylt //
6*3d8e8822SJeremy L Thompson // This file is part of CEED:  http://github.com/ceed
74a2e7687Sjeremylt 
83d576824SJeremy L Thompson #ifndef _ceed_blocked_h
93d576824SJeremy L Thompson #define _ceed_blocked_h
103d576824SJeremy L Thompson 
11ec3da8bcSJed Brown #include <ceed/ceed.h>
12ec3da8bcSJed Brown #include <ceed/backend.h>
133d576824SJeremy L Thompson #include <stdbool.h>
143d576824SJeremy L Thompson #include <stdint.h>
154a2e7687Sjeremylt 
164a2e7687Sjeremylt typedef struct {
17d1d35e2fSjeremylt   CeedScalar *colo_grad_1d;
1852d6035fSJeremy L Thompson } CeedBasis_Blocked;
1952d6035fSJeremy L Thompson 
2052d6035fSJeremy L Thompson typedef struct {
210b454692Sjeremylt   bool is_identity_qf, is_identity_restr_op;
22a0162de9SJeremy L Thompson   CeedElemRestriction *blk_restr; /* Blocked versions of restrictions */
234fc1f125SJeremy L Thompson   CeedVector *e_vecs_full; /* Full E-vectors, inputs followed by outputs */
244fc1f125SJeremy L Thompson   uint64_t *input_states;  /* State counter of inputs */
254fc1f125SJeremy L Thompson   CeedVector *e_vecs_in;   /* Element block input E-vectors  */
264fc1f125SJeremy L Thompson   CeedVector *e_vecs_out;  /* Element block output E-vectors */
274fc1f125SJeremy L Thompson   CeedVector *q_vecs_in;   /* Element block input Q-vectors  */
284fc1f125SJeremy L Thompson   CeedVector *q_vecs_out;  /* Element block output Q-vectors */
294fc1f125SJeremy L Thompson   CeedInt    num_inputs, num_outputs;
304fc1f125SJeremy L Thompson   CeedInt    num_active_in, num_active_out;
31bb219a0fSJeremy L Thompson   CeedVector *qf_active_in;
324fc1f125SJeremy L Thompson   CeedVector qf_l_vec;
33bb219a0fSJeremy L Thompson   CeedElemRestriction qf_blk_rstr;
344a2e7687Sjeremylt } CeedOperator_Blocked;
354a2e7687Sjeremylt 
364a2e7687Sjeremylt CEED_INTERN int CeedOperatorCreate_Blocked(CeedOperator op);
373d576824SJeremy L Thompson 
383d576824SJeremy L Thompson #endif // _ceed_blocked_h
39