Commit db183bb
Improve code readability and reduce OOP allocations for StaticArrays (#183)
* created function basic_patankar_step for oop
* revised MPRK43
* revised SSPMPRK oop implementations
* format
* fix SSPMPRK43
* bugfix SSPMPRK43
* more structure, more dispatch
* bugfix
* revised SSPMPRK schemes
* bugfix
* revised lincomb function
* added @muladd
* build_mprk_matrix for StaticMatrix
* bugfix build_mprk_matrix for StaticMatrix
* build_mprk_matrix for StaticMatrix without slicing allocations
* format
* Revised implementation of build_mprk_matrix for StaticMatrix. Now tests pass as before.
* lincomb! in MPRK schemes
* bugfix MPRK22
* remove stale explicit imports
* introduced basic_patankar_step! and basic_patankar_step_conservative!
* revised sspmprk
* removed comments
* add diagonal of sparse matrix efficiently
* use naive loop to add diagonal of sparse matrices
* consolidate broadcasts
* removed @unpack
* additional comments in source file
* Update src/mprk.jl
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
* format
* Apply suggestions from code review
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
* Apply more suggestions from code review
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
---------
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>1 parent ae6c5e2 commit db183bb
5 files changed
Lines changed: 388 additions & 820 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
568 | | - | |
| 567 | + | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
706 | | - | |
707 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
747 | | - | |
748 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| |||
0 commit comments