DirichletBC.markers() wrong return value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
New
|
Undecided
|
Unassigned |
Bug Description
const std::vector<
{
return facets;
}
should be
const std::vector<
{
init_facets();
return facets;
}
otherwise the array may be empty in some cases...
Also in
void DirichletBC:
{
Timer timer("DirichletBC init facets");
if (facets.size() > 0)
return;
if (_user_sub_domain)
init_
else if (_user_
init_
else
init_
}
it may be better to put the Timer after the if (facets.size() > 0) return; statement.