added a safeness assert
This commit is contained in:
parent
7da7c0128e
commit
75e3cc2a18
|
|
@ -849,6 +849,7 @@ private:
|
||||||
for(typename MESHMODELTYPE::ConstFaceIterator itf = m.face.begin();itf != m.face.end();++itf)
|
for(typename MESHMODELTYPE::ConstFaceIterator itf = m.face.begin();itf != m.face.end();++itf)
|
||||||
{
|
{
|
||||||
int tmp = itf->cWT(0).N();
|
int tmp = itf->cWT(0).N();
|
||||||
|
assert(tmp>=0 && tmp<patches.size());
|
||||||
patches[tmp].push_back(cc);
|
patches[tmp].push_back(cc);
|
||||||
++cc;
|
++cc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue