From: Daniel Arndt Date: Thu, 30 Jul 2020 12:48:27 +0000 (-0400) Subject: Improve DataOutDoFData error message ExcInvalidVectorSize X-Git-Tag: v9.3.0-rc1~1240^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd3c85a343b122ff0c2f4c8ff6cb969afbdc4a78;p=dealii.git Improve DataOutDoFData error message ExcInvalidVectorSize --- diff --git a/include/deal.II/numerics/data_out_dof_data.h b/include/deal.II/numerics/data_out_dof_data.h index 8630f7664b..c326b475fa 100644 --- a/include/deal.II/numerics/data_out_dof_data.h +++ b/include/deal.II/numerics/data_out_dof_data.h @@ -87,8 +87,10 @@ namespace Exceptions << " but the DoFHandler object says that there are " << arg2 << " degrees of freedom and there are " << arg3 << " active cells. The size of your vector needs to be" - << " either equal to the number of degrees of freedom, or" - << " equal to the number of active cells."); + << " either equal to the number of degrees of freedom (when" + << " the data is of type type_dof_data), or equal to the" + << " number of active cells (when the data is of type " + << " type_cell_data)."); /** * Exception */