-
Notifications
You must be signed in to change notification settings - Fork 108
NVCC fixes #3441
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?
NVCC fixes #3441
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| #include "bout/bout_types.hxx" | ||
| #include "bout/build_config.hxx" | ||
| #include "bout/build_defines.hxx" | ||
| #include "bout/build_config.hxx" | ||
|
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: duplicate include [readability-duplicate-include] include/bout/fieldops.hxx:8: - #include "bout/build_defines.hxx"
- #include "bout/build_config.hxx"
+ #include "bout/build_defines.hxx"
Member
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. easy fix :) |
||
| #include "bout/region.hxx" | ||
|
|
||
| #include <cstddef> | ||
|
|
@@ -366,7 +367,7 @@ struct BinaryExpr { | |
| BinaryExpr& operator=(const BinaryExpr&) = delete; | ||
| BinaryExpr& operator=(BinaryExpr&&) = delete; | ||
|
|
||
| BOUT_HOST_DEVICE BOUT_FORCEINLINE int size() const { return indices.size(); } | ||
| BOUT_FORCEINLINE int size() const { return indices.size(); } | ||
| BOUT_HOST_DEVICE BOUT_FORCEINLINE BoutReal operator()(int idx) const { | ||
| return f(idx, lhs, rhs); // single‐pass fusion | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -254,6 +254,7 @@ struct SpecificInd { | |
| case (DIRECTION::Z): | ||
| return zp(dd); | ||
| } | ||
| return *this; | ||
|
Member
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. Hmm, would be nicer if we could just use some |
||
| } | ||
|
|
||
| /// Templated routine to return index.?m(offset), where `?` is one of {x,y,z} | ||
|
|
@@ -274,6 +275,7 @@ struct SpecificInd { | |
| case (DIRECTION::Z): | ||
| return zm(dd); | ||
| } | ||
| return *this; | ||
| } | ||
|
|
||
| inline SpecificInd xp(int dx = 1) const { return {ind + (dx * ny * nz), ny, nz}; } | ||
|
|
||
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.
clang-tidy is complaining because
std::string_viewis only used in a macro, so add thisinclude-what-you-usepragma to silence the warning: