New feature: Rename pde to fit with Matlab DG-SparseGrid#368
New feature: Rename pde to fit with Matlab DG-SparseGrid#368bmcdanie merged 5 commits intoproject-asgard:developfrom
Conversation
dad5f7d to
e306b0d
Compare
1f26603 to
27fa7fc
Compare
|
To pass the tests This is not implemented yet. This is the corresponding [PR] (project-asgard/DG-SparseGrid#65) from this other repo. |
fokkerplanck1 from 4p1a to pitch E and fokkerplanck1 from 4p2 to pitch C and Change all 4p1a by pitch_E (into testing coefficients and time_advance too). clang format. Fix a non-initialized variable warning in lib_dispatch.
To add case we are using one more template value for PDE. TODO: add case2 proper gold generated tests for coefficients and time advance.
This fix the bug of not having real error root when assertion fails.
bmcdanie
left a comment
There was a problem hiding this comment.
thanks for this PR! couple of minor notes, looks great overall.
| std::string pde_str = DEFAULT_PDE_STR; | ||
| // pde to construct/evaluate | ||
| PDE_opts pde_choice = DEFAULT_PDE_OPT; | ||
| // pde selected case (f0) |
There was a problem hiding this comment.
what does this comment refer to?
There was a problem hiding this comment.
I forgot to remove ..
| static auto constexpr DEFAULT_PDE_STR = "continuity_2"; | ||
| static auto constexpr DEFAULT_PDE_OPT = PDE_opts::continuity_2; | ||
| static auto constexpr DEFAULT_SOLVER = solve_opts::direct; | ||
| static auto constexpr DEFAULT_PDE_SELECTED_CASE = 0; |
There was a problem hiding this comment.
can you init this with the enum value instead of an integer?
| vector(vector<P, mem, resrc> &&); | ||
|
|
||
| // as with copy assignment, static tools::expect added | ||
| // as with copy assignment, static expect added |
There was a problem hiding this comment.
I believe this is my mistake originally - should say "static assert" but my sed changes to "tools::expect", then your sed changed that to "static expect".
There was a problem hiding this comment.
I also changed the one line 153.
Remove obsolete comment. Enum instead of int. static expect -> static assert brackets for one line if/else.
Proposed changes
This PR is here to solve the rename pde issue#344.
It involves adding a parameter to asgard binary.
What type(s) of changes does this code introduce?
Put an
xin the boxes that apply.Does this introduce a breaking change?
What systems has this change been tested on?
Checklist