Skip to content

Commit

Permalink
fixed: projection basis for XXX_CONT_RAISE_BASIS2
Browse files Browse the repository at this point in the history
  • Loading branch information
akva2 committed Oct 29, 2021
1 parent 7cfd247 commit d8d4d40
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ASM/ASMmxBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ ASMmxBase::SurfaceVec ASMmxBase::establishBases (Go::SplineSurface* surf,
}

if (type == FULL_CONT_RAISE_BASIS2 || type == REDUCED_CONT_RAISE_BASIS2)
std::swap(result[0], result[1]);
std::swap(result[0], result[1]), geoBasis = 1;

return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ASM/ASMs2Dmx.C
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ bool ASMs2Dmx::generateFEMTopology ()
ASMmxBase::Type == ASMmxBase::DIV_COMPATIBLE)
projB = proj = ASMmxBase::raiseBasis(surf);
else
projB = proj = m_basis.front()->clone();
projB = proj = m_basis[2-ASMmxBase::geoBasis]->clone();
}
delete surf;
geomB = surf = m_basis[geoBasis-1]->clone();
Expand Down
2 changes: 1 addition & 1 deletion src/ASM/ASMs3Dmx.C
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool ASMs3Dmx::generateFEMTopology ()
ASMmxBase::Type == ASMmxBase::DIV_COMPATIBLE)
projB = proj = ASMmxBase::raiseBasis(svol);
else
projB = proj = m_basis.front()->clone();
projB = proj = m_basis[2-ASMmxBase::geoBasis]->clone();
}
delete svol;
geomB = svol = m_basis[geoBasis-1]->clone();
Expand Down
2 changes: 1 addition & 1 deletion src/ASM/LR/ASMu2Dmx.C
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ bool ASMu2Dmx::generateFEMTopology ()
}
else {
if (!projBasis)
projBasis = m_basis.front();
projBasis = m_basis[2-ASMmxBase::geoBasis];
refBasis = projBasis;
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/ASM/LR/ASMu3Dmx.C
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@ bool ASMu3Dmx::generateFEMTopology ()
projBasis.reset(new LR::LRSplineVolume(otherBasis.get()));
refBasis = projBasis;
}
} else
projBasis = refBasis = m_basis[0];
} else {
if (!projBasis)
projBasis = m_basis[2-ASMmxBase::geoBasis];
refBasis = projBasis;
}
}
lrspline = m_basis[geoBasis-1];
projBasis->generateIDs();
Expand Down

0 comments on commit d8d4d40

Please sign in to comment.