File: petscdmpatch.h.html

package info (click to toggle)
petsc 3.23.1%2Bdfsg1-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 515,576 kB
  • sloc: ansic: 751,607; cpp: 51,542; python: 38,598; f90: 17,352; javascript: 3,493; makefile: 3,157; sh: 1,502; xml: 619; objc: 445; java: 13; csh: 1
file content (57 lines) | stat: -rw-r--r-- 6,348 bytes parent folder | download
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
<center><a href="https://gitlab.com/petsc/petsc/-/blob/966382dc56242773704ef5f5cee7aa2db3ebc577/include/petscdmpatch.h">Actual source code: petscdmpatch.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="#B22222">/*</font>
<a name="line2">  2: </a><font color="#B22222">  DMPatch, for domains covered by sets of patches.</font>
<a name="line3">  3: </a><font color="#B22222">*/</font>
<a name="line4">  4: </a><font color="#A020F0">#pragma once</font>

<a name="line6">  6: </a>#include <A href="../include/petscdm.h.html">&lt;petscdm.h&gt;</A>

<a name="line8">  8: </a><font color="#B22222">/* MANSEC = <a href="../manualpages/DM/DM.html">DM</a> */</font>
<a name="line9">  9: </a><font color="#B22222">/* SUBMANSEC = DMPatch */</font>

<a name="line11"> 11: </a><font color="#B22222">/*S</font>
<a name="line12"> 12: </a><font color="#B22222">  <a href="../manualpages/DMPatch/DMPATCH.html">DMPATCH</a> - `<a href="../manualpages/DM/DM.html">DM</a>` object that encapsulates a domain divided into many patches</font>

<a name="line14"> 14: </a><font color="#B22222">  Level: intermediate</font>

<a name="line16"> 16: </a><font color="#B22222">.seealso: `<a href="../manualpages/DM/DM.html">DM</a>`, `<a href="../manualpages/DMPatch/DMPatchCreate.html">DMPatchCreate</a>()`, `DMPatchSolve()`, `<a href="../manualpages/DMPatch/DMPatchZoom.html">DMPatchZoom</a>()`, `DMPatchGetPatchSize()`, `DMPatchSetPatchSize()`,</font>
<a name="line17"> 17: </a><font color="#B22222">          `DMPatchGetCommSize()`, `DMPatchSetCommSize()`, `DMPatchGetCoarse()`, `DMPatchCreateGrid()`</font>
<a name="line18"> 18: </a><font color="#B22222">S*/</font>
<a name="line19"> 19: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DMPatch/DMPatchCreate.html">DMPatchCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/DM/DM.html">DM</a> *)</font></strong>;

<a name="line21"> 21: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DMPatch/DMPatchZoom.html">DMPatchZoom</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a>, <a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/DM/DM.html">DM</a> *, <a href="../manualpages/PetscSF/PetscSF.html">PetscSF</a> *, <a href="../manualpages/PetscSF/PetscSF.html">PetscSF</a> *)</font></strong>;
<a name="line22"> 22: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMPatchSolve(<a href="../manualpages/DM/DM.html">DM</a>)</font></strong>;
<a name="line23"> 23: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMPatchGetPatchSize(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a> *)</font></strong>;
<a name="line24"> 24: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMPatchSetPatchSize(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a>)</font></strong>;
<a name="line25"> 25: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMPatchGetCommSize(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a> *)</font></strong>;
<a name="line26"> 26: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMPatchSetCommSize(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a>)</font></strong>;
<a name="line27"> 27: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMPatchGetCoarse(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a> *)</font></strong>;
<a name="line28"> 28: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMPatchCreateGrid(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a>, <a href="../manualpages/Mat/MatStencil.html">MatStencil</a>, <a href="../manualpages/DM/DM.html">DM</a> *)</font></strong>;

<a name="line30"> 30: </a><font color="#B22222">/*</font>
<a name="line31"> 31: </a><font color="#B22222"> * We want each patch to consist of an entire <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DMDA/DMDA.html">DMDA</a> at first</font>
<a name="line32"> 32: </a><font color="#B22222"> - We cannot afford to store much more than the data from a single patch in memory</font>
<a name="line33"> 33: </a><font color="#B22222">   - No global <a href="../manualpages/PetscSection/PetscSection.html">PetscSection</a>, only <a href="../manualpages/IS/PetscLayout.html">PetscLayout</a></font>
<a name="line34"> 34: </a><font color="#B22222">   - Optional scatters</font>
<a name="line35"> 35: </a><font color="#B22222">   * There is a storable coarse level, which will also be a traditional <a href="../manualpages/DM/DM.html">DM</a> (<a href="../manualpages/DMDA/DMDA.html">DMDA</a> here)</font>
<a name="line36"> 36: </a><font color="#B22222">   * The local and global vectors correspond to a ghosted patch</font>
<a name="line37"> 37: </a><font color="#B22222"> * Need a way to activate a patch</font>
<a name="line38"> 38: </a><font color="#B22222">   * Jack in sizes for l/g vectors</font>
<a name="line39"> 39: </a><font color="#B22222"> - Need routine for viewing a full global vector</font>
<a name="line40"> 40: </a><font color="#B22222"> - Jed handles solver</font>
<a name="line41"> 41: </a><font color="#B22222">*/</font>
</pre>
</body>

</html>