-
Notifications
You must be signed in to change notification settings - Fork 21
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
New feature: Rename pde to fit with Matlab DG-SparseGrid #368
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this PR! couple of minor notes, looks great overall.
src/program_options.hpp
Outdated
@@ -250,6 +267,7 @@ class parser | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this comment refer to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to remove ..
src/program_options.hpp
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you init this with the enum value instead of an integer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
src/tensors.hpp
Outdated
vector<P, mem, resrc> &operator=(vector<P, mem, resrc> const &); | ||
|
||
// move constructor/assignment (required to be same to same) | ||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
x
in the boxes that apply.Does this introduce a breaking change?
What systems has this change been tested on?
Checklist