Skip to content

Commit

Permalink
CarpetX: clang-format code
Browse files Browse the repository at this point in the history
used clang-format-16 -style file -i
  • Loading branch information
rhaas80 committed Jan 1, 2025
1 parent 00264ef commit dc86fe5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CarpetX/src/driver.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ struct GHExt {

public:
AnyTypeVector() : _type(-1), _typesize(-1), _count(0), _data(nullptr){};
AnyTypeVector(int type_, size_t count_) : _type(-1), _typesize(-1), _count(0), _data(nullptr) {
AnyTypeVector(int type_, size_t count_)
: _type(-1), _typesize(-1), _count(0), _data(nullptr) {
alloc(type_, count_);
assert(_type == type_);
assert(_typesize != -1);
Expand All @@ -174,7 +175,9 @@ struct GHExt {
swap(other);
return *this;
}
AnyTypeVector(AnyTypeVector &&other) : _type(other._type), _typesize(other._typesize), _count(other._count), _data(other._data) {
AnyTypeVector(AnyTypeVector &&other)
: _type(other._type), _typesize(other._typesize),
_count(other._count), _data(other._data) {
other._type = -1;
other._typesize = -1;
other._count = 0;
Expand Down Expand Up @@ -246,7 +249,7 @@ struct GHExt {
size_t size() const { return _count; };

friend YAML::Emitter &operator<<(YAML::Emitter &yaml,
const AnyTypeVector &commongroupdata);
const AnyTypeVector &anytypevector);
};

// For subcycling in time, there really should be one copy of each
Expand Down

0 comments on commit dc86fe5

Please sign in to comment.