Skip to content
Snippets Groups Projects
Commit e4d76ffa authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

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
parent b8fa3637
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,9 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat ...@@ -152,6 +152,9 @@ bool PViewDataGModel::finalize(bool computeMinMax, const std::string &interpolat
} }
else if(it->second.size() == 4){ else if(it->second.size() == 4){
// use provided matrices for field and geometry // 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], setInterpolationMatrices(it->first, *it->second[0], *it->second[1],
*it->second[2], *it->second[3]); *it->second[2], *it->second[3]);
} }
......
...@@ -3779,10 +3779,10 @@ for prisms, 8 for hexahedra, 9 for polygons and 10 for polyhedra. ...@@ -3779,10 +3779,10 @@ for prisms, 8 for hexahedra, 9 for polygons and 10 for polyhedra.
@item @var{number-of-interpolation-matrices} @item @var{number-of-interpolation-matrices}
is the number of interpolation matrices provided for this element is the number of interpolation matrices provided for this element
topology. Currently you should provide either 2 or 4 matrices: the topology. Currently you should provide 2 matrices, i.e., the matrices
matrices have the same meaning as in @ref{Post-processing commands}. that specify how to interpolate the data (they have the same meaning as
The matrices are specified by 2 integers (@var{num-rows} and in @ref{Post-processing commands}). The matrices are specified by 2
@var{num-columns}) followed by the values. integers (@var{num-rows} and @var{num-columns}) followed by the values.
@end table @end table
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment