Skip to content

Commit

Permalink
clean the constructor of advance_status (#2790)
Browse files Browse the repository at this point in the history
this addresses clang-tidy cppcoreguidelines-use-default-member-init
  • Loading branch information
zingale authored Mar 19, 2024
1 parent 0d8acc5 commit 33bd033
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/driver/Castro.H
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ enum int_method { CornerTransportUpwind = 0,
// why an advance failed.

struct advance_status {
bool success;
Real suggested_dt;
std::string reason;
advance_status() : success(true), suggested_dt(0.0_rt), reason("") {}
bool success{true};
Real suggested_dt{};
std::string reason{};
advance_status() = default;
};

///
Expand Down

0 comments on commit 33bd033

Please sign in to comment.