From fd3c85a343b122ff0c2f4c8ff6cb969afbdc4a78 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 30 Jul 2020 08:48:27 -0400 Subject: [PATCH] Improve DataOutDoFData error message ExcInvalidVectorSize --- include/deal.II/numerics/data_out_dof_data.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.39.5