-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ODE - RK: fixing small issues reported by Yaro (#2229)
* ODE - RK: fixing small issues reported by Yaro 1. fix integer division to floating point division 2. fix evaluation of max scaled error 3. increase or decrease time step using uniform formula 4. use num_steps instead of max_steps for dt calculation 5. add a time step when using constant dt to avoid issues with round-off errors 6. fixing exponent and moving adaptivity computation out of RKStep 7. adding time step counter 8. adding more tests and keep track of time steps if wanted Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * RK: fixing variable name after rebase Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * RK: enabling most methods after fixing test related issues Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * RK: passing new unit-tests Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * Applying clang-format Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * RK: fix bad subview creation Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * RK: fix bug that computes the inital step size for non-adaptive case This prevents having the user defined time step and leads to wrong results. The rate of convergence tests are now passing! Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * clang-format... Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * RK: tweaking the tolerances a bit On GPU the lowest order method (RK1-2) is accumulating a bit more errors than on CPU. Only an issue when comparing values to zero where the absolute tolerance is needed to detect good conv. Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> * Adding reference for some implementation details and heuristic values Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov> --------- Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
- Loading branch information
Showing
12 changed files
with
1,042 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.