ASMu2Dmx: use projection spline for geometry with DIV_COMPATIBLE

This commit is contained in:
Arne Morten Kvarving 2023-08-31 14:10:39 +02:00
parent 07bd00da2d
commit 47af45a21e
2 changed files with 4 additions and 2 deletions

View File

@ -226,7 +226,9 @@ bool ASMu2Dmx::generateFEMTopology ()
if (ASMmxBase::Type == ASMmxBase::SUBGRID) {
projB2 = refB = createLR(*otherBasis);
geomB = m_basis[1];
} else {
} else if (ASMmxBase::Type == ASMmxBase::DIV_COMPATIBLE)
geomB = refB = projB;
else {
refB = projB;
geomB = m_basis[itgBasis-1];
}

View File

@ -251,7 +251,7 @@ TEST(TestASMu2Dmx, WriteRT)
str.str("");
EXPECT_TRUE(pch1.write(str, ASM::GEOMETRY_BASIS));
EXPECT_EQ(str.str(), ASMuSquare::square);
EXPECT_EQ(str.str(), squareFRTH_1);
str.str("");
EXPECT_TRUE(pch1.write(str, ASM::PROJECTION_BASIS));