Remove deprecated routines - #1326
Conversation
Still need to fix tests
|
Note there are a few There are three boundary choices that are reported to the user as being deprecated ("dirichlet_2ndorder", "neumann2" and "neumann_2ndorder") can we remove these as well? |
|
I'm not sure why we didn't just mark those I think those boundary choices have been deprecated for a long time now, should be ok to remove them. |
|
Should I remove those other items here or in a separate PR? |
|
Do those in a separate PR -- all this can definitely go, I'm less sure about those ones. |
|
There are two fourth order dirichlet and neumann boundary types, I'm guessing at least one of each should be removed, but I'm not sure which. |
|
I'm attempting some tidying up of boundary conditions at the moment (I got angry with boundary_standard.cxx when trying to fix minor bugs in it last week). I'm almost by default cleaning up the dirichlet/neumann options as part of that. So maybe you can leave this to me for a little bit and revisit if it turns out my re-write is not as good an idea as I hope.... |
|
@johnomotani sorry I didn't see this until after I'd made #1331. Happy to remove the boundary removals from there if it's going to cause you headaches. |
Dataiterator routines were removed in PR #1326
|
|
|
Also removing something after being deprecated for 17 days feels pointless to me. Not everybody pulls that often - thus it is easier to directly remove it. |
We've deprecated them in |
|
Depending on what you're trying to do you may prefer to start by providing a local definition of |
|
I replaced DataIterator with auto - which fails as auto is a SpecificInd seems to not support arbitrary offseting - which means a LOT of extra handling in using it, compared to DataIterator. Is the slight optimiaztion this allows really worth all the extra checking in whereever I use it? Also requiring CHECK=3 for detecting bugs that are introduced that way, seems slightly awkward. |
|
Also DataIterator had a modulo free zm/zp version, which should be much faster. |
|
It should support arbitrary offsetting ( |
|
Can you show the code? If you've done the following:
Unfortunately, that version doesn't work unless we keep track of |
|
If you want to offset by an entirely arbitrary amount you can add any integer to the public |
|
What are you doing that you need such large offsets? We didn't have any use cases that needed them, which is why we didn't consider it. |
|
I would like to be able to call The issue is - even in a Field3D any offset, larger than zero can be equal or larger then the number of points in that direction. Honestly, at this point I am mostly confused as to what is meant by that comment in the code. Anyway, SpecificInd seems fine, sorry for the confusion. I will try to find and understand the constructor for the region. |
|
I think the motivation for not having checks directly within |
|
No, I think I am fine with the implementation, it is more so that the documentation has severely confused me. |
|
If the documentation is confusing we should definitely look to improve this. |
Removes: