-
Notifications
You must be signed in to change notification settings - Fork 5
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
including tfinal when integrating an orbit #99
base: main
Are you sure you want to change the base?
Conversation
Commit 12176dc: Change names of Eigen::Tensor-->ndarray generators for clarity
Thanks for getting started on this! I understand that the goal here is a use case where you have finer control to manually change the basis at some larger time step (i.e. sequence several Looking through, this will create some breaking changes, so I think we'll definitely want to think about whether this is the best way to implement the goal. We also probably want to have some defaults rather than |
This is an interesting approach, but we are very reluctant to change the |
Thanks for your comments! I agree that I am making some aggressive changes like introducing
|
This partially reverts commit 2336b9a. Updated sanity check to allow negative tstep
I apologize that we've left this PR for so long. There are many changes in the proposed patch that modify top-level configuration parameters that will affect way more than the issue at hand. I would very much prefer to address the issue of tfinal directly and open separate PRs or issues for top-level CMake changes and default parameters, please!! That said, I've boiled down the change request to the attached which I believe should address the issue. At the very least, I propose that we test the following patch and use it or some modification of it to address the core issue. I've tested it the limiting cases for both positive and negative intervals and it appears to work as expected. |
@M1ssing-N0 : It would be great if you'd be willing to test this patch and update your branch without the changes to other aspects of the code (i.e. no CMakelists. txt or other default parameter changes). |
Ooops, sorry, I have a more recent patch. Please use this one. Here is a link to a branch containing the patch. |
That's a huge update! The two arguments There seems to be some problem with my PR. I didn't change files other than BiorthBasis.cc and BasisWrappers.cc. Maybe it's a problem with rebasing. I think I can close this PR and it might be better to simply merge the tfinalFix branch. |
Okay, glad to hear that it works for you and fixed your issue! I agree that this rewritten algorithm is slightly more elaborate. A few comments on the motivation for this change for completeness:
I suppose we could return to the original scheme of having a short last interval. Maybe @michael-petersen has an opinion on this? @M1ssing-N0 If it's easier. I'm happy to issue a new PR from the |
Currently, the time of the last sample is (tfinal-tstep) instead of tfinal.
I edited the code to extend the integration until tfinal which may be more intuitive.
I also include more sanity check (e.g., tfinal>tinit) for better quality of life.