]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
check in proposed change in issue 148 to get rid of crashes in the tests. Not sure...
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Nov 2013 15:49:28 +0000 (15:49 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Nov 2013 15:49:28 +0000 (15:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@31748 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index b000b1435ec744438e34249492ac3720764a2710..248cbb0cdd46fb08eb4a888747554f2b73964f82 100644 (file)
@@ -6996,7 +6996,9 @@ void DataOutBase::write_filtered_data (const std::vector<Patch<dim,spacedim> > &
       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;

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.