]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify code a bit.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Nov 2017 19:52:26 +0000 (12:52 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Nov 2017 19:52:26 +0000 (12:52 -0700)
include/deal.II/numerics/data_out_dof_data.templates.h

index 1c7a1f17c62f29c7ea32f831686b4e4ff0a03f82..50f089419e1fbcdba319a7f1a2f627801ea11d1f 100644 (file)
@@ -1273,16 +1273,8 @@ DataOut_DoFData<DoFHandlerType,patch_dim,patch_space_dim>::get_vector_data_range
         {
           // just move one component forward by one, or two if the vector
           // happens to be complex-valued
-          if ((*d)->is_complex_valued() == false)
-            {
-              ++output_component;
-              ++i;
-            }
-          else
-            {
-              output_component += 2;
-              ++i;
-            }
+          ++i;
+          output_component += ((*d)->is_complex_valued() ? 2 : 1);
         }
 
   // note that we do not have to traverse the list of cell data here because cell data

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.