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.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 *block_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_block_rstr; 34 } CeedOperator_Blocked; 35 36 CEED_INTERN int CeedOperatorCreate_Blocked(CeedOperator op); 37 38 #endif // CEED_BLOCKED_H 39