-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblockoperator_8hpp_source.html
233 lines (231 loc) · 38 KB
/
blockoperator_8hpp_source.html
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>MFEM: blockoperator.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">MFEM
 <span id="projectnumber">v3.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_c1845e5bf011c2136883d0d7188f50e9.html">linalg</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">blockoperator.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="blockoperator_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// reserved. See file COPYRIGHT for details.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// This file is part of the MFEM library. For more information and source code</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// availability see http://mfem.googlecode.com.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// MFEM is free software; you can redistribute it and/or modify it under the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// terms of the GNU Lesser General Public License (as published by the Free</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// Software Foundation) version 2.1 dated February 1999.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifndef MFEM_BLOCKOPERATOR</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor"></span><span class="preprocessor">#define MFEM_BLOCKOPERATOR</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "../config/config.hpp"</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "../general/array.hpp"</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="operator_8hpp.html">operator.hpp</a>"</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="blockvector_8hpp.html">blockvector.hpp</a>"</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span>mfem</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html"> 34</a></span> <span class="keyword">class </span><a class="code" href="classmfem_1_1BlockOperator.html">BlockOperator</a> : <span class="keyword">public</span> <a class="code" href="classmfem_1_1Operator.html">Operator</a></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classmfem_1_1BlockOperator.html#a6165ca45ae931df5c347a39e11684393">BlockOperator</a>(<span class="keyword">const</span> <a class="code" href="classmfem_1_1Array.html">Array<int></a> & offsets);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classmfem_1_1BlockOperator.html#a6165ca45ae931df5c347a39e11684393">BlockOperator</a>(<span class="keyword">const</span> <a class="code" href="classmfem_1_1Array.html">Array<int></a> & row_offsets, <span class="keyword">const</span> <a class="code" href="classmfem_1_1Array.html">Array<int></a> & col_offsets);</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockOperator.html#a5862ad63cbec3fb9d0f54c90a11fa3d2">SetDiagonalBlock</a>(<span class="keywordtype">int</span> iblock, <a class="code" href="classmfem_1_1Operator.html">Operator</a> *op);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockOperator.html#af8b7fafdd74f9d0d8dc8a3df7784c844">SetBlock</a>(<span class="keywordtype">int</span> iRow, <span class="keywordtype">int</span> iCol, <a class="code" href="classmfem_1_1Operator.html">Operator</a> *op);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html#acf38ebeba6ff7f6d3a52774daf22c42a"> 68</a></span>  <span class="keywordtype">int</span> <a class="code" href="classmfem_1_1BlockOperator.html#acf38ebeba6ff7f6d3a52774daf22c42a">NumRowBlocks</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nRowBlocks; }</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html#a58333617a7c5440125ba27546de0027e"> 70</a></span>  <span class="keywordtype">int</span> <a class="code" href="classmfem_1_1BlockOperator.html#a58333617a7c5440125ba27546de0027e">NumColBlocks</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nColBlocks; }</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html#a5e71521d3c5aa672095339a60b4190a2"> 73</a></span>  <span class="keywordtype">int</span> <a class="code" href="classmfem_1_1BlockOperator.html#a5e71521d3c5aa672095339a60b4190a2">IsZeroBlock</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (op(i,j)==NULL) ? 1 : 0; }</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html#aa94a0d5d3963c78450b70a2d0ba29afb"> 75</a></span>  <a class="code" href="classmfem_1_1Operator.html">Operator</a> & <a class="code" href="classmfem_1_1BlockOperator.html#aa94a0d5d3963c78450b70a2d0ba29afb">GetBlock</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j)</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  { MFEM_VERIFY(op(i,j), <span class="stringliteral">""</span>); <span class="keywordflow">return</span> *op(i,j); }</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html#ad7b9f9df3f2e5457a237c936e89e05a9"> 79</a></span>  <a class="code" href="classmfem_1_1Array.html">Array<int></a> & <a class="code" href="classmfem_1_1BlockOperator.html#ad7b9f9df3f2e5457a237c936e89e05a9">RowOffsets</a>() { <span class="keywordflow">return</span> row_offsets; }</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html#a393e9d35d6056efe8295f5e7cc893346"> 81</a></span>  <a class="code" href="classmfem_1_1Array.html">Array<int></a> & <a class="code" href="classmfem_1_1BlockOperator.html#a393e9d35d6056efe8295f5e7cc893346">ColOffsets</a>() { <span class="keywordflow">return</span> col_offsets; }</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockOperator.html#a26115fc37068bad6e3d445ecc3de301f">Mult</a> (<span class="keyword">const</span> <a class="code" href="classmfem_1_1Vector.html">Vector</a> & x, <a class="code" href="classmfem_1_1Vector.html">Vector</a> & y) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockOperator.html#a0b90fa903827cf79bbe0ccd66069f243">MultTranspose</a> (<span class="keyword">const</span> <a class="code" href="classmfem_1_1Vector.html">Vector</a> & x, <a class="code" href="classmfem_1_1Vector.html">Vector</a> & y) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classmfem_1_1BlockOperator.html#ae6eaac8ab20b356dc94680b22a540718">~BlockOperator</a>();</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockOperator.html#a3eabf54e217d66fd029b28e715a8ab8f"> 93</a></span>  <span class="keywordtype">int</span> <a class="code" href="classmfem_1_1BlockOperator.html#a3eabf54e217d66fd029b28e715a8ab8f">owns_blocks</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">int</span> nRowBlocks;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">int</span> nColBlocks;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classmfem_1_1Array.html">Array<int></a> row_offsets;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classmfem_1_1Array.html">Array<int></a> col_offsets;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="classmfem_1_1Array2D.html">Array2D<Operator *></a> op;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">mutable</span> <a class="code" href="classmfem_1_1BlockVector.html">BlockVector</a> xblock;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">mutable</span> <a class="code" href="classmfem_1_1BlockVector.html">BlockVector</a> yblock;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">mutable</span> <a class="code" href="classmfem_1_1Vector.html">Vector</a> tmp;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> };</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockDiagonalPreconditioner.html"> 125</a></span> <span class="keyword">class </span><a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html">BlockDiagonalPreconditioner</a> : <span class="keyword">public</span> <a class="code" href="classmfem_1_1Solver.html">Solver</a></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> {</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#aba38ca75563b6cf507830447cd79fdd4">BlockDiagonalPreconditioner</a>(<span class="keyword">const</span> <a class="code" href="classmfem_1_1Array.html">Array<int></a> & offsets);</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#acd9317979590a4e94b432e6f78d046c4">SetDiagonalBlock</a>(<span class="keywordtype">int</span> iblock, <a class="code" href="classmfem_1_1Operator.html">Operator</a> *op);</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockDiagonalPreconditioner.html#abaae71ab925d9b1a254710fba470f49c"> 137</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#abaae71ab925d9b1a254710fba470f49c">SetOperator</a>(<span class="keyword">const</span> <a class="code" href="classmfem_1_1Operator.html">Operator</a> &op){ }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockDiagonalPreconditioner.html#a9e5e4ff32fddfed7c204794a345f8b73"> 140</a></span>  <span class="keywordtype">int</span> <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#a9e5e4ff32fddfed7c204794a345f8b73">NumBlocks</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nBlocks; }</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockDiagonalPreconditioner.html#a61b3ad23ff1474e4b18421a76903a39c"> 143</a></span>  <a class="code" href="classmfem_1_1Operator.html">Operator</a> & <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#a61b3ad23ff1474e4b18421a76903a39c">GetDiagonalBlock</a>(<span class="keywordtype">int</span> iblock)</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  { MFEM_VERIFY(op[iblock], <span class="stringliteral">""</span>); <span class="keywordflow">return</span> *op[iblock]; }</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockDiagonalPreconditioner.html#a06f6802c52bc7872fd677bfbcdbe38e9"> 147</a></span>  <a class="code" href="classmfem_1_1Array.html">Array<int></a> & <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#a06f6802c52bc7872fd677bfbcdbe38e9">Offsets</a>() { <span class="keywordflow">return</span> offsets; }</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#a5e1204b30724f2cf4da51811fbd01677">Mult</a> (<span class="keyword">const</span> <a class="code" href="classmfem_1_1Vector.html">Vector</a> & x, <a class="code" href="classmfem_1_1Vector.html">Vector</a> & y) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#a9c92f64f488eb0c54ad32354fcf8891c">MultTranspose</a> (<span class="keyword">const</span> <a class="code" href="classmfem_1_1Vector.html">Vector</a> & x, <a class="code" href="classmfem_1_1Vector.html">Vector</a> & y) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#a2b5afb13367b076c917fa92c499a086f">~BlockDiagonalPreconditioner</a>();</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classmfem_1_1BlockDiagonalPreconditioner.html#a3d98e00c15148269ac31ce918505c2fb"> 160</a></span>  <span class="keywordtype">int</span> <a class="code" href="classmfem_1_1BlockDiagonalPreconditioner.html#a3d98e00c15148269ac31ce918505c2fb">owns_blocks</a>;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordtype">int</span> nBlocks;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classmfem_1_1Array.html">Array<int></a> offsets;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="classmfem_1_1Array.html">Array<Operator *></a> op;</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keyword">mutable</span> <a class="code" href="classmfem_1_1BlockVector.html">BlockVector</a> xblock;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">mutable</span> <a class="code" href="classmfem_1_1BlockVector.html">BlockVector</a> yblock;</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> };</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> }</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="preprocessor">#endif </span><span class="comment">/* MFEM_BLOCKOPERATOR */</span><span class="preprocessor"></span></div>
<div class="ttc" id="classmfem_1_1BlockVector_html"><div class="ttname"><a href="classmfem_1_1BlockVector.html">mfem::BlockVector</a></div><div class="ttdef"><b>Definition:</b> <a href="blockvector_8hpp_source.html#l00029">blockvector.hpp:29</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_ad7b9f9df3f2e5457a237c936e89e05a9"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#ad7b9f9df3f2e5457a237c936e89e05a9">mfem::BlockOperator::RowOffsets</a></div><div class="ttdeci">Array< int > & RowOffsets()</div><div class="ttdoc">Return the row offsets for block starts. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00079">blockoperator.hpp:79</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_a06f6802c52bc7872fd677bfbcdbe38e9"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#a06f6802c52bc7872fd677bfbcdbe38e9">mfem::BlockDiagonalPreconditioner::Offsets</a></div><div class="ttdeci">Array< int > & Offsets()</div><div class="ttdoc">Return the offsets for block starts. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00147">blockoperator.hpp:147</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a0b90fa903827cf79bbe0ccd66069f243"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a0b90fa903827cf79bbe0ccd66069f243">mfem::BlockOperator::MultTranspose</a></div><div class="ttdeci">virtual void MultTranspose(const Vector &x, Vector &y) const </div><div class="ttdoc">Action of the transpose operator. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00089">blockoperator.cpp:89</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a5e71521d3c5aa672095339a60b4190a2"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a5e71521d3c5aa672095339a60b4190a2">mfem::BlockOperator::IsZeroBlock</a></div><div class="ttdeci">int IsZeroBlock(int i, int j) const </div><div class="ttdoc">Check if block (i,j) is a zero block. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00073">blockoperator.hpp:73</a></div></div>
<div class="ttc" id="operator_8hpp_html"><div class="ttname"><a href="operator_8hpp.html">operator.hpp</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_af8b7fafdd74f9d0d8dc8a3df7784c844"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#af8b7fafdd74f9d0d8dc8a3df7784c844">mfem::BlockOperator::SetBlock</a></div><div class="ttdeci">void SetBlock(int iRow, int iCol, Operator *op)</div><div class="ttdoc">Add a block op in the block-entry (iblock, jblock). </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00055">blockoperator.cpp:55</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_aa94a0d5d3963c78450b70a2d0ba29afb"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#aa94a0d5d3963c78450b70a2d0ba29afb">mfem::BlockOperator::GetBlock</a></div><div class="ttdeci">Operator & GetBlock(int i, int j)</div><div class="ttdoc">Return a reference to block i,j. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00075">blockoperator.hpp:75</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_a9e5e4ff32fddfed7c204794a345f8b73"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#a9e5e4ff32fddfed7c204794a345f8b73">mfem::BlockDiagonalPreconditioner::NumBlocks</a></div><div class="ttdeci">int NumBlocks() const </div><div class="ttdoc">Return the number of blocks. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00140">blockoperator.hpp:140</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_a61b3ad23ff1474e4b18421a76903a39c"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#a61b3ad23ff1474e4b18421a76903a39c">mfem::BlockDiagonalPreconditioner::GetDiagonalBlock</a></div><div class="ttdeci">Operator & GetDiagonalBlock(int iblock)</div><div class="ttdoc">Return a reference to block i,i. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00143">blockoperator.hpp:143</a></div></div>
<div class="ttc" id="blockvector_8hpp_html"><div class="ttname"><a href="blockvector_8hpp.html">blockvector.hpp</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html">mfem::BlockDiagonalPreconditioner</a></div><div class="ttdoc">A class to handle Block diagonal preconditioners in a matrix-free implementation. ...</div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00125">blockoperator.hpp:125</a></div></div>
<div class="ttc" id="classmfem_1_1Array_html"><div class="ttname"><a href="classmfem_1_1Array.html">mfem::Array< int ></a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_ae6eaac8ab20b356dc94680b22a540718"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#ae6eaac8ab20b356dc94680b22a540718">mfem::BlockOperator::~BlockOperator</a></div><div class="ttdeci">~BlockOperator()</div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00114">blockoperator.cpp:114</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a5862ad63cbec3fb9d0f54c90a11fa3d2"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a5862ad63cbec3fb9d0f54c90a11fa3d2">mfem::BlockOperator::SetDiagonalBlock</a></div><div class="ttdeci">void SetDiagonalBlock(int iblock, Operator *op)</div><div class="ttdoc">Add block op in the block-entry (iblock, iblock). </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00050">blockoperator.cpp:50</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_a2b5afb13367b076c917fa92c499a086f"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#a2b5afb13367b076c917fa92c499a086f">mfem::BlockDiagonalPreconditioner::~BlockDiagonalPreconditioner</a></div><div class="ttdeci">~BlockDiagonalPreconditioner()</div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00176">blockoperator.cpp:176</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_aba38ca75563b6cf507830447cd79fdd4"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#aba38ca75563b6cf507830447cd79fdd4">mfem::BlockDiagonalPreconditioner::BlockDiagonalPreconditioner</a></div><div class="ttdeci">BlockDiagonalPreconditioner(const Array< int > &offsets)</div><div class="ttdoc">Constructor that specifies the block structure. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00123">blockoperator.cpp:123</a></div></div>
<div class="ttc" id="classmfem_1_1Array2D_html"><div class="ttname"><a href="classmfem_1_1Array2D.html">mfem::Array2D</a></div><div class="ttdef"><b>Definition:</b> <a href="array_8hpp_source.html#l00208">array.hpp:208</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a6165ca45ae931df5c347a39e11684393"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a6165ca45ae931df5c347a39e11684393">mfem::BlockOperator::BlockOperator</a></div><div class="ttdeci">BlockOperator(const Array< int > &offsets)</div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00021">blockoperator.cpp:21</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a26115fc37068bad6e3d445ecc3de301f"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a26115fc37068bad6e3d445ecc3de301f">mfem::BlockOperator::Mult</a></div><div class="ttdeci">virtual void Mult(const Vector &x, Vector &y) const </div><div class="ttdoc">Operator application. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00065">blockoperator.cpp:65</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_abaae71ab925d9b1a254710fba470f49c"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#abaae71ab925d9b1a254710fba470f49c">mfem::BlockDiagonalPreconditioner::SetOperator</a></div><div class="ttdeci">virtual void SetOperator(const Operator &op)</div><div class="ttdoc">This method is present since required by the abstract base class Solver. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00137">blockoperator.hpp:137</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_a9c92f64f488eb0c54ad32354fcf8891c"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#a9c92f64f488eb0c54ad32354fcf8891c">mfem::BlockDiagonalPreconditioner::MultTranspose</a></div><div class="ttdeci">virtual void MultTranspose(const Vector &x, Vector &y) const </div><div class="ttdoc">Action of the transpose operator. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00161">blockoperator.cpp:161</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_a5e1204b30724f2cf4da51811fbd01677"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#a5e1204b30724f2cf4da51811fbd01677">mfem::BlockDiagonalPreconditioner::Mult</a></div><div class="ttdeci">virtual void Mult(const Vector &x, Vector &y) const </div><div class="ttdoc">Operator application. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00145">blockoperator.cpp:145</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_acf38ebeba6ff7f6d3a52774daf22c42a"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#acf38ebeba6ff7f6d3a52774daf22c42a">mfem::BlockOperator::NumRowBlocks</a></div><div class="ttdeci">int NumRowBlocks() const </div><div class="ttdoc">Return the number of row blocks. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00068">blockoperator.hpp:68</a></div></div>
<div class="ttc" id="classmfem_1_1Vector_html"><div class="ttname"><a href="classmfem_1_1Vector.html">mfem::Vector</a></div><div class="ttdoc">Vector data type. </div><div class="ttdef"><b>Definition:</b> <a href="vector_8hpp_source.html#l00029">vector.hpp:29</a></div></div>
<div class="ttc" id="classmfem_1_1Solver_html"><div class="ttname"><a href="classmfem_1_1Solver.html">mfem::Solver</a></div><div class="ttdoc">Base class for solvers. </div><div class="ttdef"><b>Definition:</b> <a href="operator_8hpp_source.html#l00102">operator.hpp:102</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_a3d98e00c15148269ac31ce918505c2fb"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#a3d98e00c15148269ac31ce918505c2fb">mfem::BlockDiagonalPreconditioner::owns_blocks</a></div><div class="ttdeci">int owns_blocks</div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00160">blockoperator.hpp:160</a></div></div>
<div class="ttc" id="classmfem_1_1Operator_html"><div class="ttname"><a href="classmfem_1_1Operator.html">mfem::Operator</a></div><div class="ttdoc">Abstract operator. </div><div class="ttdef"><b>Definition:</b> <a href="operator_8hpp_source.html#l00021">operator.hpp:21</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html"><div class="ttname"><a href="classmfem_1_1BlockOperator.html">mfem::BlockOperator</a></div><div class="ttdoc">A class to handle Block systems in a matrix-free implementation. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00034">blockoperator.hpp:34</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a58333617a7c5440125ba27546de0027e"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a58333617a7c5440125ba27546de0027e">mfem::BlockOperator::NumColBlocks</a></div><div class="ttdeci">int NumColBlocks() const </div><div class="ttdoc">Return the number of column blocks. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00070">blockoperator.hpp:70</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a3eabf54e217d66fd029b28e715a8ab8f"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a3eabf54e217d66fd029b28e715a8ab8f">mfem::BlockOperator::owns_blocks</a></div><div class="ttdeci">int owns_blocks</div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00093">blockoperator.hpp:93</a></div></div>
<div class="ttc" id="classmfem_1_1BlockDiagonalPreconditioner_html_acd9317979590a4e94b432e6f78d046c4"><div class="ttname"><a href="classmfem_1_1BlockDiagonalPreconditioner.html#acd9317979590a4e94b432e6f78d046c4">mfem::BlockDiagonalPreconditioner::SetDiagonalBlock</a></div><div class="ttdeci">void SetDiagonalBlock(int iblock, Operator *op)</div><div class="ttdoc">Add a square block op in the block-entry (iblock, iblock). </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8cpp_source.html#l00135">blockoperator.cpp:135</a></div></div>
<div class="ttc" id="classmfem_1_1BlockOperator_html_a393e9d35d6056efe8295f5e7cc893346"><div class="ttname"><a href="classmfem_1_1BlockOperator.html#a393e9d35d6056efe8295f5e7cc893346">mfem::BlockOperator::ColOffsets</a></div><div class="ttdeci">Array< int > & ColOffsets()</div><div class="ttdoc">Return the columns offsets for block starts. </div><div class="ttdef"><b>Definition:</b> <a href="blockoperator_8hpp_source.html#l00081">blockoperator.hpp:81</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 18 2022 18:57:39 for MFEM by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>