1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/966382dc56242773704ef5f5cee7aa2db3ebc577/include/petscdmceed.h">Actual source code: petscdmceed.h</a></center><br>
<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-04-30T18:14:50+00:00">
</head>
<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1"> 1: </a><font color="#A020F0">#pragma once</font>
<a name="line3"> 3: </a>#include <A href="../include/petscdm.h.html"><petscdm.h></A>
<a name="line5"> 5: </a><font color="#A020F0">#if defined(PETSC_HAVE_LIBCEED)</font>
<a name="line6"> 6: </a><font color="#A020F0"> #include <ceed.h></font>
<a name="line8"> 8: </a><font color="#A020F0"> #if defined(PETSC_CLANG_STATIC_ANALYZER)</font>
<a name="line9"> 9: </a><strong><font color="#4169E1">void PetscCallCEED(CeedErrorType)</font></strong>;
<a name="line10"> 10: </a><font color="#A020F0"> #else</font>
<a name="line11"> 11: </a><strong><font color="#228B22"> #define PetscCallCEED(...) \</font></strong>
<a name="line12"> 12: </a><strong><font color="#228B22"> do { \</font></strong>
<a name="line13"> 13: </a><strong><font color="#228B22"> CeedErrorType ierr_ceed_ = __VA_ARGS__; \</font></strong>
<a name="line14"> 14: </a><strong><font color="#228B22"> <a href="../manualpages/Sys/PetscCheck.html">PetscCheck</a>(ierr_ceed_ == CEED_ERROR_SUCCESS, <a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PETSC_ERR_LIB</a>, </font><font color="#666666">"libCEED error: %s"</font><font color="#228B22">, CeedErrorTypes[ierr_ceed_]); \</font></strong>
<a name="line15"> 15: </a><strong><font color="#228B22"> } while (0)</font></strong>
<a name="line16"> 16: </a><font color="#A020F0"> #endif </font><font color="#B22222">/* PETSC_CLANG_STATIC_ANALYZER */</font><font color="#A020F0"></font>
<a name="line17"> 17: </a><strong><font color="#228B22"> #define CHKERRQ_CEED(...) PetscCallCEED(__VA_ARGS__)</font></strong>
<a name="line19"> 19: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/DMGetCeed.html">DMGetCeed</a>(<a href="../manualpages/DM/DM.html">DM</a>, Ceed *)</font></strong>;
<a name="line21"> 21: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> VecGetCeedVector(<a href="../manualpages/Vec/Vec.html">Vec</a>, Ceed, CeedVector *)</font></strong>;
<a name="line22"> 22: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> VecGetCeedVectorRead(<a href="../manualpages/Vec/Vec.html">Vec</a>, Ceed, CeedVector *)</font></strong>;
<a name="line23"> 23: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> VecRestoreCeedVector(<a href="../manualpages/Vec/Vec.html">Vec</a>, CeedVector *)</font></strong>;
<a name="line24"> 24: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> VecRestoreCeedVectorRead(<a href="../manualpages/Vec/Vec.html">Vec</a>, CeedVector *)</font></strong>;
<a name="line25"> 25: </a><strong><font color="#4169E1">PETSC_INTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCeedCreate_Internal(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, CeedQFunctionUser, const char *, DMCeed *)</font></strong>;
<a name="line26"> 26: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCeedCreate(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, CeedQFunctionUser, const char *)</font></strong>;
<a name="line27"> 27: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCeedCreateFVM(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, CeedQFunctionUser, const char *, CeedQFunctionContext)</font></strong>;
<a name="line29"> 29: </a><font color="#4169E1"><a name="_PETSc_DMCEED"></a>struct _PETSc_DMCEED </font>{
<a name="line30"> 30: </a> CeedBasis basis; <font color="#B22222">// Basis for element function space</font>
<a name="line31"> 31: </a> CeedElemRestriction er; <font color="#B22222">// Map from PETSc local vector to FE element vectors</font>
<a name="line32"> 32: </a> CeedElemRestriction erL; <font color="#B22222">// Map from PETSc local vector to FV left cell vectors</font>
<a name="line33"> 33: </a> CeedElemRestriction erR; <font color="#B22222">// Map from PETSc local vector to FV right cell vectors</font>
<a name="line34"> 34: </a> CeedQFunctionUser func; <font color="#B22222">// Plex Function for this operator</font>
<a name="line35"> 35: </a> char *funcSource; <font color="#B22222">// Plex Function source as text</font>
<a name="line36"> 36: </a> CeedQFunction qf; <font color="#B22222">// QFunction expressing the operator action</font>
<a name="line37"> 37: </a> CeedOperator op; <font color="#B22222">// Operator action for this object</font>
<a name="line38"> 38: </a> DMCeed geom; <font color="#B22222">// Operator computing geometric data at quadrature points</font>
<a name="line39"> 39: </a> CeedElemRestriction erq; <font color="#B22222">// Map from PETSc local vector to quadrature points</font>
<a name="line40"> 40: </a> CeedVector qd; <font color="#B22222">// Geometric data at quadrature points used in calculating the qfunction</font>
<a name="line41"> 41: </a> DMCeed info; <font color="#B22222">// Mesh information at quadrature points</font>
<a name="line42"> 42: </a> CeedElemRestriction eri; <font color="#B22222">// Map from PETSc local vector to quadrature points</font>
<a name="line43"> 43: </a> CeedVector qi; <font color="#B22222">// Mesh information at quadrature points</font>
<a name="line44"> 44: </a>};
<a name="line46"> 46: </a><font color="#A020F0">#else</font>
<a name="line48"> 48: </a><font color="#4169E1"><a name="_PETSc_DMCEED"></a>struct _PETSc_DMCEED </font>{
<a name="line49"> 49: </a> <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> dummy;
<a name="line50"> 50: </a>};
<a name="line52"> 52: </a><font color="#A020F0">#endif</font>
<a name="line54"> 54: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCeedComputeGeometry(<a href="../manualpages/DM/DM.html">DM</a>, DMCeed)</font></strong>;
<a name="line55"> 55: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCeedComputeInfo(<a href="../manualpages/DM/DM.html">DM</a>, DMCeed)</font></strong>;
<a name="line56"> 56: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCeedDestroy(DMCeed *)</font></strong>;
</pre>
</body>
</html>
|