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

small fixes

parent 9da4d38b
No related branches found
No related tags found
No related merge requests found
......@@ -535,6 +535,7 @@ void DocRecord::voronoiCell(PointNumero pt, std::vector<SPoint2> &pts) const
{
if (!_adjacencies){
Msg::Error("No adjacencies were created");
return;
}
const int n = _adjacencies[pt].t_length;
for(int j = 0; j < n; j++) {
......
......@@ -1246,8 +1246,11 @@ class PostViewField : public Field
// of finding an element
if(!octree->searchTensorWithTol(x, y, z, l, 0, 0, 0.05))
Msg::Info("No tensor element found containing point (%g,%g,%g)", x, y, z);
if(l <= 0 && crop_negative_values)
for(int i = 0; i < 9; i++) l[i] = MAX_LC;
if(crop_negative_values){
for(int i = 0; i < 9; i++){
if(l[i] <= 0) l[i] = MAX_LC;
}
}
metr(0, 0) = l[0];
metr(0, 1) = l[1];
metr(0, 2) = l[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment