Skip to content
Snippets Groups Projects
Commit 1a95f4a4 authored by Laura Lindner's avatar Laura Lindner
Browse files

fixed problem with points besides mesh

parent b36cc5fc
No related branches found
No related tags found
2 merge requests!181actual status of monodomain,!179added possibility to use different time integration schemes for ion...
Pipeline #124880 failed
......@@ -123,7 +123,7 @@ bool ElphyProblem::Includes(const cell &c,const Point P){
}
return mx < P[0] && P[0] < Mx && my < P[1] && P[1] < My && mz < P[2] && P[2] < Mz;
}else if(c.Type()==TETRAHEDRON){
Point LocalP =c.GlobalToLocal(P-c.Corner(0));
Point LocalP =c.GlobalToLocal(P); //-c.Corner(0)
return LocalP[0]>=0.0 && LocalP[1]>=0.0 &&LocalP[2]>=0.0 && LocalP[0]+LocalP[1]+LocalP[2]< 1.0;
}
THROW("Includes only implemented for hexahedral and tetrahedral cells.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment