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 174a2e7687Sjeremylt #include <ceed-impl.h> 184a2e7687Sjeremylt #include <string.h> 194a2e7687Sjeremylt 204a2e7687Sjeremylt typedef struct { 214a2e7687Sjeremylt Ceed ceedref; 224a2e7687Sjeremylt } Ceed_Blocked; 234a2e7687Sjeremylt 244a2e7687Sjeremylt typedef struct { 254a2e7687Sjeremylt CeedScalar *colograd1d; 264a2e7687Sjeremylt } CeedBasis_Blocked; 274a2e7687Sjeremylt 284a2e7687Sjeremylt typedef struct { 294a2e7687Sjeremylt CeedElemRestriction *blkrestr; /// Blocked versions of restrictions 304a2e7687Sjeremylt CeedVector 314a2e7687Sjeremylt *evecs; /// E-vectors needed to apply operator (input followed by outputs) 324a2e7687Sjeremylt CeedScalar **edata; 334a2e7687Sjeremylt CeedScalar **qdata; /// Inputs followed by outputs 344a2e7687Sjeremylt CeedScalar 354a2e7687Sjeremylt **qdata_alloc; /// Allocated quadrature data arrays (to be freed by us) 364a2e7687Sjeremylt CeedScalar **indata; 374a2e7687Sjeremylt CeedScalar **outdata; 384a2e7687Sjeremylt CeedInt numein; 394a2e7687Sjeremylt CeedInt numeout; 404a2e7687Sjeremylt CeedInt numqin; 414a2e7687Sjeremylt CeedInt numqout; 424a2e7687Sjeremylt } CeedOperator_Blocked; 434a2e7687Sjeremylt 44*667bc5fcSjeremylt CEED_INTERN int CeedVectorCreate_Blocked(CeedInt n, CeedVector vec); 454a2e7687Sjeremylt 46*667bc5fcSjeremylt CEED_INTERN int CeedElemRestrictionCreate_Blocked( CeedMemType mtype, 47*667bc5fcSjeremylt CeedCopyMode cmode, const CeedInt *indices, CeedElemRestriction r); 484a2e7687Sjeremylt 49*667bc5fcSjeremylt CEED_INTERN int CeedBasisCreateTensorH1_Blocked(CeedInt dim, CeedInt P1d, 504a2e7687Sjeremylt CeedInt Q1d, const CeedScalar *interp1d, 514a2e7687Sjeremylt const CeedScalar *grad1d, 524a2e7687Sjeremylt const CeedScalar *qref1d, 534a2e7687Sjeremylt const CeedScalar *qweight1d, 544a2e7687Sjeremylt CeedBasis basis); 554a2e7687Sjeremylt 56*667bc5fcSjeremylt CEED_INTERN int CeedBasisCreateH1_Blocked(CeedElemTopology topo, CeedInt dim, 574a2e7687Sjeremylt CeedInt ndof, CeedInt nqpts, 584a2e7687Sjeremylt const CeedScalar *interp, 594a2e7687Sjeremylt const CeedScalar *grad, 604a2e7687Sjeremylt const CeedScalar *qref, 614a2e7687Sjeremylt const CeedScalar *qweight, 624a2e7687Sjeremylt CeedBasis basis); 634a2e7687Sjeremylt 644a2e7687Sjeremylt CEED_INTERN int CeedQFunctionCreate_Blocked(CeedQFunction qf); 654a2e7687Sjeremylt 664a2e7687Sjeremylt CEED_INTERN int CeedOperatorCreate_Blocked(CeedOperator op); 67