Added a quick check for callback presence (avoid crash if cb function is not provided)

This commit is contained in:
Luigi Malomo 2012-02-14 12:02:43 +00:00
parent e2b5b6fba3
commit f358db54fd
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ template <class OLD_MESH_TYPE,class NEW_MESH_TYPE, class FLT, class DISTFUNCTOR
extractor.Initialize();
for (int j=0; j<=this->siz.Y(); j++)
{
cb((100*j)/this->siz.Y(),"Marching ");
if (cb) cb((100*j)/this->siz.Y(),"Marching ");
ProcessSlice<EXTRACTOR_TYPE>(extractor);//find cells where there is the isosurface and examine it
NextSlice();
}