-
Notifications
You must be signed in to change notification settings - Fork 90
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
A Loop over a CellIterator returns an Object of type CellCache #775
Comments
Hi and thanks for the report! I am sorry that you ran into this issue. This was an intentional change (#546) that I didn't imagine would be breaking. For example, as you can see in the PR, it didn't break any of the Ferrite documentation examples which is usually quite similar to "user code". Can you elaborate how it breaks your code? Perhaps you define methods like Since this is not a very recent change I don't think we can or will revert the releases at this point. If you don't have time to upgrade right now I suggest you pin Ferrite to version 0.3.10 and use that. |
Hi @fredrikekre , indeed I have read #546 and indeed I use Thanks for your (very) quick answer |
I disagree. One of the reasons for #546 was actually that the previous behavior was counter-intuitive for many people. For example, if you loop over a vector, the iterates are not the vector itself, but the elements of the vector. Similarly, after #546, the elements of the (Also, since you are a Ferrite user I haven't seen before: Welcome! We are hosting a user and developer day on October 6 in Bochum, Germany, and everyone curious about Ferrite is welcome to join, see https://ferrite-fem.github.io/FerriteCon/ for more details.) |
Hi @fredrikekre , That is, I have to say, a logic I cannot argue against and thanks for the welcoming words, they are receipted gratefully. Greetings |
Hello,
The Minimal working example looks as follows
where
cell
is of the typeCellCache
. However, I would expectcell
to be of the typeCellIterator
and this used (v0.3.10) to be the standard behavior.What I am trying to say is, that the real issue is, that v0.3.11 should have been called v0.4.11, since it introduced a breaking change.
Consequently there are two pathways, either the behavior of the
CellIterator
constructor is changed, or all Ferrite.jl versions dating back to v0.3.11 are renamed v0.4.xx.Kind regards
P.S.: I believe this issue arises from a function called
Base.iterate()
found in the file iterators.jlThe text was updated successfully, but these errors were encountered: