documentation for v1.0

This commit is contained in:
HRN
2025-01-10 13:02:07 +03:30
parent 53c7b23728
commit 0acd52f1b1
16893 changed files with 448346 additions and 285977 deletions

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="description" content="PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.">
<title>PhasicFlow: src/phasicFlow/structuredData/pointStructure/mortonIndexing.cpp Source File</title>
<title>PhasicFlow: src/phasicFlow/structuredData/pointStructure/pointStructure/pointSorting/mortonIndexing.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>
@ -124,94 +124,87 @@ $(document).ready(function(){initNavTree('mortonIndexing_8cpp_source.html','');
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">-----------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mortonIndexing_8hpp.html">mortonIndexing.hpp</a>&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;cells.hpp&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mortonIndexing_8hpp.html">mortonIndexing.hpp</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;cells.hpp&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="streams_8hpp.html">streams.hpp</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a493862193d78c409ce4ddb2b4d49c17f"> 26</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="namespacepFlow.html#a493862193d78c409ce4ddb2b4d49c17f">pFlow::getSortedIndex</a>(</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <a class="code" href="classpFlow_1_1box.html">box</a> boundingBox,</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> dx,</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <a class="code" href="namespacepFlow.html#a304d8581876270871949bf5d4755036a">range</a> activeRange, </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <a class="code" href="namespacepFlow.html#aca2b381231776d26ea7431837f78aa24">ViewType1D&lt;realx3&gt;</a> pos, </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="code" href="namespacepFlow.html#aca2b381231776d26ea7431837f78aa24">ViewType1D&lt;int8&gt;</a> flag,</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <a class="code" href="classpFlow_1_1indexContainer.html">int32IndexContainer</a>&amp; sortedIndex)</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;{</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="comment">// obtain the morton code of the particles</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classpFlow_1_1cells.html">cells&lt;size_t&gt;</a> allCells( boundingBox, dx);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="code" href="classpFlow_1_1indexContainer.html">int32IndexContainer</a> index(activeRange.first, activeRange.second);</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a0326b52c0c892dc9732af2580c7bfe6d"> 24</a></span>&#160;<a class="code" href="classpFlow_1_1indexContainer.html">pFlow::uint32IndexContainer</a> <a class="code" href="namespacepFlow.html#a0326b52c0c892dc9732af2580c7bfe6d">pFlow::getSortedIndices</a>(</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <a class="code" href="classpFlow_1_1box.html">box</a> boundingBox,</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> dx, </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keyword">const</span> <a class="code" href="namespacepFlow.html#aeac3efd0f623f0010ce6daa6499d8ebe">ViewType1D&lt;realx3&gt;</a>&amp; pos, </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">const</span> <a class="code" href="classpFlow_1_1pointFlag.html">pFlagTypeDevice</a>&amp; flag</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;)</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;{</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordflow">if</span>(flag.<a class="code" href="classpFlow_1_1pointFlag.html#adf977479a67f3fafb8eda6074d7a932d">numActive</a>() == 0u)<span class="keywordflow">return</span> <a class="code" href="namespacepFlow.html#ace91b5b09f95f3d8409247898e688e9b">uint32IndexContainer</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="comment">// obtain the morton code of the particles</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <a class="code" href="classpFlow_1_1cells.html">cells</a> allCells( boundingBox, dx);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">auto</span> aRange = flag.<a class="code" href="classpFlow_1_1pointFlag.html#a766f5bcd312f3e0ca10011181b05f318">activeRange</a>();</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="code" href="classpFlow_1_1indexContainer.html">uint32IndexContainer</a> sortedIndex(aRange.start(), aRange.end());</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="namespacepFlow.html#aca2b381231776d26ea7431837f78aa24">ViewType1D&lt;uint64_t&gt;</a> mortonCode(<span class="stringliteral">&quot;mortonCode&quot;</span>, activeRange.second);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="namespacepFlow.html#aeac3efd0f623f0010ce6daa6499d8ebe">ViewType1D&lt;uint64_t&gt;</a> mortonCode(<span class="stringliteral">&quot;mortonCode&quot;</span>, aRange.end());</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="namespacepFlow.html#a86ae30c22a4ef4bc487b40ed52f4d2f9">output</a>&lt;&lt;<span class="stringliteral">&quot;before first kernel&quot;</span>&lt;&lt;<a class="code" href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">using</span> rpMorton = </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; Kokkos::RangePolicy&lt;Kokkos::IndexType&lt;int32&gt;&gt;;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> numActive = 0;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; Kokkos::parallel_reduce</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; (</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="stringliteral">&quot;mortonIndexing::getIndex::morton&quot;</span>,</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; rpMorton(activeRange.first, activeRange.second),</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="pFlowMacros_8hpp.html#aa7d4742cdf24a3792276e669531d145c">LAMBDA_HD</a>(<a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> i, <a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a>&amp; sumToUpdate){</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">if</span>( flag[i] == 1 ) <span class="comment">// active point </span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; Kokkos::parallel_for</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; (</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="stringliteral">&quot;mortonIndexing::getIndex::morton&quot;</span>,</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <a class="code" href="namespacepFlow.html#a6ea32be3339f3023ab349c9c3775c916">deviceRPolicyStatic</a>(aRange.start(), aRange.end()),</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="pFlowMacros_8hpp.html#aa7d4742cdf24a3792276e669531d145c">LAMBDA_HD</a>(<a class="code" href="namespacepFlow.html#abd01e8e67e3d94cab04ecaaf4f85ac1b">uint32</a> i){</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">if</span>( flag.<a class="code" href="classpFlow_1_1pointFlag.html#a94acbfb7f98df81351afd7683c33a400">isActive</a>(i)) <span class="comment">// active point </span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; auto cellInd = allCells.pointIndex(pos[i]);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; mortonCode[i] = xyzToMortonCode64(cellInd.x(), cellInd.y(), cellInd.z());</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; }<span class="keywordflow">else</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">auto</span> cellInd = allCells.<a class="code" href="classpFlow_1_1cells.html#a6a5c6423585a7ad6ad55f6df56c459bd">pointIndex</a>(pos[i]);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; mortonCode[i] = <a class="code" href="namespacepFlow.html#af9e399d88da408c52c6c167b651766e5">xyzToMortonCode64</a>(cellInd.x(), cellInd.y(), cellInd.z());</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; sumToUpdate++;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; }<span class="keywordflow">else</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; {</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; mortonCode[i] = <a class="code" href="namespacepFlow.html#af9e399d88da408c52c6c167b651766e5">xyzToMortonCode64</a></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; (</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(-1),</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(-1),</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keyword">static_cast&lt;</span>uint64_t<span class="keyword">&gt;</span>(-1)</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; );</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; }</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; },</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; numActive</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; );</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="namespacepFlow_1_1algorithms_1_1STD.html#af645f7face856614b2d5e1ff94b83960">permuteSort</a>(</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; mortonCode, </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; activeRange.first, </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; activeRange.second,</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; index.<a class="code" href="classpFlow_1_1indexContainer.html#abe2bb54e3d8d44844edc05a46accd8d4">deviceView</a>(),</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; 0 );</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; index.<a class="code" href="classpFlow_1_1indexContainer.html#a62f30f38f9c1db8aa064dbe0db5c4728">modifyOnDevice</a>();</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; index.<a class="code" href="classpFlow_1_1indexContainer.html#a9884549c8be9897d5550d31bc0bcf7f2">setSize</a>(numActive);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; index.<a class="code" href="classpFlow_1_1indexContainer.html#a795138dcd25e874d4ab7ed03ce7603b6">syncViews</a>();</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; sortedIndex = index;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;}</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; mortonCode[i] = xyzToMortonCode64</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; (</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; largestPosInt32,</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; largestPosInt32,</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; largestPosInt32</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; );</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; }</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; }</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; );</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; Kokkos::fence();</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="namespacepFlow_1_1algorithms_1_1STD.html#af645f7face856614b2d5e1ff94b83960">permuteSort</a>(</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; mortonCode, </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; aRange.start(), </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; aRange.end(),</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; sortedIndex.<a class="code" href="classpFlow_1_1indexContainer.html#abe2bb54e3d8d44844edc05a46accd8d4">deviceView</a>(),</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; 0 );</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; sortedIndex.<a class="code" href="classpFlow_1_1indexContainer.html#a62f30f38f9c1db8aa064dbe0db5c4728">modifyOnDevice</a>();</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; sortedIndex.<a class="code" href="classpFlow_1_1indexContainer.html#a795138dcd25e874d4ab7ed03ce7603b6">syncViews</a>(flag.<a class="code" href="classpFlow_1_1pointFlag.html#adf977479a67f3fafb8eda6074d7a932d">numActive</a>());</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordflow">return</span> sortedIndex;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="anamespacepFlow_html_a6192191c0e9c178a44ee1ac350fde476"><div class="ttname"><a href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">pFlow::real</a></div><div class="ttdeci">float real</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00046">builtinTypes.hpp:46</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a304d8581876270871949bf5d4755036a"><div class="ttname"><a href="namespacepFlow.html#a304d8581876270871949bf5d4755036a">pFlow::range</a></div><div class="ttdeci">kRange&lt; int &gt; range</div><div class="ttdef"><b>Definition:</b> <a href="KokkosTypes_8hpp_source.html#l00059">KokkosTypes.hpp:59</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html_a795138dcd25e874d4ab7ed03ce7603b6"><div class="ttname"><a href="classpFlow_1_1indexContainer.html#a795138dcd25e874d4ab7ed03ce7603b6">pFlow::indexContainer::syncViews</a></div><div class="ttdeci">void syncViews()</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00191">indexContainer.hpp:191</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a493862193d78c409ce4ddb2b4d49c17f"><div class="ttname"><a href="namespacepFlow.html#a493862193d78c409ce4ddb2b4d49c17f">pFlow::getSortedIndex</a></div><div class="ttdeci">bool getSortedIndex(box boundingBox, real dx, range activeRange, ViewType1D&lt; realx3 &gt; pos, ViewType1D&lt; int8 &gt; flag, int32IndexContainer &amp;sortedIndex)</div><div class="ttdef"><b>Definition:</b> <a href="mortonIndexing_8cpp_source.html#l00026">mortonIndexing.cpp:26</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aba8f0c455a3fdb4b05ad33a25b13b189"><div class="ttname"><a href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">pFlow::endl</a></div><div class="ttdeci">iOstream &amp; endl(iOstream &amp;os)</div><div class="ttdoc">Add newline and flush stream.</div><div class="ttdef"><b>Definition:</b> <a href="iOstream_8hpp_source.html#l00320">iOstream.hpp:320</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aae6ad039f09c0676db11bd114136a3fa"><div class="ttname"><a href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">pFlow::int32</a></div><div class="ttdeci">int int32</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00053">builtinTypes.hpp:53</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html_a9884549c8be9897d5550d31bc0bcf7f2"><div class="ttname"><a href="classpFlow_1_1indexContainer.html#a9884549c8be9897d5550d31bc0bcf7f2">pFlow::indexContainer::setSize</a></div><div class="ttdeci">size_t setSize(size_t ns)</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00212">indexContainer.hpp:212</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a86ae30c22a4ef4bc487b40ed52f4d2f9"><div class="ttname"><a href="namespacepFlow.html#a86ae30c22a4ef4bc487b40ed52f4d2f9">pFlow::output</a></div><div class="ttdeci">Ostream output</div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html_a62f30f38f9c1db8aa064dbe0db5c4728"><div class="ttname"><a href="classpFlow_1_1indexContainer.html#a62f30f38f9c1db8aa064dbe0db5c4728">pFlow::indexContainer::modifyOnDevice</a></div><div class="ttdeci">void modifyOnDevice()</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00186">indexContainer.hpp:186</a></div></div>
<div class="ttc" id="anamespacepFlow_html_af9e399d88da408c52c6c167b651766e5"><div class="ttname"><a href="namespacepFlow.html#af9e399d88da408c52c6c167b651766e5">pFlow::xyzToMortonCode64</a></div><div class="ttdeci">INLINE_FUNCTION_HD uint64_t xyzToMortonCode64(uint64_t x, uint64_t y, uint64_t z)</div><div class="ttdef"><b>Definition:</b> <a href="contactSearchFunctions_8hpp_source.html#l00042">contactSearchFunctions.hpp:42</a></div></div>
<div class="ttc" id="astreams_8hpp_html"><div class="ttname"><a href="streams_8hpp.html">streams.hpp</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a6192191c0e9c178a44ee1ac350fde476"><div class="ttname"><a href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">pFlow::real</a></div><div class="ttdeci">float real</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00045">builtinTypes.hpp:45</a></div></div>
<div class="ttc" id="anamespacepFlow_html_abd01e8e67e3d94cab04ecaaf4f85ac1b"><div class="ttname"><a href="namespacepFlow.html#abd01e8e67e3d94cab04ecaaf4f85ac1b">pFlow::uint32</a></div><div class="ttdeci">unsigned int uint32</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00056">builtinTypes.hpp:56</a></div></div>
<div class="ttc" id="aclasspFlow_1_1pointFlag_html_adf977479a67f3fafb8eda6074d7a932d"><div class="ttname"><a href="classpFlow_1_1pointFlag.html#adf977479a67f3fafb8eda6074d7a932d">pFlow::pointFlag::numActive</a></div><div class="ttdeci">INLINE_FUNCTION_HD auto numActive() const</div><div class="ttdef"><b>Definition:</b> <a href="pointFlag_8hpp_source.html#l00191">pointFlag.hpp:191</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html_a795138dcd25e874d4ab7ed03ce7603b6"><div class="ttname"><a href="classpFlow_1_1indexContainer.html#a795138dcd25e874d4ab7ed03ce7603b6">pFlow::indexContainer::syncViews</a></div><div class="ttdeci">void syncViews()</div><div class="ttdoc">synchronize views</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00250">indexContainer.hpp:250</a></div></div>
<div class="ttc" id="anamespacepFlow_html_ace91b5b09f95f3d8409247898e688e9b"><div class="ttname"><a href="namespacepFlow.html#ace91b5b09f95f3d8409247898e688e9b">pFlow::uint32IndexContainer</a></div><div class="ttdeci">indexContainer&lt; uint32 &gt; uint32IndexContainer</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00286">indexContainer.hpp:286</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a0326b52c0c892dc9732af2580c7bfe6d"><div class="ttname"><a href="namespacepFlow.html#a0326b52c0c892dc9732af2580c7bfe6d">pFlow::getSortedIndices</a></div><div class="ttdeci">uint32IndexContainer getSortedIndices(box boundingBox, real dx, const ViewType1D&lt; realx3 &gt; &amp;pos, const pFlagTypeDevice &amp;flag)</div><div class="ttdef"><b>Definition:</b> <a href="mortonIndexing_8cpp_source.html#l00024">mortonIndexing.cpp:24</a></div></div>
<div class="ttc" id="aclasspFlow_1_1pointFlag_html_a94acbfb7f98df81351afd7683c33a400"><div class="ttname"><a href="classpFlow_1_1pointFlag.html#a94acbfb7f98df81351afd7683c33a400">pFlow::pointFlag::isActive</a></div><div class="ttdeci">INLINE_FUNCTION_HD bool isActive(uint32 i) const</div><div class="ttdef"><b>Definition:</b> <a href="pointFlag_8hpp_source.html#l00240">pointFlag.hpp:240</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html_a62f30f38f9c1db8aa064dbe0db5c4728"><div class="ttname"><a href="classpFlow_1_1indexContainer.html#a62f30f38f9c1db8aa064dbe0db5c4728">pFlow::indexContainer::modifyOnDevice</a></div><div class="ttdeci">void modifyOnDevice()</div><div class="ttdoc">Mark device is modified.</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00244">indexContainer.hpp:244</a></div></div>
<div class="ttc" id="aclasspFlow_1_1pointFlag_html_a766f5bcd312f3e0ca10011181b05f318"><div class="ttname"><a href="classpFlow_1_1pointFlag.html#a766f5bcd312f3e0ca10011181b05f318">pFlow::pointFlag::activeRange</a></div><div class="ttdeci">const INLINE_FUNCTION_HD auto &amp; activeRange() const</div><div class="ttdef"><b>Definition:</b> <a href="pointFlag_8hpp_source.html#l00179">pointFlag.hpp:179</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aeac3efd0f623f0010ce6daa6499d8ebe"><div class="ttname"><a href="namespacepFlow.html#aeac3efd0f623f0010ce6daa6499d8ebe">pFlow::ViewType1D</a></div><div class="ttdeci">Kokkos::View&lt; T *, properties... &gt; ViewType1D</div><div class="ttdoc">1D veiw as a vector</div><div class="ttdef"><b>Definition:</b> <a href="KokkosTypes_8hpp_source.html#l00093">KokkosTypes.hpp:93</a></div></div>
<div class="ttc" id="anamespacepFlow_1_1algorithms_1_1STD_html_af645f7face856614b2d5e1ff94b83960"><div class="ttname"><a href="namespacepFlow_1_1algorithms_1_1STD.html#af645f7face856614b2d5e1ff94b83960">pFlow::algorithms::STD::permuteSort</a></div><div class="ttdeci">INLINE_FUNCTION_H void permuteSort(const Type *first, PermuteType *pFirst, int32 numElems)</div><div class="ttdef"><b>Definition:</b> <a href="stdAlgorithms_8hpp_source.html#l00188">stdAlgorithms.hpp:188</a></div></div>
<div class="ttc" id="aclasspFlow_1_1box_html"><div class="ttname"><a href="classpFlow_1_1box.html">pFlow::box</a></div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00032">box.hpp:32</a></div></div>
<div class="ttc" id="apFlowMacros_8hpp_html_aa7d4742cdf24a3792276e669531d145c"><div class="ttname"><a href="pFlowMacros_8hpp.html#aa7d4742cdf24a3792276e669531d145c">LAMBDA_HD</a></div><div class="ttdeci">#define LAMBDA_HD</div><div class="ttdef"><b>Definition:</b> <a href="pFlowMacros_8hpp_source.html#l00054">pFlowMacros.hpp:54</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aca2b381231776d26ea7431837f78aa24"><div class="ttname"><a href="namespacepFlow.html#aca2b381231776d26ea7431837f78aa24">pFlow::ViewType1D</a></div><div class="ttdeci">Kokkos::View&lt; T *, properties... &gt; ViewType1D</div><div class="ttdef"><b>Definition:</b> <a href="KokkosTypes_8hpp_source.html#l00067">KokkosTypes.hpp:67</a></div></div>
<div class="ttc" id="apFlowMacros_8hpp_html_aa7d4742cdf24a3792276e669531d145c"><div class="ttname"><a href="pFlowMacros_8hpp.html#aa7d4742cdf24a3792276e669531d145c">LAMBDA_HD</a></div><div class="ttdeci">#define LAMBDA_HD</div><div class="ttdef"><b>Definition:</b> <a href="pFlowMacros_8hpp_source.html#l00058">pFlowMacros.hpp:58</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a6ea32be3339f3023ab349c9c3775c916"><div class="ttname"><a href="namespacepFlow.html#a6ea32be3339f3023ab349c9c3775c916">pFlow::deviceRPolicyStatic</a></div><div class="ttdeci">Kokkos::RangePolicy&lt; Kokkos::DefaultExecutionSpace, Kokkos::Schedule&lt; Kokkos::Static &gt;, Kokkos::IndexType&lt; pFlow::uint32 &gt; &gt; deviceRPolicyStatic</div><div class="ttdef"><b>Definition:</b> <a href="KokkosTypes_8hpp_source.html#l00066">KokkosTypes.hpp:66</a></div></div>
<div class="ttc" id="amortonIndexing_8hpp_html"><div class="ttname"><a href="mortonIndexing_8hpp.html">mortonIndexing.hpp</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cells_html"><div class="ttname"><a href="classpFlow_1_1cells.html">pFlow::cells</a></div><div class="ttdef"><b>Definition:</b> <a href="Interaction_2contactSearch_2cells_8hpp_source.html#l00032">cells.hpp:32</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cells_html_a6a5c6423585a7ad6ad55f6df56c459bd"><div class="ttname"><a href="classpFlow_1_1cells.html#a6a5c6423585a7ad6ad55f6df56c459bd">pFlow::cells::pointIndex</a></div><div class="ttdeci">INLINE_FUNCTION_HD CellType pointIndex(const realx3 &amp;p) const</div><div class="ttdef"><b>Definition:</b> <a href="Interaction_2contactSearch_2cells_8hpp_source.html#l00158">cells.hpp:158</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html"><div class="ttname"><a href="classpFlow_1_1indexContainer.html">pFlow::indexContainer&lt; int32 &gt;</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html_abe2bb54e3d8d44844edc05a46accd8d4"><div class="ttname"><a href="classpFlow_1_1indexContainer.html#abe2bb54e3d8d44844edc05a46accd8d4">pFlow::indexContainer::deviceView</a></div><div class="ttdeci">const DeviceViewType &amp; deviceView() const</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00156">indexContainer.hpp:156</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cells_html"><div class="ttname"><a href="classpFlow_1_1cells.html">pFlow::cells</a></div><div class="ttdef"><b>Definition:</b> <a href="Interaction_2contactSearch_2methods_2cellBased_2cells_8hpp_source.html#l00031">cells.hpp:31</a></div></div>
<div class="ttc" id="aclasspFlow_1_1pointFlag_html"><div class="ttname"><a href="classpFlow_1_1pointFlag.html">pFlow::pointFlag&lt; DefaultExecutionSpace &gt;</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html"><div class="ttname"><a href="classpFlow_1_1indexContainer.html">pFlow::indexContainer</a></div><div class="ttdoc">It holds two vectors of indecis on Host and Device.</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00039">indexContainer.hpp:39</a></div></div>
<div class="ttc" id="aclasspFlow_1_1indexContainer_html_abe2bb54e3d8d44844edc05a46accd8d4"><div class="ttname"><a href="classpFlow_1_1indexContainer.html#abe2bb54e3d8d44844edc05a46accd8d4">pFlow::indexContainer::deviceView</a></div><div class="ttdeci">const DeviceViewType &amp; deviceView() const</div><div class="ttdoc">Return Device view.</div><div class="ttdef"><b>Definition:</b> <a href="indexContainer_8hpp_source.html#l00208">indexContainer.hpp:208</a></div></div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_cd7a5046d028e114fc17b2ebc2bd02d2.html">phasicFlow</a></li><li class="navelem"><a class="el" href="dir_0b265ec0eb5bc5fbad75b6fd7b5b024b.html">structuredData</a></li><li class="navelem"><a class="el" href="dir_40d089f5b6543888409b0c9c3858ee92.html">pointStructure</a></li><li class="navelem"><a class="el" href="mortonIndexing_8cpp.html">mortonIndexing.cpp</a></li>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_cd7a5046d028e114fc17b2ebc2bd02d2.html">phasicFlow</a></li><li class="navelem"><a class="el" href="dir_0b265ec0eb5bc5fbad75b6fd7b5b024b.html">structuredData</a></li><li class="navelem"><a class="el" href="dir_40d089f5b6543888409b0c9c3858ee92.html">pointStructure</a></li><li class="navelem"><a class="el" href="dir_ab1bedec1dabb2ed23fd7ef97be7faaf.html">pointStructure</a></li><li class="navelem"><a class="el" href="dir_ac99ced07b260fc3f919077327d70a7b.html">pointSorting</a></li><li class="navelem"><a class="el" href="mortonIndexing_8cpp.html">mortonIndexing.cpp</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>