fixes for bisect

This commit is contained in:
Joachim Schöberl 2016-02-26 12:19:10 +01:00
parent dc50dd51f8
commit b911ab22d7
2 changed files with 5 additions and 2 deletions

View File

@ -4013,7 +4013,7 @@ namespace netgen
const EdgePointGeomInfo & ap2,
Point<3> & newp, EdgePointGeomInfo & newgi) const
{
cout << "base class edge point between" << endl;
//cout << "base class edge point between" << endl;
newp = p1+secpoint*(p2-p1);
}

View File

@ -432,7 +432,10 @@ DLL_HEADER void ExportNetgenMeshing()
.def ("Refine", FunctionPointer
([](Mesh & self)
{
self.GetGeometry()->GetRefinement().Refine(self);
if (self.GetGeometry())
self.GetGeometry()->GetRefinement().Refine(self);
else
Refinement().Refine(self);
}))
.def ("BoundaryLayer", FunctionPointer