WIP: Remove non contiuous option from distance point from curved planes#304
Conversation
|
… need extra points in between.
…ne for cartesian and spherical coordinates.
include/world_builder/point.h
Outdated
|
|
||
| if (angle >= 0) | ||
| WBAssert(angle >= -const_pi && angle <= const_pi, | ||
| "You are tring to use the fast sin function in an invalid range. " |
There was a problem hiding this comment.
| "You are tring to use the fast sin function in an invalid range. " | |
| "You are trying to use the fast sin function in an invalid range. " |
|
Thanks for taking a look at the code Wolfgang! I fixed the spelling mistake :) The pull request is currently not ready yet. I am slowly getting closer to the performance I would like (at least no big performance loss and still some values to tune), but to do that I had to cut a lot of corners some which I some certainly will have to reverse. I am happy though that I managed to get the Part of the solution for that particular example is to actually do something similar to #264. This will in no way replace the functionality in that pull request, because it is has expensive code before it and is using an expensive functions to do it. At the current state my test for @alarshi 's model ( Some of the speed ups would also have been possible with the old method, although not all. The main questions I am having is whether to still allow the old method for it's speed. That would mean that time needs to be invested in fixing the issue discussed in #302, which will most likely incur a small but significant cost on the performance. I could leave the old method available through a separate function, without the option to interpolate coordinates. This pull request still requires a bit of work and (a lot of) cleaning up and testing, but I am now happy with the direction it is going. |
|
I have trouble identifying what it is you wanted me to look at. Can you point me at a specific commit (or just move unrelated commits into separate PRs)? I'd be happy to look! |
|
ah, sorry. I haven't gotten around to clean it up yet. I will certainly ping you when it is ready to take a look. I think a agree with what you said before, and I will focus this pull request on the functional change of removing the old option in favor of the new option. And each optimization will have it's own pull request. |
This is a first attempt to address issue #302.
This will change the result for the old interpolation schemes and therefore break some tests, but in my opinion the new result is closer to what a use would expect anyway. I see no reason why a user would want to have a slab or fault which is discontiuous at the points which define the location of the slab/fault. If a user wants a discontiuous areas in a slab, they can still create it explicitly.
So if this pull request is implemented, all the slabs will be continuous. At the same time allows this allows for some (hopefully significant) optimizations in the interpolation scheme.