From: Timo Heister Date: Thu, 21 Nov 2013 15:49:28 +0000 (+0000) Subject: check in proposed change in issue 148 to get rid of crashes in the tests. Not sure... X-Git-Tag: v8.1.0~218 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca8943bd394b0f5ec9a6be3b24184f43ed001d0;p=dealii.git check in proposed change in issue 148 to get rid of crashes in the tests. Not sure if the logic is correct. git-svn-id: https://svn.dealii.org/trunk@31748 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index b000b1435e..248cbb0cdd 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -6996,7 +6996,9 @@ void DataOutBase::write_filtered_data (const std::vector > & while (n_th_vector < vector_data_ranges.size() && std_cxx1x::get<0>(vector_data_ranges[n_th_vector]) < data_set) n_th_vector++; // Determine the dimension of this data - if (std_cxx1x::get<0>(vector_data_ranges[n_th_vector]) == data_set) + // TODO: is this new logic correct here? + // please see https://code.google.com/p/dealii/issues/detail?id=148 + if (n_th_vector < vector_data_ranges.size() && std_cxx1x::get<0>(vector_data_ranges[n_th_vector]) == data_set) { // Multiple dimensions pt_data_vector_dim = std_cxx1x::get<1>(vector_data_ranges[n_th_vector]) - std_cxx1x::get<0>(vector_data_ranges[n_th_vector])+1;