Skip to content

Commit

Permalink
options_adios: Clang format
Browse files Browse the repository at this point in the history
Automatic formatting
  • Loading branch information
bendudson committed Dec 6, 2023
1 parent f4b24d7 commit b959473
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions include/bout/options_adios.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ namespace bout {
class OptionsADIOS : public OptionsIO {
public:
OptionsADIOS() {}
explicit OptionsADIOS(
const std::string& filename [[maybe_unused]],
[[maybe_unused]] bout::OptionsIO::FileMode mode = bout::OptionsIO::FileMode::replace,
[[maybe_unused]] bool singleWriteFile = false) {}
explicit OptionsADIOS(const std::string& filename [[maybe_unused]],
[[maybe_unused]] bout::OptionsIO::FileMode mode =
bout::OptionsIO::FileMode::replace,
[[maybe_unused]] bool singleWriteFile = false) {}
OptionsADIOS(const OptionsADIOS&) = delete;
OptionsADIOS(OptionsADIOS&&) noexcept = default;
~OptionsADIOS() = default;
Expand All @@ -34,11 +34,14 @@ public:
Options read() override { throw BoutException("OptionsADIOS not available\n"); }

/// Write options to file
void write([[maybe_unused]] const Options& options, [[maybe_unused]] const std::string& time_dim) override {
void write([[maybe_unused]] const Options& options,
[[maybe_unused]] const std::string& time_dim) override {
throw BoutException("OptionsADIOS not available\n");
}

void verifyTimesteps() const override { throw BoutException("OptionsADIOS not available\n"); }
void verifyTimesteps() const override {
throw BoutException("OptionsADIOS not available\n");
}
};

} // namespace bout
Expand All @@ -61,7 +64,8 @@ public:
OptionsADIOS() {}
OptionsADIOS(std::string filename,
bout::OptionsIO::FileMode mode = bout::OptionsIO::FileMode::replace,
bool singleWriteFile = false) : OptionsIO(filename, mode, singleWriteFile) {}
bool singleWriteFile = false)
: OptionsIO(filename, mode, singleWriteFile) {}
OptionsADIOS(const OptionsADIOS&) = delete;
OptionsADIOS(OptionsADIOS&&) noexcept = default;
~OptionsADIOS() = default;
Expand Down

0 comments on commit b959473

Please sign in to comment.