Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 23, 2023
1 parent a90abb2 commit dcd2c1b
Showing 1 changed file with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,30 +166,29 @@
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">auto</span> startIndexInTower =</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> clusterCount == 0 ? clusterRange.startIndexInTower : currentTower.getFirstOwnedClusterIndex();</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> clusterIndex = startIndexInTower;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> clusterIndex &lt; clusterRange.numClusters and clusterCount &lt; clusterRange.numClusters and</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> clusterIndex &lt; currentTower.getFirstTailHaloClusterIndex();</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> clusterIndex++, clusterCount++) {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">const</span> <span class="keyword">auto</span> isHaloCluster = clusterIndex &lt; currentTower.getFirstOwnedClusterIndex() or</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> clusterIndex &gt;= currentTower.getFirstTailHaloClusterIndex();</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> _clusterFunctor.processCluster(currentTower.getCluster(clusterIndex), isHaloCluster);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> }</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">if</span> (clusterCount != clusterRange.numClusters) {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_function" href="classautopas_1_1utils_1_1ExceptionHandler.html#ae61b9aac49a90a9ff86859c73005ee07">autopas::utils::ExceptionHandler::exception</a>(</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="stringliteral">&quot;VCLC01BalancedTraversal::traverseParticlePairs(): Not all or too many clusters traversed, probably &quot;</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="stringliteral">&quot;the clusterThreadPartitions are wrong! TraversedClusters={}, ClustersInRange={}&quot;</span>,</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> clusterCount, clusterRange.numClusters);</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> }</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</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> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classautopas_1_1VCLC01BalancedTraversal.html#ae58cac26fce318fc7e3484f047e1f63c"> 95</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classautopas_1_1VCLC01BalancedTraversal.html#ae58cac26fce318fc7e3484f047e1f63c">needsStaticClusterThreadPartition</a>()<span class="keyword"> override </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</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> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> PairwiseFunctor *_functor;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_class" href="classautopas_1_1internal_1_1VCLClusterFunctor.html">internal::VCLClusterFunctor&lt;Particle, PairwiseFunctor, dataLayout, useNewton3&gt;</a> _clusterFunctor;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span>};</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span>} <span class="comment">// namespace autopas</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> clusterCount &lt; clusterRange.numClusters and clusterIndex &lt; currentTower.getFirstTailHaloClusterIndex();</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> clusterIndex++, clusterCount++) {</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">const</span> <span class="keyword">auto</span> isHaloCluster = clusterIndex &lt; currentTower.getFirstOwnedClusterIndex() or</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> clusterIndex &gt;= currentTower.getFirstTailHaloClusterIndex();</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> _clusterFunctor.processCluster(currentTower.getCluster(clusterIndex), isHaloCluster);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> }</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">if</span> (clusterCount != clusterRange.numClusters) {</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_function" href="classautopas_1_1utils_1_1ExceptionHandler.html#ae61b9aac49a90a9ff86859c73005ee07">autopas::utils::ExceptionHandler::exception</a>(</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="stringliteral">&quot;VCLC01BalancedTraversal::traverseParticlePairs(): Not all or too many clusters traversed, probably &quot;</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="stringliteral">&quot;the clusterThreadPartitions are wrong! TraversedClusters={}, ClustersInRange={}&quot;</span>,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> clusterCount, clusterRange.numClusters);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> }</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</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"><a class="line" href="classautopas_1_1VCLC01BalancedTraversal.html#ae58cac26fce318fc7e3484f047e1f63c"> 94</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classautopas_1_1VCLC01BalancedTraversal.html#ae58cac26fce318fc7e3484f047e1f63c">needsStaticClusterThreadPartition</a>()<span class="keyword"> override </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> PairwiseFunctor *_functor;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_class" href="classautopas_1_1internal_1_1VCLClusterFunctor.html">internal::VCLClusterFunctor&lt;Particle, PairwiseFunctor, dataLayout, useNewton3&gt;</a> _clusterFunctor;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span>};</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span>} <span class="comment">// namespace autopas</span></div>
<div class="ttc" id="aTraversalInterface_8h_html"><div class="ttname"><a href="TraversalInterface_8h.html">TraversalInterface.h</a></div></div>
<div class="ttc" id="aVCLClusterFunctor_8h_html"><div class="ttname"><a href="VCLClusterFunctor_8h.html">VCLClusterFunctor.h</a></div></div>
<div class="ttc" id="aVCLTraversalInterface_8h_html"><div class="ttname"><a href="VCLTraversalInterface_8h.html">VCLTraversalInterface.h</a></div></div>
Expand All @@ -203,7 +202,7 @@
<div class="ttc" id="aclassautopas_1_1VCLC01BalancedTraversal_html_a7f71e45cf38aff652573c330fb1ebd54"><div class="ttname"><a href="classautopas_1_1VCLC01BalancedTraversal.html#a7f71e45cf38aff652573c330fb1ebd54">autopas::VCLC01BalancedTraversal::getUseNewton3</a></div><div class="ttdeci">bool getUseNewton3() const override</div><div class="ttdoc">Return whether the traversal uses newton 3.</div><div class="ttdef"><b>Definition:</b> VCLC01BalancedTraversal.h:39</div></div>
<div class="ttc" id="aclassautopas_1_1VCLC01BalancedTraversal_html_a84473ed5029c82577da2cb488f3ba558"><div class="ttname"><a href="classautopas_1_1VCLC01BalancedTraversal.html#a84473ed5029c82577da2cb488f3ba558">autopas::VCLC01BalancedTraversal::traverseParticlePairs</a></div><div class="ttdeci">void traverseParticlePairs() override</div><div class="ttdoc">Traverses all particle pairs.</div><div class="ttdef"><b>Definition:</b> VCLC01BalancedTraversal.h:59</div></div>
<div class="ttc" id="aclassautopas_1_1VCLC01BalancedTraversal_html_ac6eddf2a28043465bc8e0a8a07a6301b"><div class="ttname"><a href="classautopas_1_1VCLC01BalancedTraversal.html#ac6eddf2a28043465bc8e0a8a07a6301b">autopas::VCLC01BalancedTraversal::isApplicable</a></div><div class="ttdeci">bool isApplicable() const override</div><div class="ttdoc">Checks if the traversal is applicable to the current state of the domain.</div><div class="ttdef"><b>Definition:</b> VCLC01BalancedTraversal.h:41</div></div>
<div class="ttc" id="aclassautopas_1_1VCLC01BalancedTraversal_html_ae58cac26fce318fc7e3484f047e1f63c"><div class="ttname"><a href="classautopas_1_1VCLC01BalancedTraversal.html#ae58cac26fce318fc7e3484f047e1f63c">autopas::VCLC01BalancedTraversal::needsStaticClusterThreadPartition</a></div><div class="ttdeci">bool needsStaticClusterThreadPartition() override</div><div class="ttdoc">Returns whether this traversal needs the static cluster thread partiton of the cluster list.</div><div class="ttdef"><b>Definition:</b> VCLC01BalancedTraversal.h:95</div></div>
<div class="ttc" id="aclassautopas_1_1VCLC01BalancedTraversal_html_ae58cac26fce318fc7e3484f047e1f63c"><div class="ttname"><a href="classautopas_1_1VCLC01BalancedTraversal.html#ae58cac26fce318fc7e3484f047e1f63c">autopas::VCLC01BalancedTraversal::needsStaticClusterThreadPartition</a></div><div class="ttdeci">bool needsStaticClusterThreadPartition() override</div><div class="ttdoc">Returns whether this traversal needs the static cluster thread partiton of the cluster list.</div><div class="ttdef"><b>Definition:</b> VCLC01BalancedTraversal.h:94</div></div>
<div class="ttc" id="aclassautopas_1_1VCLTraversalInterface_html"><div class="ttname"><a href="classautopas_1_1VCLTraversalInterface.html">autopas::VCLTraversalInterface</a></div><div class="ttdoc">Interface for traversals of the VerletClusterLists container.</div><div class="ttdef"><b>Definition:</b> VCLTraversalInterface.h:20</div></div>
<div class="ttc" id="aclassautopas_1_1internal_1_1VCLClusterFunctor_html"><div class="ttname"><a href="classautopas_1_1internal_1_1VCLClusterFunctor.html">autopas::internal::VCLClusterFunctor</a></div><div class="ttdoc">Provides methods to traverse a single cluster and a pair of clusters.</div><div class="ttdef"><b>Definition:</b> VCLClusterFunctor.h:24</div></div>
<div class="ttc" id="aclassautopas_1_1utils_1_1ExceptionHandler_html_ae61b9aac49a90a9ff86859c73005ee07"><div class="ttname"><a href="classautopas_1_1utils_1_1ExceptionHandler.html#ae61b9aac49a90a9ff86859c73005ee07">autopas::utils::ExceptionHandler::exception</a></div><div class="ttdeci">static void exception(const Exception e)</div><div class="ttdoc">Handle an exception derived by std::exception.</div><div class="ttdef"><b>Definition:</b> ExceptionHandler.h:63</div></div>
Expand Down

0 comments on commit dcd2c1b

Please sign in to comment.