1*9ba83ac0SJeremy L Thompson // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 23d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 34a2e7687Sjeremylt // 43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 54a2e7687Sjeremylt // 63d8e8822SJeremy L Thompson // This file is part of CEED: http://github.com/ceed 7509d4af6SJeremy L Thompson #pragma once 83d576824SJeremy L Thompson 949aac155SJeremy L Thompson #include <ceed.h> 10ec3da8bcSJed Brown #include <ceed/backend.h> 113d576824SJeremy L Thompson #include <stdbool.h> 123d576824SJeremy L Thompson #include <stdint.h> 134a2e7687Sjeremylt 144a2e7687Sjeremylt typedef struct { 15d1d35e2fSjeremylt CeedScalar *colo_grad_1d; 1652d6035fSJeremy L Thompson } CeedBasis_Blocked; 1752d6035fSJeremy L Thompson 1852d6035fSJeremy L Thompson typedef struct { 19edb2538eSJeremy L Thompson bool is_identity_qf, is_identity_rstr_op; 20f8a0df59SJeremy L Thompson bool *skip_rstr_in, *skip_rstr_out, *apply_add_basis_out; 21f8a0df59SJeremy L Thompson CeedInt *e_data_out_indices; 224fc1f125SJeremy L Thompson uint64_t *input_states; /* State counter of inputs */ 233aab95c0SJeremy L Thompson CeedVector *e_vecs_full; /* Full E-vectors, inputs followed by outputs */ 244fc1f125SJeremy L Thompson CeedVector *e_vecs_in; /* Element block input E-vectors */ 254fc1f125SJeremy L Thompson CeedVector *e_vecs_out; /* Element block output E-vectors */ 264fc1f125SJeremy L Thompson CeedVector *q_vecs_in; /* Element block input Q-vectors */ 274fc1f125SJeremy L Thompson CeedVector *q_vecs_out; /* Element block output Q-vectors */ 283aab95c0SJeremy L Thompson CeedElemRestriction *block_rstr; /* Blocked versions of restrictions */ 294fc1f125SJeremy L Thompson CeedInt num_inputs, num_outputs; 30ff8551c5SJeremy L Thompson CeedInt qf_size_in, qf_size_out; 314fc1f125SJeremy L Thompson CeedVector qf_l_vec; 32ad70ee2cSJeremy L Thompson CeedElemRestriction qf_block_rstr; 334a2e7687Sjeremylt } CeedOperator_Blocked; 344a2e7687Sjeremylt 354a2e7687Sjeremylt CEED_INTERN int CeedOperatorCreate_Blocked(CeedOperator op); 36