New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cell->face_iterators() in tutorials #8563
Comments
It looks like you would need to collect all the global indices of the faces, create a container storing the corresponding face iterators and implement the LegacyForwardIterator interface for using it with |
I am currently working on a draft. What I was thinking about is to introduce a new Iterator, which stores a This would be one very simple implementation. The version described by @masterleinad would be more flexible since it is not per-se connected to a single cell. |
I had thought that implementing it via a cell iterator and an index is the easiest way, but it is true that if one just returned a |
The version with |
Yes, no need to use a customer container if |
@peterrum fixes this in record time (thank you very much!). We ought to also make the simplifying changes to the tutorials. (Like for the corresponding cell changes, the entire library is too large a code base to effectively change; that's ok -- but we should try to teach the current best practice in the tutorials.) |
The idiom we now use everywhere for cells is of the form
It would be nice if we could also do this:
or similar. That should not be terribly hard to achieve, and would make a lot of code a lot simpler.
The text was updated successfully, but these errors were encountered: