Is anyone making much use of MeshDomains? I'm looking at the code, and
it's really ropy. The essence of the problem is that it permits two
ways of doing the same thing, and if one does both it's ambiguous what
really happens. For example, the code in
MeshDomains::cell_domains(...) has

  // Create markers if mesh collection present
  if (!_markers[D].empty() and !_cell_domains)
  {
     ....
  }

  return _cell_domains;

Here are two scenarios for which I would expect the same outcome, but
which would in fact differ because of the above code:

1. I have a Mesh that has no 'cells domains', and I go and add
markers. Then I get 'A' back from MeshDomains::cell_domains.

2.  I have a Mesh that has 'cells domains' (which I don't know because
it happened to be embedded in a mesh file that I've read in), and I go
and add markers. Then I get 'B' back from MeshDomains::cell_domains (A
\ne B).

Garth
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to