[cig-commits] commit 1933 by buerg to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Wed Oct 2 10:20:07 PDT 2013


Revision 1933

Fix bug in visualization.

U   trunk/aspire/source/postprocess/visualization.cc


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=1933&peg=1933

Diff:
Modified: trunk/aspire/source/postprocess/visualization.cc
===================================================================
--- trunk/aspire/source/postprocess/visualization.cc	2013-10-02 15:26:58 UTC (rev 1932)
+++ trunk/aspire/source/postprocess/visualization.cc	2013-10-02 17:19:33 UTC (rev 1933)
@@ -163,27 +163,16 @@
               const std::pair<std::pair<unsigned int, unsigned int>, unsigned int>& system_to_base_index
                 = fe_system.system_to_base_index (i);
               
-              switch (system_to_base_index.first.first)
-              {
-                case 0:
-                {
-                  solution (cell_dof_indices[i]) = solution_velocity (cell_velocity_dof_indices[system_to_base_index.second]);
-                  break;
-                }
-                
-                case 1:
-                {
+              if (system_to_base_index.first.first == 0)
+                solution (cell_dof_indices[i]) = solution_velocity (cell_velocity_dof_indices[system_to_base_index.second]);
+              
+              else
+                if (system_to_base_index.first.second == 0)
                   solution (cell_dof_indices[i]) = solution_temperature (cell_advection_dof_indices[system_to_base_index.second]);
-                  break;
-                }
                 
-                case 2:
-                {
+                else
                   solution (cell_dof_indices[i])
                     = solution_composition.block (system_to_base_index.first.second - 1) (cell_advection_dof_indices[system_to_base_index.second]);
-                  break;
-                }
-              }
             }
           }
         


More information about the CIG-COMMITS mailing list