1*4a2e7687Sjeremylt // Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC. 2*4a2e7687Sjeremylt // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. 3*4a2e7687Sjeremylt // All Rights reserved. See files LICENSE and NOTICE for details. 4*4a2e7687Sjeremylt // 5*4a2e7687Sjeremylt // This file is part of CEED, a collection of benchmarks, miniapps, software 6*4a2e7687Sjeremylt // libraries and APIs for efficient high-order finite element and spectral 7*4a2e7687Sjeremylt // element discretizations for exascale applications. For more information and 8*4a2e7687Sjeremylt // source code availability see http://github.com/ceed. 9*4a2e7687Sjeremylt // 10*4a2e7687Sjeremylt // The CEED research is supported by the Exascale Computing Project 17-SC-20-SC, 11*4a2e7687Sjeremylt // a collaborative effort of two U.S. Department of Energy organizations (Office 12*4a2e7687Sjeremylt // of Science and the National Nuclear Security Administration) responsible for 13*4a2e7687Sjeremylt // the planning and preparation of a capable exascale ecosystem, including 14*4a2e7687Sjeremylt // software, applications, hardware, advanced system engineering and early 15*4a2e7687Sjeremylt // testbed platforms, in support of the nation's exascale computing imperative. 16*4a2e7687Sjeremylt 17*4a2e7687Sjeremylt #include <ceed-impl.h> 18*4a2e7687Sjeremylt #include <string.h> 19*4a2e7687Sjeremylt 20*4a2e7687Sjeremylt typedef struct { 21*4a2e7687Sjeremylt Ceed ceedref; 22*4a2e7687Sjeremylt } Ceed_Blocked; 23*4a2e7687Sjeremylt 24*4a2e7687Sjeremylt typedef struct { 25*4a2e7687Sjeremylt CeedScalar *colograd1d; 26*4a2e7687Sjeremylt } CeedBasis_Blocked; 27*4a2e7687Sjeremylt 28*4a2e7687Sjeremylt typedef struct { 29*4a2e7687Sjeremylt CeedElemRestriction *blkrestr; /// Blocked versions of restrictions 30*4a2e7687Sjeremylt CeedVector 31*4a2e7687Sjeremylt *evecs; /// E-vectors needed to apply operator (input followed by outputs) 32*4a2e7687Sjeremylt CeedScalar **edata; 33*4a2e7687Sjeremylt CeedScalar **qdata; /// Inputs followed by outputs 34*4a2e7687Sjeremylt CeedScalar 35*4a2e7687Sjeremylt **qdata_alloc; /// Allocated quadrature data arrays (to be freed by us) 36*4a2e7687Sjeremylt CeedScalar **indata; 37*4a2e7687Sjeremylt CeedScalar **outdata; 38*4a2e7687Sjeremylt CeedInt numein; 39*4a2e7687Sjeremylt CeedInt numeout; 40*4a2e7687Sjeremylt CeedInt numqin; 41*4a2e7687Sjeremylt CeedInt numqout; 42*4a2e7687Sjeremylt } CeedOperator_Blocked; 43*4a2e7687Sjeremylt 44*4a2e7687Sjeremylt CEED_INTERN int CeedVectorCreate_Blocked(Ceed ceed, CeedInt n, CeedVector vec); 45*4a2e7687Sjeremylt 46*4a2e7687Sjeremylt CEED_INTERN int CeedElemRestrictionCreate_Blocked(CeedElemRestriction r, 47*4a2e7687Sjeremylt CeedMemType mtype, 48*4a2e7687Sjeremylt CeedCopyMode cmode, const CeedInt *indices); 49*4a2e7687Sjeremylt 50*4a2e7687Sjeremylt CEED_INTERN int CeedBasisCreateTensorH1_Blocked(Ceed ceed, CeedInt dim, 51*4a2e7687Sjeremylt CeedInt P1d, 52*4a2e7687Sjeremylt CeedInt Q1d, const CeedScalar *interp1d, 53*4a2e7687Sjeremylt const CeedScalar *grad1d, 54*4a2e7687Sjeremylt const CeedScalar *qref1d, 55*4a2e7687Sjeremylt const CeedScalar *qweight1d, 56*4a2e7687Sjeremylt CeedBasis basis); 57*4a2e7687Sjeremylt 58*4a2e7687Sjeremylt CEED_INTERN int CeedBasisCreateH1_Blocked(Ceed ceed, CeedElemTopology topo, 59*4a2e7687Sjeremylt CeedInt dim, 60*4a2e7687Sjeremylt CeedInt ndof, CeedInt nqpts, 61*4a2e7687Sjeremylt const CeedScalar *interp, 62*4a2e7687Sjeremylt const CeedScalar *grad, 63*4a2e7687Sjeremylt const CeedScalar *qref, 64*4a2e7687Sjeremylt const CeedScalar *qweight, 65*4a2e7687Sjeremylt CeedBasis basis); 66*4a2e7687Sjeremylt 67*4a2e7687Sjeremylt CEED_INTERN int CeedQFunctionCreate_Blocked(CeedQFunction qf); 68*4a2e7687Sjeremylt 69*4a2e7687Sjeremylt CEED_INTERN int CeedOperatorCreate_Blocked(CeedOperator op); 70