xref: /libCEED/backends/blocked/ceed-blocked.h (revision 2459f3f1cd4d7d2e210e1c26d669bd2fde41a0b6)
1 // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3 //
4 // SPDX-License-Identifier: BSD-2-Clause
5 //
6 // This file is part of CEED:  http://github.com/ceed
7 
8 #ifndef _ceed_blocked_h
9 #define _ceed_blocked_h
10 
11 #include <ceed/ceed.h>
12 #include <ceed/backend.h>
13 #include <stdbool.h>
14 #include <stdint.h>
15 
16 typedef struct {
17   CeedScalar *colo_grad_1d;
18 } CeedBasis_Blocked;
19 
20 typedef struct {
21   bool is_identity_qf, is_identity_restr_op;
22   CeedElemRestriction *blk_restr; /* Blocked versions of restrictions */
23   CeedVector *e_vecs_full; /* Full E-vectors, inputs followed by outputs */
24   uint64_t *input_states;  /* State counter of inputs */
25   CeedVector *e_vecs_in;   /* Element block input E-vectors  */
26   CeedVector *e_vecs_out;  /* Element block output E-vectors */
27   CeedVector *q_vecs_in;   /* Element block input Q-vectors  */
28   CeedVector *q_vecs_out;  /* Element block output Q-vectors */
29   CeedInt    num_inputs, num_outputs;
30   CeedInt    num_active_in, num_active_out;
31   CeedVector *qf_active_in;
32   CeedVector qf_l_vec;
33   CeedElemRestriction qf_blk_rstr;
34 } CeedOperator_Blocked;
35 
36 CEED_INTERN int CeedOperatorCreate_Blocked(CeedOperator op);
37 
38 #endif // _ceed_blocked_h
39