Page MenuHomec4science

VectorPartitionedTyings_8h_source.html
No OneTemporary

File Metadata

Created
Wed, Jun 25, 21:17

VectorPartitionedTyings_8h_source.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GooseFEM: GooseFEM/VectorPartitionedTyings.h 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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.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="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<script type="text/javascript" src="darkmode_toggle.js"></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 id="projectrow">
<td id="projectalign">
<div id="projectname">GooseFEM<span id="projectnumber">&#160;1.4.1.dev2+g78f16df</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('VectorPartitionedTyings_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">VectorPartitionedTyings.h</div></div>
</div><!--header-->
<div class="contents">
<a href="VectorPartitionedTyings_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#ifndef GOOSEFEM_VECTORPARTITIONEDTYINGS_H</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#define GOOSEFEM_VECTORPARTITIONEDTYINGS_H</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &quot;<a class="code" href="Vector_8h.html">Vector.h</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &quot;<a class="code" href="config_8h.html">config.h</a>&quot;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &lt;Eigen/Eigen&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include &lt;Eigen/Sparse&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceGooseFEM.html">GooseFEM</a> {</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="foldopen" id="foldopen00032" data-start="{" data-end="};">
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html"> 32</a></span><span class="keyword">class </span><a class="code hl_class" href="classGooseFEM_1_1VectorPartitionedTyings.html">VectorPartitionedTyings</a> : <span class="keyword">public</span> <a class="code hl_class" href="classGooseFEM_1_1Vector.html">Vector</a> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a> m_iiu; </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a> m_iip; </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a> m_iii; </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a> m_iid; </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordtype">size_t</span> m_nnu; </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">size_t</span> m_nnp; </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordtype">size_t</span> m_nni; </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">size_t</span> m_nnd; </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> Eigen::SparseMatrix&lt;double&gt; m_Cdu; </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> Eigen::SparseMatrix&lt;double&gt; m_Cdp; </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> Eigen::SparseMatrix&lt;double&gt; m_Cdi; </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> Eigen::SparseMatrix&lt;double&gt; m_Cud; </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> Eigen::SparseMatrix&lt;double&gt; m_Cpd; </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> Eigen::SparseMatrix&lt;double&gt; m_Cid; </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> Eigen::VectorXd Eigen_asDofs_d(<span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">T</a>&amp; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>)<span class="keyword"> const</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(xt::has_shape(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>, {<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#ae904ac057d29f1fb4bf8202563a5ff87">m_nnode</a>, <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a9a7bddf5102568389f87c4cddf9e509d">m_ndim</a>}));</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> Eigen::VectorXd <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_d</a>(m_nnd, 1);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="preprocessor">#pragma omp parallel for</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a> = 0; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a> &lt; <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#ae904ac057d29f1fb4bf8202563a5ff87">m_nnode</a>; ++<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>) {</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> = 0; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> &lt; <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a9a7bddf5102568389f87c4cddf9e509d">m_ndim</a>; ++<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) {</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a00c75dc8ab60a171e47337f16a7d38f8">m_dofs</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) &gt;= m_nni) {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_d</a>(<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a00c75dc8ab60a171e47337f16a7d38f8">m_dofs</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) - m_nni) = <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> }</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_d</a>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <a class="code hl_class" href="classGooseFEM_1_1VectorPartitionedTyings.html">VectorPartitionedTyings</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> E, <span class="keyword">class</span> M&gt;</div>
<div class="foldopen" id="foldopen00091" data-start="{" data-end="}">
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#ae80104df0fe29444d2af4d2c5cf683a9"> 91</a></span> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#ae80104df0fe29444d2af4d2c5cf683a9">VectorPartitionedTyings</a>(<span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">E</a>&amp; <a class="code hl_function" href="classGooseFEM_1_1Vector.html#a01699b33da55c0385f2c77151d7ba667">conn</a>, <span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">E</a>&amp; <a class="code hl_function" href="classGooseFEM_1_1Vector.html#acbb3f12b18e1a3ba98e2f3ee1e520de8">dofs</a>, <span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">M</a>&amp; Cdu, <span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">M</a>&amp; Cdp, <span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">M</a>&amp; Cdi)</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> : <a class="code hl_class" href="classGooseFEM_1_1Vector.html">Vector</a>(<a class="code hl_function" href="classGooseFEM_1_1Vector.html#a01699b33da55c0385f2c77151d7ba667">conn</a>, <a class="code hl_function" href="classGooseFEM_1_1Vector.html#acbb3f12b18e1a3ba98e2f3ee1e520de8">dofs</a>), m_Cdu(Cdu), m_Cdp(Cdp), m_Cdi(Cdi)</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(Cdu.rows() == Cdp.rows());</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(Cdi.rows() == Cdp.rows());</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> m_nnu = <span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span>(m_Cdu.cols());</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> m_nnp = <span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span>(m_Cdp.cols());</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> m_nnd = <span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span>(m_Cdp.rows());</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> m_nni = m_nnu + m_nnp;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> m_iiu = xt::arange&lt;size_t&gt;(m_nnu);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> m_iip = xt::arange&lt;size_t&gt;(m_nnu, m_nnu + m_nnp);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> m_iii = xt::arange&lt;size_t&gt;(m_nni);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> m_iid = xt::arange&lt;size_t&gt;(m_nni, m_nni + m_nnd);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> m_Cud = m_Cdu.transpose();</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> m_Cpd = m_Cdp.transpose();</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> m_Cid = m_Cdi.transpose();</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(<span class="keyword">static_cast&lt;</span><span class="keywordtype">size_t</span><span class="keyword">&gt;</span>(m_Cdi.cols()) == m_nni);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a08850d72abea2d34e7e82c9cd23fcf1e">m_ndof</a> == xt::amax(<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a00c75dc8ab60a171e47337f16a7d38f8">m_dofs</a>)() + 1);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> }</div>
</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="foldopen" id="foldopen00116" data-start="{" data-end="}">
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#abb5f3e76e279ac7b13779f9791435f6c"> 116</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#abb5f3e76e279ac7b13779f9791435f6c">nnd</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">return</span> m_nnd;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</div>
</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="foldopen" id="foldopen00124" data-start="{" data-end="}">
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a1307bfaf258627909fdab088ea44bf35"> 124</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a1307bfaf258627909fdab088ea44bf35">nni</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordflow">return</span> m_nni;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> }</div>
</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="foldopen" id="foldopen00132" data-start="{" data-end="}">
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a24c938030d9c8cb3b270d18a91fab8d3"> 132</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a24c938030d9c8cb3b270d18a91fab8d3">nnu</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">return</span> m_nnu;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> }</div>
</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="foldopen" id="foldopen00140" data-start="{" data-end="}">
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a08f68dce07bd852610d4206bfea077ce"> 140</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a08f68dce07bd852610d4206bfea077ce">nnp</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordflow">return</span> m_nnp;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> }</div>
</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="foldopen" id="foldopen00149" data-start="{" data-end="}">
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a88b8daad54f92dde6ed4df80047b26b9"> 149</a></span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a>&amp; <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a88b8daad54f92dde6ed4df80047b26b9">iid</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keywordflow">return</span> m_iid;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> }</div>
</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a52625e5f56f65162f38d9600bd965d91"> 158</a></span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a>&amp; <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a52625e5f56f65162f38d9600bd965d91">iii</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keywordflow">return</span> m_iii;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> }</div>
</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="foldopen" id="foldopen00167" data-start="{" data-end="}">
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a99f7e3a2cca9c3c043258d6e835ad3c1"> 167</a></span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a>&amp; <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a99f7e3a2cca9c3c043258d6e835ad3c1">iiu</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">return</span> m_iiu;</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> }</div>
</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="foldopen" id="foldopen00176" data-start="{" data-end="}">
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a48836b54ab0cc3ee3ea581eb4c8da650"> 176</a></span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;size_t, 1&gt;</a>&amp; <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a48836b54ab0cc3ee3ea581eb4c8da650">iip</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keywordflow">return</span> m_iip;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00188" data-start="{" data-end="}">
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#aad92ad6188cc129b4599c8f6ea93710b"> 188</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#aad92ad6188cc129b4599c8f6ea93710b">copy_p</a>(<span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">T</a>&amp; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_src</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">T</a>&amp; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_dest</a>)<span class="keyword"> const</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_src</a>.dimension() == 1);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_dest</a>.dimension() == 1);</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_src</a>.size() == <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a08850d72abea2d34e7e82c9cd23fcf1e">m_ndof</a> || <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_src</a>.size() == m_nni);</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_dest</a>.size() == <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a08850d72abea2d34e7e82c9cd23fcf1e">m_ndof</a> || <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_dest</a>.size() == m_nni);</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span><span class="preprocessor">#pragma omp parallel for</span></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> = m_nnu; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> &lt; m_nni; ++<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) {</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_dest</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) = <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_src</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> }</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> }</div>
</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00209" data-start="{" data-end="}">
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a21bb7ac99ac6622a9af38f6747dfdeef"> 209</a></span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;double, 1&gt;</a> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a21bb7ac99ac6622a9af38f6747dfdeef">AsDofs_i</a>(<span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">T</a>&amp; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>)<span class="keyword"> const</span></div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <a class="code hl_typedef" href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">array_type::tensor&lt;double, 1&gt;</a> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval</a> = xt::empty&lt;double&gt;({m_nni});</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> this-&gt;<a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a1e3d262631b80d043a0a6fbd7a188cb0">asDofs_i</a>(nodevec, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval</a>);</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval</a>;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> }</div>
</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> R&gt;</div>
<div class="foldopen" id="foldopen00224" data-start="{" data-end="}">
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"><a class="line" href="classGooseFEM_1_1VectorPartitionedTyings.html#a1e3d262631b80d043a0a6fbd7a188cb0"> 224</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classGooseFEM_1_1VectorPartitionedTyings.html#a1e3d262631b80d043a0a6fbd7a188cb0">asDofs_i</a>(<span class="keyword">const</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">T</a>&amp; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">R</a>&amp; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_i</a>, <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">apply_tyings</a> = <span class="keyword">true</span>)<span class="keyword"> const</span></div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(xt::has_shape(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>, {<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#ae904ac057d29f1fb4bf8202563a5ff87">m_nnode</a>, <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a9a7bddf5102568389f87c4cddf9e509d">m_ndim</a>}));</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <a class="code hl_define" href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_i</a>.size() == m_nni);</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> </div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_i</a>.fill(0.0);</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> </div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span><span class="preprocessor">#pragma omp parallel for</span></div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a> = 0; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a> &lt; <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#ae904ac057d29f1fb4bf8202563a5ff87">m_nnode</a>; ++<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>) {</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> = 0; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> &lt; <a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a9a7bddf5102568389f87c4cddf9e509d">m_ndim</a>; ++<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) {</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a00c75dc8ab60a171e47337f16a7d38f8">m_dofs</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) &lt; m_nni) {</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_i</a>(<a class="code hl_variable" href="classGooseFEM_1_1Vector.html#a00c75dc8ab60a171e47337f16a7d38f8">m_dofs</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>)) = <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">m</a>, <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>);</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> }</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> }</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> }</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">apply_tyings</a>) {</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> }</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> </div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> Eigen::VectorXd <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">Dofval_d</a> = this-&gt;Eigen_asDofs_d(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">nodevec</a>);</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> Eigen::VectorXd <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">Dofval_i</a> = m_Cid * <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">Dofval_d</a>;</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> </div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span><span class="preprocessor">#pragma omp parallel for</span></div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> = 0; <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a> &lt; m_nni; ++<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) {</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">dofval_i</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>) += <a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">Dofval_i</a>(<a class="code hl_function" href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">i</a>);</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> }</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> }</div>
</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span>};</div>
</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span>} <span class="comment">// namespace GooseFEM</span></div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aVector_8h_html"><div class="ttname"><a href="Vector_8h.html">Vector.h</a></div><div class="ttdoc">Methods to switch between storage types based on a mesh.</div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html">GooseFEM::VectorPartitionedTyings</a></div><div class="ttdoc">Class to switch between storage types.</div><div class="ttdef"><b>Definition</b> <a href="#l00032">VectorPartitionedTyings.h:32</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a08f68dce07bd852610d4206bfea077ce"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a08f68dce07bd852610d4206bfea077ce">GooseFEM::VectorPartitionedTyings::nnp</a></div><div class="ttdeci">size_t nnp() const</div><div class="ttdef"><b>Definition</b> <a href="#l00140">VectorPartitionedTyings.h:140</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a1307bfaf258627909fdab088ea44bf35"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a1307bfaf258627909fdab088ea44bf35">GooseFEM::VectorPartitionedTyings::nni</a></div><div class="ttdeci">size_t nni() const</div><div class="ttdef"><b>Definition</b> <a href="#l00124">VectorPartitionedTyings.h:124</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a1e3d262631b80d043a0a6fbd7a188cb0"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a1e3d262631b80d043a0a6fbd7a188cb0">GooseFEM::VectorPartitionedTyings::asDofs_i</a></div><div class="ttdeci">void asDofs_i(const T &amp;nodevec, R &amp;dofval_i, bool apply_tyings=true) const</div><div class="ttdoc">Same as InterpQuad_vector(), but writing to preallocated return.</div><div class="ttdef"><b>Definition</b> <a href="#l00224">VectorPartitionedTyings.h:224</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a21bb7ac99ac6622a9af38f6747dfdeef"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a21bb7ac99ac6622a9af38f6747dfdeef">GooseFEM::VectorPartitionedTyings::AsDofs_i</a></div><div class="ttdeci">array_type::tensor&lt; double, 1 &gt; AsDofs_i(const T &amp;nodevec) const</div><div class="ttdoc">Convert to &quot;dofval&quot; (overwrite entries that occur more than once).</div><div class="ttdef"><b>Definition</b> <a href="#l00209">VectorPartitionedTyings.h:209</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a24c938030d9c8cb3b270d18a91fab8d3"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a24c938030d9c8cb3b270d18a91fab8d3">GooseFEM::VectorPartitionedTyings::nnu</a></div><div class="ttdeci">size_t nnu() const</div><div class="ttdef"><b>Definition</b> <a href="#l00132">VectorPartitionedTyings.h:132</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a48836b54ab0cc3ee3ea581eb4c8da650"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a48836b54ab0cc3ee3ea581eb4c8da650">GooseFEM::VectorPartitionedTyings::iip</a></div><div class="ttdeci">const array_type::tensor&lt; size_t, 1 &gt; &amp; iip() const</div><div class="ttdoc">Independent prescribed DOFs (list of DOF numbers).</div><div class="ttdef"><b>Definition</b> <a href="#l00176">VectorPartitionedTyings.h:176</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a52625e5f56f65162f38d9600bd965d91"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a52625e5f56f65162f38d9600bd965d91">GooseFEM::VectorPartitionedTyings::iii</a></div><div class="ttdeci">const array_type::tensor&lt; size_t, 1 &gt; &amp; iii() const</div><div class="ttdoc">Independent DOFs (list of DOF numbers).</div><div class="ttdef"><b>Definition</b> <a href="#l00158">VectorPartitionedTyings.h:158</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a88b8daad54f92dde6ed4df80047b26b9"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a88b8daad54f92dde6ed4df80047b26b9">GooseFEM::VectorPartitionedTyings::iid</a></div><div class="ttdeci">const array_type::tensor&lt; size_t, 1 &gt; &amp; iid() const</div><div class="ttdoc">Dependent DOFs (list of DOF numbers).</div><div class="ttdef"><b>Definition</b> <a href="#l00149">VectorPartitionedTyings.h:149</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_a99f7e3a2cca9c3c043258d6e835ad3c1"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#a99f7e3a2cca9c3c043258d6e835ad3c1">GooseFEM::VectorPartitionedTyings::iiu</a></div><div class="ttdeci">const array_type::tensor&lt; size_t, 1 &gt; &amp; iiu() const</div><div class="ttdoc">Independent unknown DOFs (list of DOF numbers).</div><div class="ttdef"><b>Definition</b> <a href="#l00167">VectorPartitionedTyings.h:167</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_aad92ad6188cc129b4599c8f6ea93710b"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#aad92ad6188cc129b4599c8f6ea93710b">GooseFEM::VectorPartitionedTyings::copy_p</a></div><div class="ttdeci">void copy_p(const T &amp;dofval_src, T &amp;dofval_dest) const</div><div class="ttdoc">Copy (part of) &quot;dofval&quot; to another &quot;dofval&quot;: dofval_dest[iip()] = dofval_src[iip()].</div><div class="ttdef"><b>Definition</b> <a href="#l00188">VectorPartitionedTyings.h:188</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_abb5f3e76e279ac7b13779f9791435f6c"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#abb5f3e76e279ac7b13779f9791435f6c">GooseFEM::VectorPartitionedTyings::nnd</a></div><div class="ttdeci">size_t nnd() const</div><div class="ttdef"><b>Definition</b> <a href="#l00116">VectorPartitionedTyings.h:116</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1VectorPartitionedTyings_html_ae80104df0fe29444d2af4d2c5cf683a9"><div class="ttname"><a href="classGooseFEM_1_1VectorPartitionedTyings.html#ae80104df0fe29444d2af4d2c5cf683a9">GooseFEM::VectorPartitionedTyings::VectorPartitionedTyings</a></div><div class="ttdeci">VectorPartitionedTyings(const E &amp;conn, const E &amp;dofs, const M &amp;Cdu, const M &amp;Cdp, const M &amp;Cdi)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition</b> <a href="#l00091">VectorPartitionedTyings.h:91</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Vector_html"><div class="ttname"><a href="classGooseFEM_1_1Vector.html">GooseFEM::Vector</a></div><div class="ttdoc">Class to switch between storage types.</div><div class="ttdef"><b>Definition</b> <a href="Vector_8h_source.html#l00023">Vector.h:23</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Vector_html_a00c75dc8ab60a171e47337f16a7d38f8"><div class="ttname"><a href="classGooseFEM_1_1Vector.html#a00c75dc8ab60a171e47337f16a7d38f8">GooseFEM::Vector::m_dofs</a></div><div class="ttdeci">array_type::tensor&lt; size_t, 2 &gt; m_dofs</div><div class="ttdoc">See dofs()</div><div class="ttdef"><b>Definition</b> <a href="Vector_8h_source.html#l00761">Vector.h:761</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Vector_html_a01699b33da55c0385f2c77151d7ba667"><div class="ttname"><a href="classGooseFEM_1_1Vector.html#a01699b33da55c0385f2c77151d7ba667">GooseFEM::Vector::conn</a></div><div class="ttdeci">const array_type::tensor&lt; size_t, 2 &gt; &amp; conn() const</div><div class="ttdef"><b>Definition</b> <a href="Vector_8h_source.html#l00092">Vector.h:92</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Vector_html_a08850d72abea2d34e7e82c9cd23fcf1e"><div class="ttname"><a href="classGooseFEM_1_1Vector.html#a08850d72abea2d34e7e82c9cd23fcf1e">GooseFEM::Vector::m_ndof</a></div><div class="ttdeci">size_t m_ndof</div><div class="ttdoc">See ndof.</div><div class="ttdef"><b>Definition</b> <a href="Vector_8h_source.html#l00766">Vector.h:766</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Vector_html_a9a7bddf5102568389f87c4cddf9e509d"><div class="ttname"><a href="classGooseFEM_1_1Vector.html#a9a7bddf5102568389f87c4cddf9e509d">GooseFEM::Vector::m_ndim</a></div><div class="ttdeci">size_t m_ndim</div><div class="ttdoc">See ndim.</div><div class="ttdef"><b>Definition</b> <a href="Vector_8h_source.html#l00765">Vector.h:765</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Vector_html_acbb3f12b18e1a3ba98e2f3ee1e520de8"><div class="ttname"><a href="classGooseFEM_1_1Vector.html#acbb3f12b18e1a3ba98e2f3ee1e520de8">GooseFEM::Vector::dofs</a></div><div class="ttdeci">const array_type::tensor&lt; size_t, 2 &gt; &amp; dofs() const</div><div class="ttdef"><b>Definition</b> <a href="Vector_8h_source.html#l00100">Vector.h:100</a></div></div>
<div class="ttc" id="aclassGooseFEM_1_1Vector_html_ae904ac057d29f1fb4bf8202563a5ff87"><div class="ttname"><a href="classGooseFEM_1_1Vector.html#ae904ac057d29f1fb4bf8202563a5ff87">GooseFEM::Vector::m_nnode</a></div><div class="ttdeci">size_t m_nnode</div><div class="ttdoc">See nnode.</div><div class="ttdef"><b>Definition</b> <a href="Vector_8h_source.html#l00764">Vector.h:764</a></div></div>
<div class="ttc" id="aconfig_8h_html"><div class="ttname"><a href="config_8h.html">config.h</a></div><div class="ttdoc">Basic configuration:</div></div>
<div class="ttc" id="aconfig_8h_html_a391cf2265f217c503ef4c35e6422b409"><div class="ttname"><a href="config_8h.html#a391cf2265f217c503ef4c35e6422b409">GOOSEFEM_ASSERT</a></div><div class="ttdeci">#define GOOSEFEM_ASSERT(expr)</div><div class="ttdoc">All assertions are implementation as::</div><div class="ttdef"><b>Definition</b> <a href="config_8h_source.html#l00097">config.h:97</a></div></div>
<div class="ttc" id="anamespaceGooseFEM_1_1array__type_html_adad35bf4db4c7eb54c25136f0f3d34d1"><div class="ttname"><a href="namespaceGooseFEM_1_1array__type.html#adad35bf4db4c7eb54c25136f0f3d34d1">GooseFEM::array_type::tensor</a></div><div class="ttdeci">xt::xtensor&lt; T, N &gt; tensor</div><div class="ttdoc">Fixed (static) rank array.</div><div class="ttdef"><b>Definition</b> <a href="config_8h_source.html#l00177">config.h:177</a></div></div>
<div class="ttc" id="anamespaceGooseFEM_html"><div class="ttname"><a href="namespaceGooseFEM.html">GooseFEM</a></div><div class="ttdoc">Toolbox to perform finite element computations.</div><div class="ttdef"><b>Definition</b> <a href="Allocate_8h_source.html#l00014">Allocate.h:14</a></div></div>
<div class="ttc" id="anamespaceGooseFEM_html_acb082fa83b6ad7cf3a04bd7a181cce81"><div class="ttname"><a href="namespaceGooseFEM.html#acb082fa83b6ad7cf3a04bd7a181cce81">GooseFEM::AsTensor</a></div><div class="ttdeci">auto AsTensor(const T &amp;arg, const S &amp;shape)</div><div class="ttdoc">&quot;Broadcast&quot; a scalar stored in an array (e.g.</div><div class="ttdef"><b>Definition</b> <a href="Allocate_8h_source.html#l00167">Allocate.h:167</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_3769e65ebf8802393a9ec6629f7d9d6e.html">GooseFEM</a></li><li class="navelem"><a class="el" href="VectorPartitionedTyings_8h.html">VectorPartitionedTyings.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
</ul>
</div>
</body>
</html>

Event Timeline