From 99506f677f001568afedcd0dde4f99ef3744936c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 8 Nov 2017 12:52:26 -0700 Subject: [PATCH] Simplify code a bit. --- .../deal.II/numerics/data_out_dof_data.templates.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/deal.II/numerics/data_out_dof_data.templates.h b/include/deal.II/numerics/data_out_dof_data.templates.h index 1c7a1f17c6..50f089419e 100644 --- a/include/deal.II/numerics/data_out_dof_data.templates.h +++ b/include/deal.II/numerics/data_out_dof_data.templates.h @@ -1273,16 +1273,8 @@ DataOut_DoFData::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 -- 2.39.5