Skip to content

Commit 0bb113c

Browse files
committed
Run formatter
1 parent ce6208a commit 0bb113c

File tree

203 files changed

+1211
-1079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+1211
-1079
lines changed

src/multio/action/Action.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ std::ostream& operator<<(std::ostream& os, const Action& a) {
4747
return os;
4848
}
4949

50-
//---------------------------------------------------------------------------------------------------------------
50+
//----------------------------------------------------------------------------------------------------------------------
5151

5252
ActionFactory& ActionFactory::instance() {
5353
static ActionFactory singleton;

src/multio/action/Action.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct ActionFailureTraits {
5454
};
5555

5656

57-
//--------------------------------------------------------------------------------------------------
57+
//----------------------------------------------------------------------------------------------------------------------
5858

5959
class Action : private eckit::NonCopyable, public FailureAware<ActionFailureTraits> {
6060
public:
@@ -82,7 +82,7 @@ class Action : private eckit::NonCopyable, public FailureAware<ActionFailureTrai
8282
friend std::ostream& operator<<(std::ostream& os, const Action& a);
8383
};
8484

85-
//--------------------------------------------------------------------------------------------------
85+
//----------------------------------------------------------------------------------------------------------------------
8686

8787
class ActionBuilderBase;
8888

@@ -128,6 +128,6 @@ class ActionBuilder final : public ActionBuilderBase {
128128
ActionBuilder(const std::string& name) : ActionBuilderBase(name) {}
129129
};
130130

131-
//--------------------------------------------------------------------------------------------------
131+
//----------------------------------------------------------------------------------------------------------------------
132132

133133
} // namespace multio::action

src/multio/action/ChainedAction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace multio::action {
2121
using config::ComponentConfiguration;
2222
using util::FailureAware;
2323

24-
//--------------------------------------------------------------------------------------------------
24+
//----------------------------------------------------------------------------------------------------------------------
2525

2626
class ChainedAction : public Action {
2727

@@ -37,7 +37,7 @@ class ChainedAction : public Action {
3737
void matchedFields(message::match::MatchReduce& selectors) const override;
3838
};
3939

40-
//--------------------------------------------------------------------------------------------------
40+
//----------------------------------------------------------------------------------------------------------------------
4141

4242

4343
} // namespace multio::action

src/multio/action/aggregate/Aggregate.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bool Aggregate::handleFlush(const Message& msg) {
6363
util::ScopedTiming timing{statistics_.actionTiming_};
6464
// to allow flushes coming without a domain to direclty pass through.
6565
auto domain = msg.metadata().get<std::string>("domain");
66-
if (domain=="global") {
66+
if (domain == "global") {
6767
return true;
6868
}
6969
// get domain info if existant
@@ -72,7 +72,7 @@ bool Aggregate::handleFlush(const Message& msg) {
7272
auto flCount = flushCount(msg);
7373

7474
if (domainMap.isComplete() && flCount == domainMap.size()) {
75-
//if complete, pass through and reset counter
75+
// if complete, pass through and reset counter
7676
flushes_.erase(msg.fieldId());
7777
return true;
7878
}

src/multio/action/average-rate/AverageRate.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ namespace dm = multio::datamod;
2222
namespace {
2323
Param2ParamMap getMappings() {
2424
eckit::LocalConfiguration mappingConf{eckit::YAMLConfiguration{eckit::PathName{
25-
multio::LibMultio::instance().libraryHome() + "/share/multio/mappings/average_rate_param_mappings.yaml"
26-
}}};
25+
multio::LibMultio::instance().libraryHome() + "/share/multio/mappings/average_rate_param_mappings.yaml"}}};
2726

2827
Param2ParamMap paramMappings;
2928
for (auto& mappings : mappingConf.getSubConfigurations()) {
@@ -33,7 +32,7 @@ Param2ParamMap getMappings() {
3332
}
3433
return paramMappings;
3534
}
36-
}
35+
} // namespace
3736

3837
AverageRate::AverageRate(const ComponentConfiguration& compConf) :
3938
ChainedAction(compConf), paramMappings_{getMappings()} {}
@@ -53,7 +52,8 @@ void AverageRate::executeImpl(message::Message msg) {
5352
if (auto search = paramMappings_.find(md.param.get()); search != paramMappings_.end()) {
5453
md.param.set(search->second);
5554
dm::dumpRecord(md, msg.modifyMetadata());
56-
} else {
55+
}
56+
else {
5757
std::ostringstream os;
5858
os << "Action average-rate cannot find mapping from param " << md.param.get() << " : " << msg;
5959
throw eckit::UserError(os.str(), Here());
@@ -82,9 +82,9 @@ void AverageRate::compute(message::Message& msg) const {
8282
const auto m = static_cast<Precision>(md.missingValue.get());
8383
std::transform(data, data + size, data,
8484
[c, m](Precision v) { return static_cast<Precision>(v == m ? m : v * c); });
85-
} else {
86-
std::transform(data, data + size, data,
87-
[c](Precision v) { return static_cast<Precision>(v * c); });
85+
}
86+
else {
87+
std::transform(data, data + size, data, [c](Precision v) { return static_cast<Precision>(v * c); });
8888
}
8989
}
9090

src/multio/action/average-rate/AverageRate.h

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
#include "multio/action/ChainedAction.h"
2020

21-
#include "multio/datamod/core/EntryDef.h"
22-
#include "multio/datamod/MarsKeys.h"
2321
#include "multio/datamod/GribKeys.h"
22+
#include "multio/datamod/MarsKeys.h"
23+
#include "multio/datamod/core/EntryDef.h"
2424

2525
namespace multio::action::average_rate {
2626

@@ -39,31 +39,22 @@ struct AverageRateKeys {
3939
dm::EntryType_t<decltype(dm::MissingValue)> missingValue;
4040

4141
static constexpr std::string_view record_name_ = "average-rate";
42-
static constexpr auto record_entries_ = std::make_tuple(
43-
dm::PARAM,
44-
dm::TIMESPAN.tagRequired(),
45-
dm::STATTYPE,
46-
dm::MissingValue
47-
);
42+
static constexpr auto record_entries_
43+
= std::make_tuple(dm::PARAM, dm::TIMESPAN.tagRequired(), dm::STATTYPE, dm::MissingValue);
4844

4945
static void validate(const AverageRateKeys& k) {
5046
if (k.timespan.get().toSeconds() == 0) {
51-
throw eckit::SeriousBug(
52-
"The average-rate action cannot handle messages with timespan set to zero!",
53-
Here()
54-
);
47+
throw eckit::SeriousBug("The average-rate action cannot handle messages with timespan set to zero!",
48+
Here());
5549
}
5650

5751
if (k.stattype.isSet()) {
58-
throw eckit::SeriousBug(
59-
"The average-rate action cannot handle messages with stattype set!",
60-
Here()
61-
);
52+
throw eckit::SeriousBug("The average-rate action cannot handle messages with stattype set!", Here());
6253
}
6354
}
6455
};
6556

66-
//-----------------------------------------------------------------------------
57+
//----------------------------------------------------------------------------------------------------------------------
6758

6859
class AverageRate : public ChainedAction {
6960
public:

src/multio/action/encode-mtg2/EncodeMtg2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ EncodeMtg2Options parseOpts(const ComponentConfiguration& compConf) {
5353
auto conf = compConf.parsedConfig();
5454
conf.remove("type");
5555
conf.remove("next");
56-
56+
5757
return dm::readRecordByValue<EncodeMtg2Options>(conf, opts);
5858
}
5959

src/multio/action/encode-mtg2/EncodeMtg2.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace multio::action {
2222

2323
namespace dm = multio::datamod;
2424

25-
//-----------------------------------------------------------------------------
25+
//----------------------------------------------------------------------------------------------------------------------
2626

2727
struct EncodeMtg2Options {
2828
dm::Entry<bool, dm::mapper::BoolMapper> cached;
@@ -35,7 +35,7 @@ struct EncodeMtg2Options {
3535
};
3636

3737

38-
//-----------------------------------------------------------------------------
38+
//----------------------------------------------------------------------------------------------------------------------
3939

4040
class EncodeMtg2 : public ChainedAction {
4141
public:
@@ -56,16 +56,16 @@ class EncodeMtg2 : public ChainedAction {
5656
};
5757

5858

59-
//---------------------------------------------------------------------------------------------------------------------
59+
//----------------------------------------------------------------------------------------------------------------------
6060

6161

6262
} // namespace multio::action
6363

64-
//-----------------------------------------------------------------------------
64+
//----------------------------------------------------------------------------------------------------------------------
6565

6666
namespace multio::util {
6767
template <>
6868
struct Print<multio::action::EncodeMtg2Options> : datamod::PrintRecord {};
6969
} // namespace multio::util
7070

71-
//-----------------------------------------------------------------------------
71+
//----------------------------------------------------------------------------------------------------------------------

src/multio/action/encode-mtg2/EncodeMtg2Exception.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
namespace multio::action {
1818

19-
//---------------------------------------------------------------------------------------------------------------------
19+
//----------------------------------------------------------------------------------------------------------------------
2020

2121
class EncodeMtg2Exception : public eckit::Exception {
2222
public:
2323
EncodeMtg2Exception(const std::string& reason, const eckit::CodeLocation& location = eckit::CodeLocation());
2424
};
2525

26-
//---------------------------------------------------------------------------------------------------------------------
26+
//----------------------------------------------------------------------------------------------------------------------
2727

2828

2929
} // namespace multio::action

src/multio/action/encode/Encode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ class Encode : public ChainedAction {
4848
const std::unique_ptr<GridDownloader> gridDownloader_ = nullptr;
4949
};
5050

51-
//---------------------------------------------------------------------------------------------------------------------
51+
//----------------------------------------------------------------------------------------------------------------------
5252

5353
class EncodingException : public eckit::Exception {
5454
public:
5555
EncodingException(const std::string& reason, const eckit::CodeLocation& location = eckit::CodeLocation());
5656
};
5757

58-
//---------------------------------------------------------------------------------------------------------------------
58+
//----------------------------------------------------------------------------------------------------------------------
5959

6060

6161
} // namespace multio::action::encode

0 commit comments

Comments
 (0)