-
Notifications
You must be signed in to change notification settings - Fork 0
/
BaseFunction_8cpp_source.html
204 lines (202 loc) · 18.6 KB
/
BaseFunction_8cpp_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
<!-- HTML header for doxygen 1.8.13-->
<!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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MoFEM: src/approximation/impl/BaseFunction.cpp 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/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<script type="text/javascript " src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML "></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["AMSmath.js"],
TeX: { equationNumbers: { autoNumber: ["all"],
useLabelIds: true
}
}
});
</script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="extra_style.css" rel="stylesheet" type="text/css"/>
<link rel="apple-touch-icon" sizes="57x57" href="apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="shortcut icon" type="image/png" href="favicon-32x32.png"/>
<link rel="Bookmark" type="image/png" href="favicon-32x32.png"/>
<link rel="manifest" href="manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div style="background-color:#011A40" id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 30px;">
<td id="projectlogo"><img alt="Logo" src="MoFEMLogo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<td style="padding-left: 0.5em;" bgcolor="#011A40"
<div id="projectbrief"><font color="#FFFFFF">v0.14.0</font></div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!--Google analytics tags-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-65236130-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2J9RE2P3H5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-2J9RE2P3H5');
</script><!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</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_c7c0891cd985f4c89e0764e6407532e2.html">src</a></li><li class="navelem"><a class="el" href="dir_6826ed2ec85e3444896286069e3ad5b4.html">approximation</a></li><li class="navelem"><a class="el" href="dir_20e6a98d8364657bdeaa8b7d4a06b36f.html">impl</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">BaseFunction.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="BaseFunction_8cpp.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">/** \file BaseFunction.cpp</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * \brief implementation of multi-grid solver for p- adaptivity</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">namespace </span><a class="code" href="namespaceMoFEM.html">MoFEM</a> {</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <a class="code" href="namespaceMoFEM_1_1Exceptions.html#a8fb6351034eac301fc47fdf2748c1b45">MoFEMErrorCode</a></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="structMoFEM_1_1BaseFunctionCtx.html#a74e6d01fa2166c2a9c5dba8fbd3e3869"> 10</a></span> <a class="code" href="structMoFEM_1_1BaseFunctionCtx.html#a74e6d01fa2166c2a9c5dba8fbd3e3869">BaseFunctionCtx::query_interface</a>(boost::typeindex::type_index type_index,</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <a class="code" href="structMoFEM_1_1UnknownInterface.html">UnknownInterface</a> **iface)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  *iface = <span class="keyword">const_cast<</span><a class="code" href="structMoFEM_1_1BaseFunctionCtx.html">BaseFunctionCtx</a> *<span class="keyword">></span>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> }</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <a class="code" href="namespaceMoFEM_1_1Exceptions.html#a8fb6351034eac301fc47fdf2748c1b45">MoFEMErrorCode</a></div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="structMoFEM_1_1BaseFunction.html#aa99de0311dbaed981a7b42a151021410"> 17</a></span> <a class="code" href="structMoFEM_1_1BaseFunction.html#aa99de0311dbaed981a7b42a151021410">BaseFunction::query_interface</a>(boost::typeindex::type_index type_index,</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="structMoFEM_1_1UnknownInterface.html">UnknownInterface</a> **iface)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  *iface = <span class="keyword">const_cast<</span><a class="code" href="structMoFEM_1_1BaseFunction.html">BaseFunction</a> *<span class="keyword">></span>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">return</span> 0;</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="l00023"></a><span class="lineno"> 23</span> <a class="code" href="namespaceMoFEM_1_1Exceptions.html#a8fb6351034eac301fc47fdf2748c1b45">MoFEMErrorCode</a></div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structMoFEM_1_1BaseFunction.html#aa71dc61a4fdcc2ed48ee535cb83e0677"> 24</a></span> <a class="code" href="structMoFEM_1_1BaseFunction.html#aa71dc61a4fdcc2ed48ee535cb83e0677">BaseFunction::getValue</a>(<a class="code" href="classUBlasMatrix_3_01double_01_4.html">MatrixDouble</a> &pts,</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  boost::shared_ptr<BaseFunctionCtx> ctx_ptr) {</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="definitions_8h.html#aee32377dce975c9a64ed73bd3a003404">MoFEMFunctionBeginHot</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  SETERRQ(PETSC_COMM_SELF, <a class="code" href="definitions_8h.html#a980bf270a5c3f2f984262f7e74786a2eaef48b40a28ec42fda55bc4824e906baf">MOFEM_NOT_IMPLEMENTED</a>,</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="stringliteral">"BaseFunction has not valid implementation of any shape function"</span>);</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="definitions_8h.html#a59cd650c2f6d3e0dc1ad1c29821e8692">MoFEMFunctionReturnHot</a>(0);</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <a class="code" href="namespaceMoFEM_1_1Exceptions.html#a8fb6351034eac301fc47fdf2748c1b45">MoFEMErrorCode</a></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structMoFEM_1_1BaseFunction.html#acf21f5cb427f7cd45316206b397de67d"> 33</a></span> <a class="code" href="structMoFEM_1_1BaseFunction.html#aa71dc61a4fdcc2ed48ee535cb83e0677">BaseFunction::getValue</a>(<a class="code" href="classUBlasMatrix_3_01double_01_4.html">MatrixDouble</a> &pts_x, <a class="code" href="classUBlasMatrix_3_01double_01_4.html">MatrixDouble</a> &pts_t,</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  boost::shared_ptr<BaseFunctionCtx> ctx_ptr) {</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="definitions_8h.html#aee32377dce975c9a64ed73bd3a003404">MoFEMFunctionBeginHot</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  SETERRQ(PETSC_COMM_SELF, <a class="code" href="definitions_8h.html#a980bf270a5c3f2f984262f7e74786a2eaef48b40a28ec42fda55bc4824e906baf">MOFEM_NOT_IMPLEMENTED</a>,</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="stringliteral">"BaseFunction has not valid implementation of any shape function"</span>);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="definitions_8h.html#a59cd650c2f6d3e0dc1ad1c29821e8692">MoFEMFunctionReturnHot</a>(0);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> }</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> } <span class="comment">// namespace MoFEM</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassUBlasMatrix_3_01double_01_4_html"><div class="ttname"><a href="classUBlasMatrix_3_01double_01_4.html">UBlasMatrix< double ></a></div></div>
<div class="ttc" id="adefinitions_8h_html_a59cd650c2f6d3e0dc1ad1c29821e8692"><div class="ttname"><a href="definitions_8h.html#a59cd650c2f6d3e0dc1ad1c29821e8692">MoFEMFunctionReturnHot</a></div><div class="ttdeci">#define MoFEMFunctionReturnHot(a)</div><div class="ttdoc">Last executable line of each PETSc function used for error handling. Replaces return()</div><div class="ttdef"><b>Definition:</b> <a href="definitions_8h_source.html#l00460">definitions.h:460</a></div></div>
<div class="ttc" id="astructMoFEM_1_1BaseFunction_html_aa99de0311dbaed981a7b42a151021410"><div class="ttname"><a href="structMoFEM_1_1BaseFunction.html#aa99de0311dbaed981a7b42a151021410">MoFEM::BaseFunction::query_interface</a></div><div class="ttdeci">MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, MoFEM::UnknownInterface **iface) const</div><div class="ttdef"><b>Definition:</b> <a href="BaseFunction_8cpp_source.html#l00017">BaseFunction.cpp:17</a></div></div>
<div class="ttc" id="anamespaceMoFEM_1_1Exceptions_html_a8fb6351034eac301fc47fdf2748c1b45"><div class="ttname"><a href="namespaceMoFEM_1_1Exceptions.html#a8fb6351034eac301fc47fdf2748c1b45">MoFEM::Exceptions::MoFEMErrorCode</a></div><div class="ttdeci">PetscErrorCode MoFEMErrorCode</div><div class="ttdoc">MoFEM/PETSc error code.</div><div class="ttdef"><b>Definition:</b> <a href="Exceptions_8hpp_source.html#l00056">Exceptions.hpp:56</a></div></div>
<div class="ttc" id="astructMoFEM_1_1BaseFunction_html"><div class="ttname"><a href="structMoFEM_1_1BaseFunction.html">MoFEM::BaseFunction</a></div><div class="ttdoc">Base class if inherited used to calculate base functions.</div><div class="ttdef"><b>Definition:</b> <a href="BaseFunction_8hpp_source.html#l00040">BaseFunction.hpp:40</a></div></div>
<div class="ttc" id="astructMoFEM_1_1BaseFunctionCtx_html_a74e6d01fa2166c2a9c5dba8fbd3e3869"><div class="ttname"><a href="structMoFEM_1_1BaseFunctionCtx.html#a74e6d01fa2166c2a9c5dba8fbd3e3869">MoFEM::BaseFunctionCtx::query_interface</a></div><div class="ttdeci">MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, UnknownInterface **iface) const</div><div class="ttdef"><b>Definition:</b> <a href="BaseFunction_8cpp_source.html#l00010">BaseFunction.cpp:10</a></div></div>
<div class="ttc" id="astructMoFEM_1_1BaseFunctionCtx_html"><div class="ttname"><a href="structMoFEM_1_1BaseFunctionCtx.html">MoFEM::BaseFunctionCtx</a></div><div class="ttdoc">Base class used to exchange data between element data structures and class calculating base functions...</div><div class="ttdef"><b>Definition:</b> <a href="BaseFunction_8hpp_source.html#l00028">BaseFunction.hpp:28</a></div></div>
<div class="ttc" id="astructMoFEM_1_1BaseFunction_html_aa71dc61a4fdcc2ed48ee535cb83e0677"><div class="ttname"><a href="structMoFEM_1_1BaseFunction.html#aa71dc61a4fdcc2ed48ee535cb83e0677">MoFEM::BaseFunction::getValue</a></div><div class="ttdeci">virtual MoFEMErrorCode getValue(MatrixDouble &pts, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)</div><div class="ttdef"><b>Definition:</b> <a href="BaseFunction_8cpp_source.html#l00024">BaseFunction.cpp:24</a></div></div>
<div class="ttc" id="anamespaceMoFEM_html"><div class="ttname"><a href="namespaceMoFEM.html">MoFEM</a></div><div class="ttdoc">implementation of Data Operators for Forces and Sources</div><div class="ttdef"><b>Definition:</b> <a href="Common_8hpp_source.html#l00010">Common.hpp:10</a></div></div>
<div class="ttc" id="astructMoFEM_1_1UnknownInterface_html"><div class="ttname"><a href="structMoFEM_1_1UnknownInterface.html">MoFEM::UnknownInterface</a></div><div class="ttdoc">base class for all interface classes</div><div class="ttdef"><b>Definition:</b> <a href="UnknownInterface_8hpp_source.html#l00034">UnknownInterface.hpp:34</a></div></div>
<div class="ttc" id="adefinitions_8h_html_aee32377dce975c9a64ed73bd3a003404"><div class="ttname"><a href="definitions_8h.html#aee32377dce975c9a64ed73bd3a003404">MoFEMFunctionBeginHot</a></div><div class="ttdeci">#define MoFEMFunctionBeginHot</div><div class="ttdoc">First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...</div><div class="ttdef"><b>Definition:</b> <a href="definitions_8h_source.html#l00453">definitions.h:453</a></div></div>
<div class="ttc" id="adefinitions_8h_html_a980bf270a5c3f2f984262f7e74786a2eaef48b40a28ec42fda55bc4824e906baf"><div class="ttname"><a href="definitions_8h.html#a980bf270a5c3f2f984262f7e74786a2eaef48b40a28ec42fda55bc4824e906baf">MOFEM_NOT_IMPLEMENTED</a></div><div class="ttdeci">@ MOFEM_NOT_IMPLEMENTED</div><div class="ttdef"><b>Definition:</b> <a href="definitions_8h_source.html#l00032">definitions.h:32</a></div></div>
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<hr cla ss="footer" />
<style>
img[src="UoGLogo.png"] {
height: 20px;
padding-top: 0px;
padding-right: 1px;
padding-bottom: 3px;
padding-left: 6px;
}
</style>
<address class="footer">
<small>
Generated by
<a href="http://www.doxygen.org/index.html"> Doxygen </a> 1.8.17
and hosted at
<a href="http://www.gla.ac.uk/schools/engineering/">
<img class="footer" src="UoGLogo.png" alt="University of Glasgow" />
</a>
</small>
</address>
</body>
</html>