fixed: implement ASMu2Dmx::getNoNodes() like other mixed ASMs
needed for using global lagrange multipliers
This commit is contained in:
parent
ba25c130b8
commit
e82c490c1a
@ -96,11 +96,8 @@ void ASMu2Dmx::clear (bool retainGeometry)
|
|||||||
|
|
||||||
size_t ASMu2Dmx::getNoNodes (int basis) const
|
size_t ASMu2Dmx::getNoNodes (int basis) const
|
||||||
{
|
{
|
||||||
if (basis > (int)nb.size() || basis < 0)
|
if (basis > (int)nb.size() || basis < 1)
|
||||||
basis = 0;
|
return this->ASMbase::getNoNodes(basis);
|
||||||
|
|
||||||
if (basis == 0)
|
|
||||||
return std::accumulate(nb.begin(), nb.end(), 0);
|
|
||||||
|
|
||||||
return nb[basis-1];
|
return nb[basis-1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user