Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ set(BOUT_SOURCES
./include/bout/deriv_store.hxx
./include/bout/derivs.hxx
./include/bout/difops.hxx
./include/bout/expr.hxx
./include/bout/fft.hxx
./include/bout/field.hxx
./include/bout/field2d.hxx
Expand Down
1 change: 0 additions & 1 deletion examples/performance/arithmetic/.gitignore

This file was deleted.

106 changes: 0 additions & 106 deletions examples/performance/arithmetic/arithmetic.cxx

This file was deleted.

5 changes: 0 additions & 5 deletions examples/performance/arithmetic/data/BOUT.inp

This file was deleted.

5 changes: 0 additions & 5 deletions examples/performance/arithmetic/run.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/performance/arithmetic_3d2d/.gitignore

This file was deleted.

116 changes: 0 additions & 116 deletions examples/performance/arithmetic_3d2d/arithmetic_3d2d.cxx

This file was deleted.

5 changes: 0 additions & 5 deletions examples/performance/arithmetic_3d2d/data/BOUT.inp

This file was deleted.

5 changes: 0 additions & 5 deletions examples/performance/arithmetic_3d2d/run.sh

This file was deleted.

4 changes: 4 additions & 0 deletions include/bout/bout_types.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Copy link
Copy Markdown
Contributor

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]

Suggested change
BOUT_HOST_DEVICE View yup(int = 0) const { return *this; }
BOUT_HOST_DEVICE View yup(int /*unused*/= 0) const { return *this; }

BOUT_HOST_DEVICE View ydown(int = 0) const { return *this; }

Copy link
Copy Markdown
Contributor

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]

Suggested change
BOUT_HOST_DEVICE View ydown(int = 0) const { return *this; }
BOUT_HOST_DEVICE View ydown(int /*unused*/= 0) const { return *this; }

};
operator View() const { return {val}; }
};
Expand Down
Loading
Loading