]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a bug: in 1d, vector ranges can well contain only a single element.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Oct 2007 00:59:01 +0000 (00:59 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Oct 2007 00:59:01 +0000 (00:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@15325 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index 36e89bdf4c290c55dada8cd7961683e52ba7aa1f..f141e53e44bf39e7ad912ac8fc0b868aa1537997 100644 (file)
@@ -3853,7 +3853,7 @@ DataOutBase::write_vtk (const std::vector<Patch<dim,spacedim> > &patches,
   for (unsigned int n_th_vector=0; n_th_vector<vector_data_ranges.size(); ++n_th_vector)
     {
       
-      AssertThrow (vector_data_ranges[n_th_vector].template get<1>() >
+      AssertThrow (vector_data_ranges[n_th_vector].template get<1>() >=
                   vector_data_ranges[n_th_vector].template get<0>(),
                   ExcLowerRange (vector_data_ranges[n_th_vector].template get<1>(),
                                  vector_data_ranges[n_th_vector].template get<0>()));

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.