From: Wolfgang Bangerth Date: Wed, 8 Nov 2017 19:52:26 +0000 (-0700) Subject: Simplify code a bit. X-Git-Tag: v9.0.0-rc1~798^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99506f677f001568afedcd0dde4f99ef3744936c;p=dealii.git Simplify code a bit. --- 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