@@ -4774,25 +4774,23 @@ void CPhysicalGeometry::SetRCM_Ordering(CConfig *config) {
47744774 SU2_MPI::Error (" RCM ordering failed" , CURRENT_FUNCTION);
47754775 }
47764776
4777- /* --- Add the node in the first free position . ---*/
4777+ /* --- Seed the queue with the minimum degree node . ---*/
47784778
47794779 Queue.push (AddPoint);
47804780 inQueue[AddPoint] = true ;
47814781
4782- /* --- Loop until reorganize all the nodes ---*/
4782+ /* --- Loop until reorganizing all the nodes. ---*/
47834783
47844784 while (!Queue.empty ()) {
47854785
4786- /* --- Extract the first node from the queue and add it in the first free
4787- position. ---*/
4786+ /* --- Extract the first node from the queue and add it to the order. ---*/
47884787
47894788 AddPoint = Queue.front ();
47904789 Result.push_back (AddPoint);
47914790 Queue.pop ();
47924791
4793- /* --- Add to the queue all the nodes adjacent in the increasing
4794- order of their degree, checking if the element is already
4795- in the Queue. ---*/
4792+ /* --- Add all adjacent nodes to the queue in increasing order of their
4793+ degree, checking if the element is already in the queue. ---*/
47964794
47974795 AuxQueue.clear ();
47984796 for (auto iNode = 0u ; iNode < nodes->GetnPoint (AddPoint); iNode++) {
@@ -4803,7 +4801,7 @@ void CPhysicalGeometry::SetRCM_Ordering(CConfig *config) {
48034801 }
48044802 if (AuxQueue.empty ()) continue ;
48054803
4806- /* --- Sort the auxiliar queue based on the number of neighbors ---*/
4804+ /* --- Sort the auxiliar queue based on the number of neighbors (degree). ---*/
48074805
48084806 stable_sort (AuxQueue.begin (), AuxQueue.end (),
48094807 [&](unsigned long iPoint, unsigned long jPoint) {
0 commit comments