From e4d76ffa7dea0e227818d9826fae53c381b9a7b0 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 11 May 2011 11:11:21 +0000 Subject: [PATCH] warn if we try to set geometrical interpolation matrices in model-based views: we should actually not allow it, as it makes no sense. we should reserve the additional matrices to implement other (e.g. vector) interpolation schemes --- Post/PViewDataGModel.cpp | 3 +++ doc/texinfo/gmsh.texi | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Post/PViewDataGModel.cpp b/Post/PViewDataGModel.cpp index 96fadd77b9..65c305c83d 100644 --- a/Post/PViewDataGModel.cpp +++ b/Post/PViewDataGModel.cpp @@ -152,6 +152,9 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat } else if(it->second.size() == 4){ // use provided matrices for field and geometry + Msg::Warning("You should not specify the geometrical interpolation " + "in ElementNodeData: the geometry is completely determined " + "by the mesh element type. This feature will be removed"); setInterpolationMatrices(it->first, *it->second[0], *it->second[1], *it->second[2], *it->second[3]); } diff --git a/doc/texinfo/gmsh.texi b/doc/texinfo/gmsh.texi index c2852a79ee..507f0510a2 100644 --- a/doc/texinfo/gmsh.texi +++ b/doc/texinfo/gmsh.texi @@ -3779,10 +3779,10 @@ for prisms, 8 for hexahedra, 9 for polygons and 10 for polyhedra. @item @var{number-of-interpolation-matrices} is the number of interpolation matrices provided for this element -topology. Currently you should provide either 2 or 4 matrices: the -matrices have the same meaning as in @ref{Post-processing commands}. -The matrices are specified by 2 integers (@var{num-rows} and -@var{num-columns}) followed by the values. +topology. Currently you should provide 2 matrices, i.e., the matrices +that specify how to interpolate the data (they have the same meaning as +in @ref{Post-processing commands}). The matrices are specified by 2 +integers (@var{num-rows} and @var{num-columns}) followed by the values. @end table -- GitLab