Skip to content
Snippets Groups Projects
Commit 2b4ddd7d authored by Gaetan Bricteux's avatar Gaetan Bricteux
Browse files

fix

parent 38b47c3a
No related branches found
No related tags found
No related merge requests found
...@@ -224,11 +224,12 @@ bool signChange (RecurElement *re, const DI_Element *e, const std::vector<const ...@@ -224,11 +224,12 @@ bool signChange (RecurElement *re, const DI_Element *e, const std::vector<const
DI_Element* elem = re->root()->el; DI_Element* elem = re->root()->el;
std::vector<DI_CuttingPoint *> cp; std::vector<DI_CuttingPoint *> cp;
std::vector<const gLevelset *> RPNi; std::vector<const gLevelset *> RPNi;
int iPrim = 0;
for(unsigned int l = 0; l < RPN.size(); l++) { for(unsigned int l = 0; l < RPN.size(); l++) {
const gLevelset *Lsi = RPN[l]; const gLevelset *Lsi = RPN[l];
RPNi.push_back(Lsi); RPNi.push_back(Lsi);
if(Lsi->isPrimitive()) { if(Lsi->isPrimitive()) {
elem->addLs(e, Lsi, l, nodeLs); elem->addLs(e, Lsi, iPrim++, nodeLs);
for(unsigned int i = 0; i < cp.size(); i++) for(unsigned int i = 0; i < cp.size(); i++)
cp[i]->addLs(elem); cp[i]->addLs(elem);
if (re->super) re->el->addLs(elem); if (re->super) re->el->addLs(elem);
......
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