Merge pull request #627 from takahito-tejima/bugfix

Fix a bug in LimitStencilTableFactory
This commit is contained in:
David G Yu 2015-06-11 14:57:12 -07:00
commit 1c5b4778d6

View File

@ -353,7 +353,10 @@ LimitStencilTableFactory::Create(TopologyRefiner const & refiner,
cvstencils = StencilTableFactory::Create(refiner, options);
} else {
// Sanity checks
if (cvstencils->GetNumStencils() != (uniform ?
//
// Note that the input cvStencils could be larger than the number of
// refiner's vertices, due to the existence of the end cap stencils.
if (cvstencils->GetNumStencils() < (uniform ?
refiner.GetLevel(maxlevel).GetNumVertices() :
refiner.GetNumVerticesTotal())) {
return 0;