-
Notifications
You must be signed in to change notification settings - Fork 108
Template expressions with Field3DParallel #3430
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
base: next
Are you sure you want to change the base?
Changes from all commits
23ddf98
49774de
470abe4
c23f2d5
356fd0c
8f66c00
ceaaf98
b2f52cd
858c5c1
c808fa7
c7493e4
d41d93c
3c6565d
a972f3f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -149,6 +149,10 @@ struct Constant { | |||||
| T v; | ||||||
| View(T v) : v(v) {} | ||||||
| BOUT_HOST_DEVICE T operator()(int) const { return v; } | ||||||
| BOUT_HOST_DEVICE bool hasParallelSlices() const { return false; } | ||||||
| BOUT_HOST_DEVICE int numberParallelSlices() const { return 0; } | ||||||
| BOUT_HOST_DEVICE View yup(int = 0) const { return *this; } | ||||||
| BOUT_HOST_DEVICE View ydown(int = 0) const { return *this; } | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: all parameters should be named in a function [readability-named-parameter]
Suggested change
|
||||||
| }; | ||||||
| operator View() const { return {val}; } | ||||||
| }; | ||||||
|
|
||||||
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.
warning: all parameters should be named in a function [readability-named-parameter]